Is there a variable whose value determines the coordinate system

Is there a variable whose value determines the coordinate system

АлексЮстасу
Advisor Advisor
881 Views
6 Replies
Message 1 of 7

Is there a variable whose value determines the coordinate system

АлексЮстасу
Advisor
Advisor

Is there a variable whose value determines the coordinate system? For example, the coordinate system code?
I'd like to assign a coordinate system in a macro. Or programmatically, reading a variable and its value from a text file.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Accepted solutions (1)
882 Views
6 Replies
Replies (6)
Message 2 of 7

braudpat
Mentor
Mentor

Hello ARX Master

I don't think there is a specific variable !? Please check ?

I am tired and I have about 30-32 degres at home !

But you can assign the current projection system to an ACAD Field ...
With the magic expression : %《\AcVar cgeocs》%

Happy WE, Regards, Patrice

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


0 Likes
Message 3 of 7

АлексЮстасу
Advisor
Advisor

Hi, Map Master!

 

And we now have only +11 degrees in the afternoon! Although a week ago it was up to +30.
Obviously, to balance with you.

 

Alas, I am never a programmer at all.
I don’t even understand in which field to write this %《\AcVar cgeocs》%.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 4 of 7

braudpat
Mentor
Mentor
Hello

I am speaking about dynamic fields !
INSERT / FIELD... Select the System variable CGEOCS

Regards, Patrice
Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 5 of 7

АлексЮстасу
Advisor
Advisor

Euronews tells me that in southern France the temperature is more than 40, and there have even been fires.

Hold on!

 

I could not understand, because I never used this INSERT / FIELD, I did not know about it. Thank!
But this way only I can learn about CS?
I would like to set CS by defining a variable.

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes
Message 6 of 7

braudpat
Mentor
Mentor
Accepted solution

Hello

OK OK now I understand really what you need !

There is not a direct system variable but with a single line Lisp Code , you will do the job !!
(ade_projsetwscode "xxxxxxxx")  for ACAD MAP or for ACAD CIVIL

---- To erase the projection system ---
Commande: (ade_projsetwscode "")
T

---- Projection System = "LL84" ----
Commande: (ade_projsetwscode "LL84")
T

---- Projection System = "Lambert93" ----
Commande: (ade_projsetwscode "Lambert93")
T

Regards, Patrice (The Old French EE Froggy)

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 7 of 7

АлексЮстасу
Advisor
Advisor

Ok!

I understood this:
1. Install CS using the definition of a variable is impossible.
2. In the macro or from the command line, I can specify CS using the expression: (ade_projsetwscode "<CD code>").

 

Thank you!

 


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

0 Likes