Deletes a feature class definition from the feature-definition file attached to the current drawing.
AcMapObjClass::EErrCode DeleteFeatureClassDefinition( const ACHAR* pszClassName );
Parameters |
Description |
pszClassName |
Input name of the feature class to delete. |
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 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.
Entities classified with the deleted feature class are not updated; instead, they retain their classification but become undefined.