AcMapObjClassDefinition::SetCreateMethod Method

Land Desktop Development ARX CPP SDK

AcMapObjClassDefinition:: SetCreateMethod Method
 

Sets the AutoCAD entity type that this feature class definition uses when a digitize process runs for this class.

AcMapObjClass::EErrCode SetCreateMethod(
    const AcRxClass* prxEntityType, 
    const ACHAR* pszBlockName
);
Parameters 
Description 
prxEntityType 
Input entity type.  
pszBlockName 
Input block name.  
Returns

Returns AcMapObjClass::EErrCode eOk if successful. Returns AcMapObjClass::EErrCode eClassNotFromCurrentSchema if the class is not from the current feature-definition file. Returns AcMapObjClass::EErrCode eInvalidType if the entity type is invalid. This error code also is returned if pszBlockName is empty or NULL, even if pszEntityType is AcDbBlockReference::desc(); a name is required to define a valid block create method. Returns AcMapObjClass::EErrCode eClassUnsupportedCreateType if the feature class definition does not support the create method. Returns AcMapObjClass::EErrCode eProductUnsupportedCreateType if the product does not support the create method. Returns AcMapObjClass::EErrCode eFailed if the process failed for some other reason.

Remarks

The entity type typically matches the value that AcRxObject::desc() returns. Invalid types generate an error. The entity types that the digitize process supports are only a subset of the valid entity types, so a type that the feature class definition supports can still be invalid. If a feature class definition uses a specific block reference name as a create method, set pszBlockName to the name and set prxEntityType to NULL.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].