cancel
Showing results for 
Search instead for 
Did you mean: 

Link Drawing Item Color with API

Frequent Contributor

Link Drawing Item Color with API

Hi Community,

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

 

Thanks in advance.

Colruyt Team
Tags (3)
1 REPLY
MEGA Partner

Re: Link Drawing Item Color with API

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