CFx SDK Documentation 2024 SP0
|
#include <DbDynBlockReference.h>
Public Member Functions | |
OdDbDynBlockReference (const OdDbObjectId &blockRefId) | |
OdDbDynBlockReference (OdDbBlockReference *pRef) | |
virtual | ~OdDbDynBlockReference () |
bool | isDynamicBlock () const |
OdDbObjectId | blockId () const |
void | getBlockProperties (OdDbDynBlockReferencePropertyArray &properties) const |
void | resetBlock () |
bool | convertToStaticBlock () |
bool | convertToStaticBlock (const OdString &newBlockName) |
OdDbObjectId | dynamicBlockTableRecord () const |
OdDbObjectId | anonymousBlockTableRecord () const |
OdDbBlockRepresentationContext * | getRepresentationContext () const |
Static Public Member Functions | |
static bool | isDynamicBlock (const OdDbObjectId &blockTableRecordId) |
Friends | |
class | BomUtil |
class | OdDbDynBlockTableRecord |
This class is a utility class providing access to information on dynamic block references. Corresponding C++ library: TD_DynBlocks <group OdDb_Classes>
Definition at line 182 of file DbDynBlockReference.h.
OdDbDynBlockReference::OdDbDynBlockReference | ( | const OdDbObjectId & | blockRefId | ) |
blockRefId | [in] Object ID of the dynamic block reference. |
OdDbDynBlockReference::OdDbDynBlockReference | ( | OdDbBlockReference * | pRef | ) |
pRef | [in] Pointer to the dynamic block reference. |
|
virtual |
OdDbObjectId OdDbDynBlockReference::anonymousBlockTableRecord | ( | ) | const |
Returns the ObjectID of the anonymous representation block BlockTableRecord used to draw the dynamic block.
OdDbObjectId OdDbDynBlockReference::blockId | ( | ) | const |
Returns the Object ID of the block reference.
bool OdDbDynBlockReference::convertToStaticBlock | ( | ) |
Converts the dynamic block reference to a static block.
newBlockName | [in] New block name. |
bool OdDbDynBlockReference::convertToStaticBlock | ( | const OdString & | newBlockName | ) |
OdDbObjectId OdDbDynBlockReference::dynamicBlockTableRecord | ( | ) | const |
Returns the Object ID of the dynamic block BlockTableRecord.
void OdDbDynBlockReference::getBlockProperties | ( | OdDbDynBlockReferencePropertyArray & | properties | ) | const |
Returns an array of the dynamic block properties of the block reference.
properties | [out] Receives an array of properties. |
OdDbBlockRepresentationContext * OdDbDynBlockReference::getRepresentationContext | ( | ) | const |
bool OdDbDynBlockReference::isDynamicBlock | ( | ) | const |
Returns true if and only if the specified Block Table Record contains dynamic block information.
|
static |
Returns true if and only if the specified Block Table Record contains dynamic block information.
blockTableRecordId | [in] Block Table Record Object ID. |
void OdDbDynBlockReference::resetBlock | ( | ) |
Resets all properties in the block reference to those of the block definition.
|
friend |
Definition at line 187 of file DbDynBlockReference.h.
|
friend |
Definition at line 274 of file DbDynBlockReference.h.