How can I get CoordinateSystemCode?

This widget could not be displayed.

How can I get CoordinateSystemCode?

Anonymous
Not applicable

I get a TinSurface and I want to Export it to a .tif File by ExportToDEM( string fileName, string coordinateSystemCode, double gridSpacing, ExportDetermineElevationType deteElevBy ).But it always shows me this mistake "The coordinateSystemCode is not supported." I don't what can I fill in it.What can I fill in it?

0 Likes
Reply
Accepted solutions (1)
686 Views
11 Replies
Replies (11)

Anonymous
Not applicable

you would need to input the coordinate system code for the surface.... if your drawing is assigned to a coordinate system, go to the drawing settings and use the code shown there.

0 Likes

ChicagoLooper
Mentor
Mentor

Use the Toolspace.

  1. Right click on the name of your surface and select Export to DEM from the shortcut menu.
  2. In the Export Surface to DEM window, you'll need to Name your export and a folder to save it.
  3. In the same Export to DEM window you may also choose 1) Coordinate zone, 2) grid spacing, and 3) determine elevations by.
  4. OK to export. 

1-Right click the Name of surface in Toolspace.1-Right click the Name of surface in Toolspace.

 

 

 

2-Name your DEM and a folder location.2-Name your DEM and a folder location.

 

 

Chicagolooper

EESignature

0 Likes

Anonymous
Not applicable

I know this way but I want to realize the method in C# and now in C# I need to fill in the right CoordinateSystemCode but I try many times,it always throws the exception " The coordinateSystemCode is not supported.".I want to know how to get the coordinate's coordinateSystemCode.image.png

like this,what is the coordinateSystemCode corresponding to this coordinate zone?How can I know it?

0 Likes

Pointdump
Mentor
Mentor

Nick,
As @Anonymous mentioned, in Drawing Settings look for "Selected coordinate system code:"

CS_Code.png

 

Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
0 Likes

Anonymous
Not applicable

I tried this code many times but always showing me this exceptionimage.png

0 Likes

Pointdump
Mentor
Mentor

Nick,
What version C3D are you using? Are you current on updates? Can you post your drawing?
Dave

Dave Stoll
Las Vegas, Nevada

EESignature

64GB DDR4 2400MHz ECC SoDIMM / 1TB SSD
NVIDIA Quadro P5000 16GB
Windows 10 Pro 64 / Civil 3D 2024
0 Likes

keith_sowinski
Advocate
Advocate

Look in the SettingsUnitsZoneClass.

http://docs.autodesk.com/CIV3D/2019/ENU/API_Reference_Guide/index.html

UnitsZone.png

 

ChicagoLooper
Mentor
Mentor
0 Likes

Anonymous
Not applicable

I have tried this,but still the same mistake

0 Likes

Anonymous
Not applicable

Version:C3D 2018 R22.0.49.0.0 NoUpdates. sorry,my drawing can't share

0 Likes

Anonymous
Not applicable
Accepted solution

I know the reason why it throws a mistake.Because not all codes are supported,only a few of them can be used!!!

0 Likes