DBObject Class

This class is the base class for all objects contained in a Database instance. An object can be opened in any one of the following modes:
Mode Description
OpenMode.ForRead Allows operations that do not modify this object. A database object can be opened in this mode any number of times (simultaneously), if it is not opened in ForWrite or ForNotify mode. An exception is thrown if any type of write operation is attempted on an object opened in this mode.
OpenMode.ForWrite Allows read and write operations to be performed on this object. The database object can be opened in this mode only if it is not already opened in any mode.
OpenMode.ForNotify A database object cannot be opened in this mode more than one time simultaneously, but it can be opened in ForNotify mode if it was already opened in ForRead or ForWrite modes, or it was closed before.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    Teigha.RuntimeDisposableWrapper
      Teigha.RuntimeRXObject
        Teigha.GraphicsInterfaceDrawable
          Teigha.DatabaseServicesDBObject
            More

Namespace: Teigha.DatabaseServices
Assembly: TD_Mgd (in TD_Mgd.dll) Version: 26.9.0.0
Syntax
public abstract class DBObject : Drawable

The DBObject type exposes the following members.

Constructors
  Name Description
Protected method DBObject Constructor for the DBObject class.
Top
Properties
  Name Description
Public property AcadObject  
Public property Annotative Property that represents annotative status of an object.
Public property AutoDelete Property that indicates whether the object should be automatically deleted by the Garbage Collector.
(Inherited from DisposableWrapper)
Public property Bounds This property represents bounds of the drawable, if available. This property is null if the drawable does not have bounds or the bounds cannot be computed.
(Inherited from Drawable)
Public property ClassID Property that represents class ID of an object.
Public property Database Property that represents database used by an object.
Public property Drawable Property that represents a drawable that is associated with this object.
Public property DrawableType This property represents type of the current drawable.
(Inherited from Drawable)
Public property ExtensionDictionary Property that represents Object ID of this object's extension dictionary. Value of this property is null ID if this object does not have an extension dictionary, or if its extension dictionary has been erased.
Public property Handle Property that represents the persistent handle of this database object.
Public property HasFields Property that indicates whether this object has fields.
Public property HasSaveVersionOverride Property that indicates whether this object has its bit set to override the filer version.
Public property Id Property that represents an object identifier of this database object.
(Overrides DrawableId)
Public property IsAProxy Property that indicates whether this object is a proxy object or entity.
Public property IsCancelling Property that indicates whether this object currently performs the Cancel() operation.
Public property IsDisposed Property that indicates whether pointer to native code unmanaged object == IntPtr::Zero.
(Inherited from DisposableWrapper)
Public property IsErased Property that indicates whether this object is marked as erased.
Public property IsEraseStatusToggled Property that indicates whether this object's erased status has been toggled since it was opened.
Public property IsModified Property that indicates whether this object's assertWriteEnabled() has been called since it was opened.
Public property IsModifiedGraphics Property that indicates whether an object derived from Entity has been modified (calls assertWriteEnabled() or calls recordGraphicsModified(true)).
Public property IsModifiedXData Property that indicates whether this object's assertWriteEnabled() and setXData() have been called since it was opened.
Public property IsNewObject Property that indicates whether this object has not been closed since it was created.
Public property IsNotifyEnabled Property that indicates whether this object is open for notifications.
Public property IsNotifying Property that indicates whether this object is sending notification.
Public property IsObjectIdsInFlux Property that indicates whether this object's Object ID is not valid because the DBObject.subDeepClone or DBObject.subWblockClone() have yet to be completed.
Public property IsPersistent Property that indicates whether this object is a database-resident (DBRO). Persistent objects belong to an object that must be opened and closed. Non-persistent objects can be accessed through their pointers.
(Overrides DrawableIsPersistent)
Public property IsReadEnabled Property that indicates whether this object is open in ForRead mode.
Public property IsReallyClosing Property that indicates whether call to close would completely close this object at this time. It is possible only if this object is open in ForRead mode with only one reader, and is not in a transaction.
Public property IsTransactionResident Property that indicates whether this object is currently part of transaction.
Public property IsUndoing Property that indicates whether this object is currently participating in Undo() operation.
Public property IsWriteEnabled Property that indicates whether this object is open in ForWrite mode.
Public property MergeStyle Property that represents a merge style that is used when merging duplicate records.
Public property ObjectBirthVersion Property that represents birth version of an object. The birth version is the version in which the class was introduced.
Public property ObjectId Property that represents an object identifier of this object.
Public property OwnerId Property that represents object identifier of this object's owner.
Public property PaperOrientation Property that represents paper orientation of an annotative object.
Public property UndoFiler Property that represents undo filer associated with this object. This property is typically used by custom classes using partial Undo to add Undo information to the filer that would be used by this object applyPartialUndo().
Public property UnmanagedObject Property that represents a pointer to an unmanaged object.
(Inherited from DisposableWrapper)
Public property XData Property that represents result buffer containing custom data associated with this object.
Top
Methods
  Name Description
