Quantcast
Channel: Product Communities
Viewing all articles
Browse latest Browse all 105279

Forum Post: Re: [V8i VBA] GROUP HOLES fails unless view zoom level is greatly reduced

$
0
0

[quote user="daniel99"]Set oCSES = CreateComplexShapeElement1(oSES, msdFillModeFilled)[/quote]

Are you confident that you have a valid complex shape?  Put an assert test after you create an object to be sure that it's valid...

Debug.Assert Not oCSES Is Nothing

When you queue commands you simulate the action of a user.  The zoom level in a view is significant.

You could try to use the MDL function to create a grouped hole.  That keeps all your code as procedural.  Here's the declaration from MDL help...

      Declare Function mdlElmdscr_createShapeWithHoles Lib "stdmdlbltin.dll" (  _
        ByRef outEdPP As Long , _
        ByVal solidEdP As Long , _
        ByVal holeEdP As Long ) As Long

Viewing all articles
Browse latest Browse all 105279

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>