CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE

CAD tip CAD tip # 6544:

Question

CAD 
 %  platform  category 
A
If you often need to change or assign a coordinate system in your drawings (maps), you may need a commandline version of the coord.systems 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)  
(princ)  
)  
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")  
Map2009Civil2009TB2009
100% *CAD
24.2.2009   14669×  
   
this tip shared by ARKANCE experts applies to: AutoCAD Map 3D 2009 · Civil 3D 2009 · Topobase/MapServer 2009 ·

See also:
Tip 15102:DBXscan/DBXrem batch utilities for AutoCAD
Tip 15089:2DPlot - parametric math curves in AutoCAD.
Tip 14911:Using symbolic variables to enter repeated values in AutoCAD.
Tip 14894:Importing CSV points in Map/Civil - ImportPoints vs. MapImport.
Tip 14630:Extended ASCPOINT - import coordinates from CSV file, including blocks with attributes, GPS coordinates, etc.


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
  





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