Retrieves an existing feature class definition.
AcMapObjClass::EErrCode GetFeatureClassDefinition( AcMapObjClassDefinition*& pFeatureClassDef, const ACHAR* pszName );
Parameters |
Description |
pFeatureClassDef |
Output AcMapObjClassDefinitionfeature class definition. The caller must free this object. |
pszName |
Input name of the feature class definition to retrieve. |
Returns AcMapObjClass::EErrCode eOk if successful. Returns AcMapObjClass::EErrCode eClassNameInvalid if the class name is invalid. Returns AcMapObjClass::EErrCode eClassNameTooLong if the class name is too long. Returns AcMapObjClass::EErrCode eNoSchemaFileAttached if no feature-definition file is attached to the current drawing. Returns AcMapObjClass::EErrCode eClassNotFound if the feature class is not in the feature-definition file. Returns AcMapObjClass::EErrCode eNoUserPrivilegeToAlterSchema if the current user lacks the privileges to change the feature-definition file. Returns AcMapObjClass::EErrCode eFailed if the process failed for some other reason.