Accessing system variables directly without using acedGetVar()/GetSystemVariable()

By Adam Nagy

I just realized that variables like EXTMIN, EXTMAX, etc. can also be accessed directly through AcDbDatabase, so I do not need to use acedGetVar()

Solution

Yes, that is correct.

acedGetVar() [aced = AutoCAD Editor] and Application.GetSystemVariable() enables you to access system variables that are also available for users through the AutoCAD Editor in the User Interface.

However, non-AutoCAD dependent system variables like EXTMIN, EXTMAX, UCSXDIR, etc. can also be found directly under AcDbDatabase/Database. For a complete list have a look at the AcDbDatabse methods or Database properties in the ObjectARX/.NET Reference Guide [arxdoc.chm].


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading