Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
1253 Views, 10 Replies

change color and thickness of sketch line

Hi,

 

I want change properties (color and thickness) of sketch line in assembly/part, when I have open assembly,but not active sketch.

Rule:

 

Dim oSketch as Sketch

oSketch=thisApplication.ActiveEditObject   ´here is a problem, because rule run only when is sketch active!!!

 

Dim oColor as color

oColor = thisApplication. TransientObject.CreateColor(0,0,0)

 

osketch.SketchLines(2).OverrideColor=oColor

---------------------

Question are:

1) How will run rule, when is sketch not active, but I have assembly/part open?

2) How change thickness of sketch line??

3) Where/how find out how is named this line/curve in sketch?? ( SketchLines(2) or SketchLines(99) )

4) command for white color??

 

Thanks for your time and reply!