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

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    8034x  
Comments   Tell a friend
applies to: AutoCAD Mechanical · MDT ·

See also:
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.
Tip 9905:Double-click on a text gives: Unknown command DDEDIT.


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   



Featuring:
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.
TOPlist