Skip to main content
1-Visitor
August 1, 2013
Solved

IsoDraw macro change_line_color

  • August 1, 2013
  • 1 reply
  • 3204 views

I need to change the color of a pen to....

Define Mycolor as ColorSpec

Mycolor.type = "rgbValues"

Mycolor.rgb.red = 255

Mycolor.rgb.green = 116

Mycolor.rgb.blue = 66

I found this......

activeDoc.pens["Thick"].color.type = "colorRef"

activeDoc.pens["Thick"].color.color = "Mycolor"

activeDoc.pens["Thick"].color.tone = 1

...but I'm confused about the syntax

any help most appreciated

Best answer by Dutch_Mn

Try this

Macro pencolor


activeDoc.pens["Thick"].color.type = "rgbValues"
activeDoc.pens["Thick"].color.RGB = "{RGB 255 116 66}"

End Macro

1 reply

Dutch_Mn1-VisitorAnswer
1-Visitor
August 5, 2013

Try this

Macro pencolor


activeDoc.pens["Thick"].color.type = "rgbValues"
activeDoc.pens["Thick"].color.RGB = "{RGB 255 116 66}"

End Macro

swillis-21-VisitorAuthor
1-Visitor
August 5, 2013

yes......many thanks ....again

That has worked well!!