CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 6837

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    10029×  
Prices - CAD eShop:
applies to: AutoCAD Mechanical · MDT ·

See also:
Tip 13599:How to read iProperties from Inventor models and drawings in AutoCAD DWGs?
Tip 13514:Why does the Power dimensioning command zoom my drawing?
Tip 13174:Transfer electronic designs from Tinkercad to Fusion 360.
Tip 11650:How to add AutoCAD toolbars to AutoCAD Mechanical menus?
Tip 11189:Mass rename of spaces (Revit MEP) from rooms in an underlaid architecture model.

Back   All CAD Tips

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   

Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info

Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.