AcMapClassificationManager::DuplicateFeatureClassDefinition Method

Land Desktop Development ARX CPP SDK

AcMapClassificationManager:: DuplicateFeatureClassDefinition Method
 

Creates a copy of an existing feature class definition.

AcMapObjClass::EErrCode DuplicateFeatureClassDefinition(
    AcMapObjClassDefinition*& pFeatureClassDefCopied, 
    const ACHAR* pszName, 
    const ACHAR* pszCopyName
);
Parameters 
Description 
pFeatureClassDefCopied 
Output new AcMapObjClassDefinitionfeature class definition. The caller must free this object.  
pszName 
Input name of the feature class definition to copy.  
pszCopyName 
Input name of the new feature class definition.  
Returns

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 eClassAlreadyExists if a class with same name already exists. 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.

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].