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
Solved! Go to Solution.
Solved by ActivistInvestor. Go to Solution.
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
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.
Can't find what you're looking for? Ask the community or share your knowledge.