Share

AcDbObjectPointer

Class Hierarchy

AcDbObjectPointer

C++

template <class T_OBJECT>
class AcDbObjectPointer : public AcDbObjectPointerBase<T_OBJECT>;

File

dbobjptr.h

Description

This class allows you to access any AcDbObject-based object given its object ID.

The following pre-defined typedefs are available:

  • AcDbDictionaryPointer
  • AcDbEntityPointer

These classes are designed to be type-safe replacements for explicitly using acdbOpenObject(), acdbOpenAcDbObject(), and acdbOpenAcDbEntity(). Using these classes incurs opening and closing objects, which, under certain circumstances, may be better managed using transactions.

Links

AcDbObjectPointer Constructor, AcDbObjectPointer Methods, AcDbObjectPointer Operators