How can I get all system variables of AutoCAD? I want get it as IEnumerable.
If it impossible now, then it would be very good, if in.Net API such properties were marked with special attribute, for example AcVariableAttribute. Then through reflection it would be possible to receive the all system variables of AutoCAD.
I hope that you can understand that I have written. Just in case I set an example:
//==================================
public class AcVariableAttribute : Attribute {
public string FullName { get; private set; }
public string HelpPage { get; private set; }
public AcVariableAttribute(string fullName, string helpPage) {
FullName = fullName;
HelpPage = helpPage;
}
}
//==================================
I show attribute application on an example of class Database (for AutoCAD 2009):
//==================================
[Wrapper("AcDbDatabase")]
public sealed class Database : RXObject {
//...
[AcVariable("USERR1", @"WS1a9193826455f5ffa23ce210c4a30acaf-4e0e-reference.htm")]
public double Userr1 { get; set; }
//...
}
//==================================
Thank you.