Sets the name of this feature class definition.
AcMapObjClass::EErrCode SetName( const ACHAR* pszName );
Parameters |
Description |
pszName |
Input class name. |
Returns AcMapObjClass::EErrCode eOk if successful. Returns AcMapObjClass::EErrCode eClassNotFound if the class is not in the feature-definition file. Returns AcMapObjClass::EErrCode eClassAlreadyExists if a class with the same name already exists. Returns AcMapObjClass::EErrCode eClassNameInvalid if the class name contains invalid characters. Returns AcMapObjClass::EErrCode eClassNameTooLong if the class name contains more than 255 characters. Returns AcMapObjClass::EErrCode eClassNotFromCurrentSchema if the class is not from the current feature-definition file. Returns AcMapObjClass::EErrCode eFailed if the process failed for some other reason.
If you change the name of an existing feature class definition, entities so classified are not updated; instead, they become undefined.