.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Variable Description

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
BrentBurgess1980
581 Views, 4 Replies

Variable Description

Hi All,

 

Does anyone know where the descriptions of the variables are stored as it is not a property of the variable itself? 

 

 public static List<string> GetVariables()
            {
            List<string> variables = new List<string>();
            var doc = AcApp.DocumentManager.MdiActiveDocument;
            if (doc == null)
                return variables;
            // Use the new system variable enumerator
            var sve = new SystemVariableEnumerator();
            while (sve.MoveNext())
                {
                var v = sve.Current;
                if (v != null)
                    {
                    if (!v.IsReadOnly)
                        variables.Add(v.Name);
                    }
                }
            variables.Sort();
            return variables;
            }

Cheers,

 

Brent

4 REPLIES 4
Message 2 of 5

Thought I'd add some more clarity about what I was looking for

Variable.png

Message 3 of 5

The data comes from sysvdlg.dat in the \Express folder.

 

You can read the file yourself. The format is fairly simple.

 

For each sysvar, there are two lines. The first line has the following format:

 

sysvar name|data type|scope|initial value

 

The second line is the description.

 

 

 


@BrentBurgess1980wrote:

Thought I'd add some more clarity about what I was looking for

Variable.png


 

Message 4 of 5
dgorsman
in reply to: BrentBurgess1980

I considered doing that at one point, but once I got to the dimensioning variables... ugh, I've got better things to do than that much typing and formatting.  So instead of writing (or copying) everything out I constructed a hyperlink to search for the name in the online AutoCAD help.  Now always as up to date as what's online, and no chance of transcription errors on my part.

 

That won't work on a completely isolated system of course.

----------------------------------
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.


Message 5 of 5
BrentBurgess1980
in reply to: dgorsman

Thanks for the feedback. It was on a wishlist, not critical

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

Post to forums  

Forma Design Contest


Autodesk Design & Make Report