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

CAD tip CAD tip # 6544:

Question CAD 
 %  platform  category 
Q - question

How to set a coordinate system with a single button?

A - answer If you often need to change or assign a coordinate system in your drawings (maps), you may need a commandline version of the command in Map (a dialog-based command by default).

You can use e.g. the following LISP macro:

(defun C:SetWGS ()  
(setvar "CMDDIA" 0)  
(command "ADESETCRDSYS" "_ses" "LL84" "_ex")  
(setvar "CMDDIA" 1)  
The newly defined command SetWGS can be then assigned to a toolbar button or keyboard shortcut.

Another - simpler method is to use the LISP function:

(ade_projsetwscode "LL84")  
100% *  CAD 
24.2.2009    12250×  
Prices - CAD eShop:

See also:
Tip 13784:Export block coordinates to a table. How to use the DATAEXTRACTION command in AutoCAD LT?
Tip 13692:What is the precision in Revit?
Tip 13514:Why does the Power dimensioning command zoom my drawing?
Tip 13296:How to correctly load a KML/KMZ file into Civil or Map 3D?
Tip 13234:How to place a GeoTIFF image automatically into the correct position?

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.