cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Link Drawing Item Color with API

ColruytTeam
Honored Contributor

Hi Community,

Can any one tell how we can set color for a link drawing item through vbscript API.

 

Thanks in advance.

Colruyt Team
1 Reply

SVanSchoonlandt
Honored Contributor

give this a try, should change it to red

 

Set oLinePen = oDrawingItem.Pen

oLinePen.Color = &hFFFF0000

oDrawingItem.Pen = oLinePen

oDrawing.Flush

 

&hFFFF0000 => if I remember correct the last 6 digits are the hex colour code FF0000 = red; 00FF00 = green; FFFF00 = yellow