System Variables

System Variables

Anonymous
Not applicable
363 Views
0 Replies
Message 1 of 1

System Variables

Anonymous
Not applicable

I am trying to make the DIMSCALE and the AMSYMSCALE to be the same.   Even though the Autocad help files says AMSYMSCALE is a system variable, it is not. So I have to change it with an execute command line.

 

So if I use:

 

Dim dblScale as double = "0.5"

Dim ThisDrawing As Document = Application.DocumentManager.MdiActiveDocument

ThisDrawing.SendStringToExecute("._amsymscale " & dblScale & " ", True, False, False)

Application.SetSystemVariable("DIMSCALE", dblDimScale)

 

I get an exception error.  If I take out line 4 then the execute command works.  If I take out lines 2 and 3, then the setsystemvariable command works.  But they will not work together.  I guess I can just do two execute commands but I was just wondering why they both do not work together.

 

0 Likes
364 Views
0 Replies
Replies (0)