Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Coordinate System Variable

36 REPLIES 36
SOLVED
Reply
Message 1 of 37
borderliner
4182 Views, 36 Replies

Coordinate System Variable

Hi, my problem of the day is, I want to have a piece of text added to the drawing notes that uses a field (or similar), to list the coordinate system code assigned to the drawing, i.e. UTM83-12.

Does anyone know if there’s a setvar or something that I can use?

 

I’m in Canada and they have a load of different coordinate systems to choose from, and I don’t want to have to manually enter it for every drawing.

 

Thanks

 

36 REPLIES 36
Message 21 of 37
borderliner
in reply to: Jeff_M

Speechless - thanks.

Message 22 of 37
Jeff_M
in reply to: borderliner

You're welcome, glad I could help.

 

If you find a response which answers your question, please be sure to accept the actual post which helped you as the solution. This will help future searchers quickly find answers to their own questions. Thanks!

Jeff_M, also a frequent Swamper
EESignature
Message 23 of 37
AllenJessup
in reply to: Jeff_M


Jeff_M wrote:

 

(load "Coordsystem extraction.lsp")

(setusers1)

 

 


Jeff,
 

Should that second line be (setuser1) ? That runs the setuser1 routine in your lisp and give me the correct coordinate system. (setusers1) gives me an error. This is in C3D 2012.

 

Maybe It's just me. Looks like all others are having no problem.

 

Allen Jessup


Civil 3D 2012 SP 3 / IDSP 2014
Dell Precision T7400, Xeon CPU 3.16 GHz
Win 7 Pro, 64-bit,12 GB RAM, Nvidia Quadro FX 4600



Allen Jessup
Engineering Specialist / CAD Manager

Message 24 of 37
borderliner
in reply to: Jeff_M

Done. Cheers.
Message 25 of 37
Jeff_M
in reply to: AllenJessup


@AllenJessup wrote:

Jeff_M wrote:

 

(load "Coordsystem extraction.lsp")

(setusers1)

 

 


Jeff,
 

Should that second line be (setuser1) ? That runs the setuser1 routine in your lisp and give me the correct coordinate system. (setusers1) gives me an error. This is in C3D 2012.

 

Maybe It's just me. Looks like all others are having no problem.

 



Yes, Allen. I realized I had not included the s in the lisp as I was typing the reply. I went and changed the lisp but looks like I forgot to save it prior to attaching it so the version without it got posted. So yes, either your correction needs to be done or the name of the lisp function needs to be edited.

 

Jeff_M, also a frequent Swamper
EESignature
Message 26 of 37
edward.winter
in reply to: Jeff_M

Hi Jeff,

Great lisp routine of yours.
Is it also possible to retrieve all the coordinate systems into a list?
I want to use that list to pick from, and I don't want to use the MAPCSASSIGN command in lisp.

Thanks,

Kind regards,

Edward Winter
Message 27 of 37
siroos.jafary
in reply to: borderliner

Hi All,

 

It might bee too late but I beleive it can help others having same problem. You may use "cgeocs" variable in field to show drawing coordinate system.

 

Cheers.

 

 

Please mark it as a correct answer if it is usefull for you!

Message 28 of 37
CodeDing
in reply to: borderliner

Just noticed there was a second page, trying to delete my comment. Answer has been provided with "cgeocs"!

 

~D

~DD
Senior CAD Tech & AI Specialist
Need AutoLisp help? Try my custom GPT 'AutoLISP Ace':
https://chat.openai.com/g/g-Zt0xFNpOH-autolisp-ace
Message 29 of 37
rwesson
in reply to: CodeDing

HORAY - all things come to he who waits 🙂

 

 

I assuming you use Civil 2018....? I'm still on 2015 and connect to shapefiles (SHPs) all the time.

 

Is all the mapping functionality still there?

 

I'm nervous about asking to get upgraded and then loose the ability to do the things I can do now.

 

Thanks

 

Message 30 of 37
chrisan
in reply to: Jeff_M

Does anyone know if there is an update to this or easier sollution for Autocad Map 3d 2019? Please

Message 31 of 37
borderliner
in reply to: chrisan

This did work just fine. Takes a few minutes to setup, but rock solid after that.
Don't use it any more though.
Message 32 of 37
AllenJessup
in reply to: chrisan

As @siroos.jafary suggested. Use the CGEOCS variable in a text or Mtext Field.



Allen Jessup
Engineering Specialist / CAD Manager

Message 33 of 37
ssanchezVWWMX
in reply to: borderliner

Not sure if you use sheet sets but you can create a SheetSetCustom Property and link a text field to that custom property in your notes.  attached is screenshot of the field being linked to the custom sheet set properties

Message 34 of 37
ssanchezVWWMX
in reply to: borderliner

Not sure if you use sheet sets but you can create a SheetSetCustom Property and link a text field to that custom property in your notes.  attached is screenshot of the field being linked to the custom sheet set properties

Message 35 of 37
chrisan
in reply to: AllenJessup

Thank you Allen.  This is what I was looking for.  I spent so long trying to figure out what to call it so that I can do a search.

 

Much appreciated.

Message 36 of 37
CemilYuksel
in reply to: borderliner

Hello,

I know it might be too late. But I saw this post recent.

I could be populate Field. Other/SystemVariable/cgeocs .

cgeocs, system variable uses current coordinate system code.

 

Regards.

Message 37 of 37
dan_perde
in reply to: borderliner

Just a few years late, but there's an out-of-the-box option to get it by inserting a field and point to the SystemVariable category and pick "cgeocs".

Screenshot 2021-02-12 081232.png

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report