Share

AcApProfileManager::ProfileCopy

C++

virtual Acad::ErrorStatus ProfileCopy(
    const ACHAR * newProfileName, 
    const ACHAR * oldProfileName, 
    const ACHAR * newProfileDesc
) = 0;

Description

A new profile is created with the new name and description. If the profile name already exists, it will be overwritten (if it's not the current profile). The ACAD settings from the old profile are copied into the new profile.

The function could return with the following return codes:

Acad::eProfileDoesNotExist The old profile name is not found in the registry.
Acad::eInvalidProfileName Invalid characters in the new profile name.
Acad::eProfileIsInUse Cannot copy into current profile.
Acad::eRegistryAccessError Could not access registry.
Acad::eOk Operation completed successfully.

Parameters

Parameters Description
newProfileName Input new profile name
oldProfileName Input profile name to be copied
newProfileDesc Input new profile description

Links

AcApProfileManager

Was this information helpful?