C++
HRESULT AXAUTOEXP AcAxCopy( AcAxObjectRef& objRef, LPDISPATCH pAppDisp, LPDISPATCH* pCopyObj, AcDbObjectId ownerId = AcDbObjectId::kNull );
File
axboiler.h
Description
Creates a copy of the object using the object identified by objRef as the source object.
Otherwise, this function is identical to the overload that takes an object ID parameter.
Parameters
| Parameters | Description |
|---|---|
| objRef | Input object reference of object to copy |
| pAppDisp | IDispatch of the Application object being used |
| pCopyObj | Pointer to IDispatch that will be populated with the IDispatch* representing the new object created and appended to the database |
| ownerId | Optional block table record to which to append the new object |