PPT_LOGO_4b
‹#›
© 2009 Autodesk
Autodesk Developer Network
AEC and Arch per-DWG Settings
§Autodesk.Aec.ApplicationServices.DrawingSetupVariables
§Exposes most of “Drawing Setup” saved in the drawing database
§
§
§
§
§
§
§
§
§
§
Dim idDwgVars As ObjectId = DrawingSetupVariables.GetInstance(db, False)
Dim dwgVars As DrawingSetupVariables = _
tr.GetObject(idDwgVars, OpenMode.ForWrite)
DrawingSetupVariables
DBVariables
DictionaryRecord
DBObject
Drawing variables are like AutoCAD system variables. These are stored in a drawing and are on a per dwg basis. This the name space for the base drawing setup variables. And many of this correspond to the AecDwgSetup dialog and some of them match up with this while others are used in combination to set other presets.

For example AreaSuffix is an AEC specific variable whereas Linear units exist in both AutoCAD.DBServices.Database.LinearUnits and AEC has a linear display format. Ultimately, AEC one internally calls the AutoCAD one and sets the same value.

DrawingSetupVariables exposes many of the base settings saved in the drawing database.