CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 4075 
Plex.Earth connects AutoCAD and Google Earth

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    7890x  
Comments   Tell a friend

See also:
Tip 10636:The entity isn't planar to the World Coordinate System and can't be converted.
Tip 10365:Coordinate Tracker vs. Track Coordinates - how to track XYZ in Civil3D?
Tip 10167:Keyboard shortcuts in Autodesk Fusion 360.
Tip 9860:Displaying a DWG including GPS position on a mobile phone or tablet.
Tip 9715:Some coordinates in isometric are displayed with decimal places.

Back   All CAD Tips All CAD tips&tricks

How to set transparent color for my own AutoCAD icons? « | » How to convert 2D SOLID objects to 3D faces?

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   

Increase your productivity with our set of add-on functions for AutoCAD Civil 3D
CADstudio Civil Tools 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.