Setting System Variables

#1
I am trying to set the drawing system variables in a single VB script. I just can't seem to get the SetVariable method to work.

I am trying (amongst other variations) the following:

Set iDoc = IntelliCAD.ActiveDocument
iDoc.SetVariable COLORX, 4

Any suggestions?

#2
Julian,

Try enclosing COLORX IN QUOTES (ITS WANTS A STRING)

iDoc.SetVariable "COLORX", 4

You will have to do a regen to see the change.

ssc
cron