Author Topic: Line color by shape script  (Read 3570 times)

Pelikano

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Line color by shape script
« 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?


Paulus

  • EA User
  • **
  • Posts: 152
  • Karma: +0/-0
    • View Profile
Re: Line color by shape script
« Reply #1 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
« Last Edit: August 08, 2012, 10:50:55 pm by pmaessen »

Pelikano

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Line color by shape script
« Reply #2 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... ::)

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Line color by shape script
« Reply #3 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.
Best Regards, Roy