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

Setting DIMSCALE

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
670 Views, 3 Replies

Setting DIMSCALE

Hi All,

I am getting a Error with this code:

Autodesk.AutoCAD.ApplicationServices.Application.SetSystemVariable("DIMSCALE", 12.0);

I am getting a "eInvalidInput" error.

 

Jim

3 REPLIES 3
Message 2 of 4
chiefbraincloud
in reply to: Anonymous

Not sure why you would get eInvalidInput on that, but I would just set the property on the Database object.

 

Get a reference to the database and use database.DimScale = 12

 

Dave O.                                                                  Sig-Logos32.png
Message 3 of 4
Anonymous
in reply to: chiefbraincloud

It works now...  I have to Lock the Document. 😞

 

Message 4 of 4
chiefbraincloud
in reply to: Anonymous

Ahh... Didn't think of that.  It must be because of where you are calling it from, such as from code running in a Form, or from a command in the Session context.

Dave O.                                                                  Sig-Logos32.png

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

Post to forums  

Forma Design Contest


Autodesk Design & Make Report