CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 2420 

CAD tip CAD tip # 4820:

Question CAD 
 %  platform  category 
Q - question

How to get/set AutoCAD Mechanical scale in a program or script?

A - answer To get or set the modelspace scale variable in AutoCAD Mechanical (as in the AMTITLE or AMCONFIG commands) from your user program (application, routine) or menu script, you can use the following LISP functions:
(gengetdwgsetting "scale")  
(gensetdwgsetting "scale" "1:10")  
(amggetdwgsetting "scale")
(amgsetdwgsetting "scale" "1:3")
100% *  CAD 
9.1.2006    7986x  
Comments   Tell a friend
applies to: AutoCAD Mechanical · MDT ·

See also:
Tip 10936:Using assemblies in Inventor LT.
Tip 10154:Error "You do not appear to have any language database files installed." in Simulation Mechanical Fatigue Wizard.
Tip 10068:Surface texture symbol with predefined texts and symbols.
Tip 9905:Double-click on a text gives: Unknown command DDEDIT.
Tip 9884:Wrong color on monochrome DWG prints from AutoCAD Mechanical.

Back   All CAD Tips All CAD tips&tricks

Network license - Error [1200.5.-96] « | » Where from comes the "NotInProject" folder in Pack-and-Go?

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Track your time spent working on AutoCAD or Revit jobs - automatically with
CADstudio JobTime More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.