Preview   |   SOLIDWORKS User Forum

 Macro to change line color/thickness of a selected edge in Drawing
Lauritz Berg   |  1 year ago
Open in Forum   

All you need is a SOLIDWORKS ID, or a new or existing 3DEXPERIENCE ID.

I was trying to quickly make a macro, that colors a selected edge on a drawing & adds a custom line thickness to it, but I cannot get it to run, because it fails at swThisEdge.SetLineColor 255 -  telling me, that this object does not support this property or method.
What am I doing wrong?

macro api color line line thickness selection linewidth linecolor 

Dim swApp As SldWorks.SldWorks Sub main() Set swApp




You are not authorized to view this page No results found! Suggestions: Check spelling, try a different search, or browse topics below.