ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
AHAdam Hoffman21/10/2014

I'm creating a newer version of a previous macro for my company and was asked to add something to it. All of our drawings as a standard get a shaded with edges isometric view inserted into the drawing. I've tried multiple times to get this to work but with no luck. I'm writing this as an add-in using vb.net. Here is what I have so far:

Dim bRet as Boolean = False

bRet = swIsoView.SetDisplayMode3(True, swDisplayMode_e.swSHADED_EDGES, False, True)

The bRet value comes back true but the view itself does not change. Here is what I'm trying to do:

Turn this:

Unshaded.JPG

Into this:

Shaded.JPG

Is there another setting that I have to change for the ShadedWithEdges to take effect? Any help would be appreciated. Thank you.