Extract all system variables

Extract all system variables

Anonymous
Not applicable
1,021 Views
6 Replies
Message 1 of 7

Extract all system variables

Anonymous
Not applicable

Hi,

 

I was wondering if there is any way to dump out all system variables with current value in a text file. One way would be to have the varible names already preset in a list of strings then extract them. But is there any other faster way? I need to compare some drawings side by side.

 

Thank you for any suggestion.

 

e.g.

0 Likes
1,022 Views
6 Replies
Replies (6)
Message 2 of 7

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

not dotNET but maybe it helps: the Express-Tools have the command _SYSVDLG where you can export (and import) all variables.

Be carefull: especially double values are rounded so importing may result in problems (especially angle-values).

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 7

Anonymous
Not applicable

Hi Alfred,

 

thanks, this will work for me. This will be the entire list of variables (including those read only)? Just for curiosity.

 

e.g.

0 Likes
Message 4 of 7

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

sorry no, not the readonly ones (but thank you for requesting it, didn't know it by myself, now i learned that also 😉 )

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 5 of 7

Anonymous
Not applicable

It would be really nice to have a snippet that will dump out all the variables, including the read-only ones.

 

Anyway thanks for your help.

 

e.g.

0 Likes
Message 6 of 7

dgorsman
Consultant
Consultant

As for comparing them, look into diff programs like WinDiff and TortiseMerge.  They make detecting changes  between files (LISP, dotNET source code, XML data, pretty much anything text) much easier.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes
Message 7 of 7

chiefbraincloud
Collaborator
Collaborator

Again, not .NET, but it will accomplish what you asked.  Just turn on drawing logging (options dialog ->open and save tab-> lower left "Maintain a Log File")

 

Then run the SET command in the drawing window type "?" then "*".  then compare the log files for the two drawings.

 

I believe the complicated .NET approach would be to use reflection.  I might try to play with a form I already have that has a different purpose.

Dave O.                                                                  Sig-Logos32.png
0 Likes