Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Pelikano on August 08, 2012, 08:18:00 pm

Title: Line color by shape script
Post by: Pelikano on August 08, 2012, 08:18:00 pm
I would like tot set a line color in a shape script. I can fill a object with setfillcolor, set a style whtih setlinestyle and I hoped to set the line color with SetLineColor  :-?

Or how can I set a line color for a Stereotype?

Title: Re: Line color by shape script
Post by: Paulus on August 08, 2012, 10:46:19 pm
It's SetPenColor.

Btw: using (left-CTRL)+space in the shape editor produces a dropdown of valid commands,

regards,

Paulus
Title: Re: Line color by shape script
Post by: Pelikano on August 09, 2012, 01:18:20 am
Thx, it works! I'm even more happy with (left-CTRL)+space! Why is this tip not in the help of the shape editor... ::)
Title: Re: Line color by shape script
Post by: RoyC on August 09, 2012, 09:47:58 am
I have just added a reference in the Drawing Methods topic for Shape Scripts. However, the Shape Script editor is based on the Common Code editor, which applies the Intellisense feature.  Ctrl + Space is documented in both the Code Editor Key Bindings topic and the Intellisense topic, amongst others.