Public method AddContext Adds a copy of a context to the object.
Public method AddPersistentReactor Adds the specified persistent reactor to this object's reactor list.
Public method ApplyPartialUndo Notification method that is called each time this object uses the partial undo mechanism.
Protected method AssertNotifyEnabled  
Protected method AssertReadEnabled  
Protected method AssertWriteEnabled  
Public method Audit Performs an audit operation on this object.
Public method Cancel Obsolete.
Terminates the current open operation. Currently not implemented.
Public method Clone Creates a *clone* of this object, and returns a pointer to the *clone*.
(Inherited from RXObject)
Public method Close Obsolete.
Closes the object. All changes made to the object since it was opened are committed to the database and a notification is sent that the object is now "closed". Currently not implemented.
Public method CloseAndPage Obsolete.
Closes the object and pages it if the object pager is enabled. All changes made to the object since it was opened are committed to the database and a notification is sent that the object is now "closed". Currently not implemented.
Public method CompareTo Allows classes to compare class objects.
(Inherited from RXObject)
Public method CopyFrom Copies the contents of the specified object into this object.
(Inherited from RXObject)
Public method CreateExtensionDictionary Creates a DbDictionary extension dictionary of this object.
Public method CreateObjRef
(Inherited from MarshalByRefObject)
Public method DecomposeForSave Determines the behavior for custom objects when saving to a .dwg file.
Public method DeepClone Performs a deep clone of this object.
Protected method DeleteUnmanagedObject
(Overrides RXObjectDeleteUnmanagedObject)
Public method DisableUndoRecording Controls the undo recording of this object in OdDbDatabase.
Public method Dispose
(Inherited from DisposableWrapper)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the DBObject and optionally releases the managed resources
(Overrides DisposableWrapperDispose(Boolean))
Public method DowngradeOpen Downgrades this object from ForWrite to ForRead.
Public method DowngradeToNotify Downgrades this object from ForNotify and ForWrite to having just one open mode - ForNotify. Currently not implemented.
Public method DwgIn Reads the .dwg file format data of this object from the specified file.
Protected method DwgInFields  
Public method DwgOut Writes the .dwg file format data of this object to the specified filer.
Protected method DwgOutFields  
Public method DxfIn Reads the .dxf file format data of this object from the specified file.
Protected method DxfInFields  
Public method DxfOut Writes the .dxf file format data of this object to the specified filer.
Protected method DxfOutFields  
Public method Equals Checks objects for equality.
(Inherited from DisposableWrapper)
Public method Erase Marks this object as "erased".
Public method Erase(Boolean) Sets the erased mode of this object.
Protected method Finalize
(Inherited from DisposableWrapper)
Public methodStatic member FromAcadObject Returns the ID of an ACAD database object.
Public method GetBinaryDataForKey Reads chunks of binary data from this object's extension dictionary.
Public method GetEventExtender  
Public method GetField Returns the object ID of a "TEXT" field object from the field dictionary.
Public method GetField(String) Returns the object ID of the specified field object (that matches the property name) from the field dictionary.
Public method GetHashCode Retrieves the object hash code.
(Inherited from DisposableWrapper)
Public method GetLifetimeService
(Inherited from MarshalByRefObject)
Public method GetMetaObject
(Inherited from RXObject)
Public method GetObjectSaveVersion(DwgFiler) Returns the drawing and maintenance release version into which this object must be stored.
Public method GetObjectSaveVersion(DxfFiler) Returns the drawing and maintenance release version into which this object must be stored.
Public method GetPersistentReactorIds Returns the object IDs of this object's persistent reactors.
Public method GetReactors Obsolete.
Returns this object's transient reactors.
Public method GetRXClass Gets a class describing instance dynamically associated with this object as the OdRxClass object.
(Inherited from RXObject)
Public method GetTransientReactors Returns this object's transient reactors.
Public method GetType
(Inherited from Object)
Public method GetXDataForApplication Returns a linked list of ResBufs containing a copy of the XData of this object.
Public method HandOverTo Replaces this database-resident (DBRO) object with the specified non-database-resident (NDBRO) object, while retaining this object's objectId, handle, owner, and reactor list.
Public method HasContext Checks whether the specified context exists in the collection.
Public method HasPersistentReactor Checks whether the passed identifier is an identifier of a reactor attached to this object.
Public method InitializeLifetimeService
(Inherited from MarshalByRefObject)
Public methodStatic member IsCustomObject Checks whether the passed ID relates to a custom object. Currently not implemented.
Protected method MemberwiseClone
(Inherited from Object)
Protected method MemberwiseClone(Boolean)
(Inherited from MarshalByRefObject)
Public method QueryX Checks whether the object belongs to the specified class and returns a pointer to this object if this object can be converted to the specified class.
(Inherited from RXObject)
Public method RegenSupportFlags Retrieves a set of flags that represents the multi-threaded rendering support of this entity. The default is to return the multi-threaded rendering advanced support flags of the entity's registered RxClass.
(Inherited from Drawable)
Public method ReleaseExtensionDictionary Releases and erases this object's extension dictionary if it exists and is empty.
Public method RemoveContext Removes a context from the collection. An active context can't be removed.
Public method RemoveField Removes the text field and returns its field ID.
Public method RemoveField(ObjectId) Removes the specified field.
Public method RemoveField(String) Removes the specified field by its name and returns its ID.
Public method RemovePersistentReactor Removes the specified persistent reactor from this object's reactor list.
Public method ResetScaleDependentProperties Resets object properties that depend on scale to the default values.
Public method SetAttributes Sets the vectorization attributes of this object, and returns its attribute flags.
(Inherited from Drawable)
Public method SetBinaryDataForKey Copies the binary data in the chunk array into this object's extension dictionary. The data is stored in chunks of 127 butes.
Public method SetField(Field) Sets the specified field for the "TEXT" property.
Public method SetField(String, Field) Sets the specified field for the specified property.
Public method SetFromStyle Sets the annotative property of an object according to its corresponding style, such as styles of text objects.
Public method SetObjectIdsInFlux Called on a newly created cloned object to indicate that its object ID is not valid.
Public method SetPaperOrientation Sets the paper orientation property of a specified object.
Protected method SubRegenSupportFlags
(Inherited from Drawable)
Protected method SubSetAttributes Sets the values of the instance's sub-entity traits.
(Overrides DrawableSubSetAttributes(DrawableTraits))
Protected method SubViewportDraw Draws a graphical object that is dependent on the viewport context.
(Overrides DrawableSubViewportDraw(ViewportDraw))
Protected method SubViewportDrawLogicalFlags
(Overrides DrawableSubViewportDrawLogicalFlags(ViewportDraw))
Protected method SubWorldDraw Draws a graphical object that is independent of any viewport context.
(Overrides DrawableSubWorldDraw(WorldDraw))
Public method SupportsCollection Checks whether a particular context type is supported by this object. This method shows whether an object supports a collection type but does not show whether this object participates in any contexts of that type.
Public method SwapIdWith Swaps the objectIDs, handles, extended data (XData), and extension dictionary between this object and another object.
Public method SwapReferences This method performs object ID reference translations similar to those done at the end of deep cloning. References between objects in the workset have their object identifiers translated to the swapped object identifiers of the referenced objects. In contrast to cloning, this translation must occur in both directions. Accordingly, it is possible to pass two different ID maps in two different calls to this method. Currently not implemented.
Public method ToString
(Inherited from Object)
Public method UpgradeFromNotify Upgrades the object from at least ForNotify mode to both ForNotify and ForWrite modes. You should place a call to DowngradeToNotify() with no Open() or Close() methods in between. For internal use. Currently not implemented.
Public method UpgradeOpen  
Public method ViewportDraw Creates a viewport-dependent geometric representation of this object.
(Inherited from Drawable)
Public method ViewportDrawLogicalFlags Retrieves the setAttributes flags for the current viewportDraw.
(Inherited from Drawable)
Public method WblockClone Performs a shallow clone of this object.
Public method WorldDraw Creates a viewport-independent geometric representation of this object.
(Inherited from Drawable)
Public method X Checks whether the object belongs to the specified class and returns a pointer to this object if this object can be converted to the specified class, or throws an exception if it cannot.
(Inherited from RXObject)
Public method XDataTransformBy Applies the 3D transformation matrix to the XData of this object.
Top
Events
  Name Description
