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

System Variables

0 REPLIES 0
Reply
Message 1 of 1
cadcamm99
310 Views, 0 Replies

System Variables

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 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost