CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 4231 

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")  
or
(amggetdwgsetting "scale")
(amgsetdwgsetting "scale" "1:3")
ACADMMDT
100% *  CAD 
9.1.2006    9265×  
Prices - CAD eShop:
applies to: AutoCAD Mechanical · MDT ·

See also:
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.
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.


Back   All CAD Tips All CAD tips&tricks



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   



Featuring:
Automatic nesting of 2D parts on rectangular sheets in AutoCAD
AutoNEST 2008 More info


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