Assign coordinate system, using commandline

Assign coordinate system, using commandline

Anonymous
Not applicable
4,056 Views
5 Replies
Message 1 of 6

Assign coordinate system, using commandline

Anonymous
Not applicable

Hi,

 

I have forgotten. Which command can be used to assign a coordination system to a drawing? I remember it was something like; CSASSIGN, ASSIGNCS, or something like these, but I don't exactly remember.

 

Thanks

Bijan

0 Likes
Accepted solutions (2)
4,057 Views
5 Replies
Replies (5)
Message 2 of 6

Jay_B
Mentor
Mentor
Accepted solution

Command: MAPCSASSIGN ?

C3D 2018.1
C3D 2016 SP4

Win 7 Professional 64 Bit
Message 3 of 6

andrew.schroeder
Enthusiast
Enthusiast
Accepted solution

First set CMDDIA = 0, then issue Command: ADESETCRDSYS or MAPCSASSIGN.  When you're done, switch CMDDIA =1.

 

If this works for you, please mark it as the solution for others.  Thanks!

 

 

Message 4 of 6

chriscowgill7373
Advisor
Advisor

I've run into an issue when using this method to set the coordinate system. Although the coordinate system displays as the select system, it doesn't seem to actually take to the drawing until you have physically opened the Drawing Settings dialog, viewed the Units and Zones tab, and then closed the dialog.  We ran into a few issues with some of our projects because we didn't catch this when we first instituted this method of swapping our coordinate systems.  I have since removed the commands from our customization files, and we've had to resort back to utilizing the settings dialog.


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2024 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

Message 5 of 6

cwr-pae
Mentor
Mentor

In C3D 2019 the following works as a macro in the tool palette and could be used in a tool bar. With the online maps on it doesn't require anything else to be done and changes the map display to the appropriate zone. It also updates the Zone indicator I have in my status bar instantly [(setvar "MODEmacro" "Zone = $(getvar, CGEOCS)") in acaddoc.lsp] .

^C^Ccmddia;0;ADESETCRDSYS;s;LA83-NF;^Ccmddia;1;regen;

Replace the red text with your coordinate system code of course.

0 Likes
Message 6 of 6

Anonymous
Not applicable

This method unfortunately does the same as the previously suggested one.  In the attached image, the left screen (fig. 1) is using the macro, and the right screen (fig. 2) is using the "old fashioned" method of going to the Settings tab of the Toolspace and opening the drawing settings dialog box. Both are using NAD83 Indiana State Planes, East Zone, US Foot Coordinate System.  As you can see, in fig. 1, the Northing and Easting do NOT match the Grid Northing and Easting, and In fig. 2, they match.  This also effects the Latitude and Longitude coordinate since they are apparently tied to the Grid Northing and Easting.

Like stated before, the points can be fixed by opening the Drawing Settings dialog box, going to the Units and Zone tab and then closing the dialog box.  That however, completely defeats the purpose of having a button or a custom command if I have to open the dialog box anyway.

0 Likes