Public event Cancelled  
Public event Copied Notification event called whenever the notifying object has had its clone() member function called.
Public event Erased Notification event called whenever an object has been erased or unerased.
Public event Goodbye Notification event called just before an object is deleted from memory.
Public event Modified Notification event called whenever an object is opened ForWrite, a function has been called that could modify the content of this object, and this object is now being closed.
Protected event ModifiedGraphics  
Public event ModifiedXData Notification event called whenever the XData has been written to the notifying object.
Public event ModifyUndone Notification event called whenever the notifying object is currently performing an undo operation that is undoing modifications.
Public event ObjectClosed Notification event called immediately before an object is closed.
Public event OpenedForModify Notification event called whenever an object is opened for modifying ForWrite.
Public event Reappended Notification event called whenever a redo process processes the reappending of the notifying object to the database.
Public event SubObjectModified  
Public event Unappended Notification event called whenever the undo process processes the appending of the notifying object to the database.
Top
Extension Methods
See Also
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    Teigha.RuntimeDisposableWrapper
      Teigha.RuntimeRXObject
        Teigha.GraphicsInterfaceDrawable
          Teigha.DatabaseServicesDBObject
            Bricscad.CivilCivilObjectBase
            Bricscad.ParametricFeature
            Teigha.Aec.DatabaseServicesDBObject
            Teigha.DatabaseServicesAssocAction
            Teigha.DatabaseServicesAssocDependency
            Teigha.DatabaseServicesAssocManager
            Teigha.DatabaseServicesBackground
            Teigha.DatabaseServicesBlockPropertiesTable
            Teigha.DatabaseServicesDataLink
            Teigha.DatabaseServicesDataTable
            Teigha.DatabaseServicesDBDictionary
            Teigha.DatabaseServicesDBVisualStyle
            Teigha.DatabaseServicesDimAssoc
            Teigha.DatabaseServicesDrawOrderTable
            Teigha.DatabaseServicesEntity
            Teigha.DatabaseServicesField
            Teigha.DatabaseServices.FiltersFilter
            Teigha.DatabaseServices.FiltersIndex
            Teigha.DatabaseServicesGeoLocationData
            Teigha.DatabaseServicesGroup
            Teigha.DatabaseServicesLinkedData
            Teigha.DatabaseServicesMaterial
            Teigha.DatabaseServicesMLeaderStyle
            Teigha.DatabaseServicesMlineStyle
            Teigha.DatabaseServicesPlaceHolder
            Teigha.DatabaseServicesPlotSettings
            Teigha.DatabaseServicesProxyObject
            Teigha.DatabaseServicesRasterImageDef
            Teigha.DatabaseServicesRasterVariables
            Teigha.DatabaseServicesRenderEnvironment
            Teigha.DatabaseServicesRenderGlobal
            Teigha.DatabaseServicesRenderSettings
            Teigha.DatabaseServicesSectionManager
            Teigha.DatabaseServicesSectionSettings
            Teigha.DatabaseServicesSun
            Teigha.DatabaseServicesSymbolTable
            Teigha.DatabaseServicesSymbolTableRecord
            Teigha.DatabaseServicesTableStyle
            Teigha.DatabaseServicesUnderlayDefinition
            Teigha.DatabaseServicesXrecord
            Teigha.Internal.DatabaseServicesEvalExpr
            Teigha.Internal.DatabaseServicesEvalGraph

©  Bricsys NV. All rights reserved.