AutoCAD.Database
Description
A class that represents an AutoCAD DWG file.
This class wraps a subset of the RealDWG AcDbDatabase class functionality.
Properties
| insunits | The insertion units for the database. |
| unitsPerMeter | The number of database units in one meter. |
Methods
| getBlockTable | Retrieves the database's block table. |
| saveAs | Writes the database to the dwg file path. |
Constructor
| Database | Creates a database for reading and/or writing. |
Static Methods
| openObject | Opens a database-resident object. |
Details
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.Database.unitsPerMeter
double unitsPerMeter
Description
The number of database units in one meter.
Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.Database.getBlockTable()
| AutoCAD.BlockTable getBlockTable( int openMode ) |
Parameters
| openMode | The mode by which to open the table. 0 means read only, 1 means write-enabled. |
Description
Retrieves the database's block table.
Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.Database.saveAs()
| void saveAs( string filePath ) |
Parameters
| filePath | The path to the dwg file that you want to write to. |
Description
Writes the database to the dwg file path.
Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.Database Constructor
| Database( ) |
| Database( int defaultDrawing ) |
| Database( string filePath , writeEnabled = 0 ) |
Parameters
| defaultDrawing | 1 if you want the database to be created with a default set of tables needed for a blank AutoCAD drawing, 0 if you want a completely empty database. |
| filePath | The path to the dwg you want to open. |
| writeEnabled | 1 if you want to open the file with writing enabled, 0 otherwise. |
Description
Creates a database for reading and/or writing.
Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.Database.openObject()
| static AutoCAD.BlockTable openObject( int openMode ) |
Parameters
| openMode | The mode by which to open the table. 0 means read only, 1 means write-enabled. |
Description
Opens a database-resident object.