API Reference > OdDg Classes > OdDgDatabase Class
OdDgDatabase Class
OdDgDatabase
Syntax
C++
class OdDgDatabase : public OdGiDrawable;

DgDatabase.h

Corresponding C++ library: TG_Db 

 

 
Name 
Description 
 
Aborts the current transaction associated with this database object. 
 
Adds an object to this database object, and returns its Element ID.
 
 
Adds the specified reactor to this object's reactor list.
 
 
OdRxObject overridden 
 
Adds a transaction reactor to this database object.
 
 
 
 
Returns the OdDgHostAppServices object associated with this database object. 
 
 
 
 
 
 
 
Remove unused dgn elements from database.
 
 
 
 
Deep clones a set of objects, and appends the clones to the specified in owner object.
 
 
Controls the undo recording of this object in OdDbDatabase.
 
 
Ends the current transaction associated with this database object. 
 
 
 
active angle 
 
active cell name 
 
element symbology - color 
 
active level ID 
 
element symbology - style 
 
element symbology - weight 
 
active model ID 
 
active patterning angle 
 
second pattern angle (for x-hatch) 
 
active patterning cell 
 
active patterning column spacing 
 
active patterning row spacing 
 
active patterning scale 
 
active point cell name 
 
active point character, if symbol 
 
active point type. 0 = none, 1 = symbol, 2 = cell 
 
element properties word 
 
active line terminator cell name, if cell 
 
active line terminator scale 
 
last selected text style id 
 
active view group id 
 
 
 
 
 
angle readout format 
 
 
 
 
 
 
 
control angle-to-string conversion. 
 
angle round-off 
 
angle threshold (radians) 
 
 
 
 
 
for circles and arcs 
 
active area patterning angle 
 
active area patterning column spacing 
 
active area patterning row spacing 
 
area threshold (radians) 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
elements to make associations for 
 
 
 
automatic dimensioning flags 
 
 
 
 
 
azimuth true north angle 
 
 
 
 
 
cell library file name 
 
 
 
 
 
 
 
 
 
 
 
used for cones only 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
default mode for snapping 
 
 
 
 
 
 
 
 
 
displayable attribute type 
 
 
 
DMRS flag 
 
linkage generation mode (DMRS) 
 
Returns the Element ID corresponding to the specified handle object in this database.
 
 
 
 
 
 
 
 
Tolerance for exact hidden line removal 
 
 
 
 
 
 
 
range - high 
 
range - lo 
 
Degree of distance cueing at far clip plane 
 
Returns the name of the file associated with this database object. 
 
Color for filled elements 
 
 
 
 
 
 
 
 
 
Offset to greenwich mean time 
 
 
 
Color of fog 
 
Highlight color 
 
 
 
divisor for keypoint snapping 
 
 
 
 
 
 
 
 
 
Active line style info 
 
 
 
Line style global display scale 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Multiline flags 
 
 
 
 
 
Degree of distance cueing at near clip plane 
 
Distance to begin distance cueing 
 
 
 
 
 
Returns the version of the file from which this database object was read.
 
 
 
 
 
 
 
 
Stroke tol for patterns (uors) 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Returns this database's reactors.
 
 
 
 
reserved for future cell settings 
 
Returns the state of the RetainOriginalThumbnailBitmap flag. 
 
scale lock roundoff value 
 
 
 
 
 
...otherwise use this. 
 
FALSE means use highlight color... 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
solar direction vector override 
 
Year for solar light calculations 
 
 
 
stream delta 
 
stream Tolerance 
 
 
 
 
 
system class bit map 
 
 
 
tentative point mode flag 
 
tentative point sub mode 
 
lock for text scale 
 
 
 
This is the overview for the getThumbnail method overload. 
 
 
 
 
 
 
 
active scale in x-axis 
 
xor color 
 
active scale in y-axis 
 
active scale in z-axis 
 
get Z range of 2d elements for this value 
 
get Z range of 2d elements for this value 
 
 
 
Returns true if redo information exists of this database object. 
 
Returns true if undo information exists of this database object. 
 
 
 
id 
 
 
Adds the default set of objects and settings to this database object. 
 
 
 
ODA_MT_DB_BEGIN
  • details If multi-threaded mode is on, the method returns true. In the other case it returns false.
 
 
 
 
 
 
Returns true if and only if this object is open OdDb::kForWrite. 
 
Returns which multi-threaded mode the database currently uses. 
 
Adds the specified name to the APPID table of this database object.
 
 
Returns the number of active transactions associated with this database object. 
 
 
 
This is the overview for the readFile method overload. 
 
Reads the contents of the memory stream into this database object.
 
 
this method recommends the first view group that belongs to the 'active model 
 
redo 
Performs a redo operation on this database object. 
 
 
 
Removes the specified reactor from this object's reactor list.
 
 
Removes the specified transaction reactor from this database object.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Sets the pen table (*.tbl) file.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Set the name of the file associated with this database object. 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Sets a new multi-threaded mode for the database.
param [in] A new value of multi-threaded mode to be set. 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Controls the state of the RetainOriginalThumbnailBitmap flag.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
This is the overview for the setThumbnail method overload. 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Starts a new transaction of this database object. 
 
Starts undo recording of this database object. 
 
OdGiDrawable overridden 
 
 
 
 
 
undo 
Performs an undo operation on this database object. 
 
 
 
 
 
This is the overview for the wblockCloneObjects method overload. 
 
This is the overview for the writeFile method overload. 
 
Writes the contents of this database object to the memory stream.
 
Copyright © 2002–2021. Open Design Alliance. All rights reserved.