Skip to main content
1-Visitor
Aug 1, 2013 1:35 PM UTC
Solved

IsoDraw macro change_line_color

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

Dutch_MnAnswer
1-Visitor
Aug 5, 2013 1:48 PM UTC

Try this

Macro pencolor


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

End Macro

4 replies

Dutch_Mn1-VisitorAnswer
1-Visitor
Aug 5, 2013 1:48 PM UTC

Try this

Macro pencolor


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

End Macro

Translate
swillis-21-VisitorAuthor
1-Visitor
Aug 5, 2013 1:54 PM UTC

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

That has worked well!!

Translate