C++
virtual Acad::ErrorStatus ProfileImport( const ACHAR * strProfileName, const ACHAR * importFileName, const ACHAR * profileDescription, Adesk::Boolean bImportPathInfo ) = 0;
Description
A new profile is created with the specified name, strProfileName, and description, profileDescription. If the profile already exists, it will be overwritten (if it is not the current profile). The ACAD settings from the specified .arg file, importFileName, are read into the registry for the new profile. bImportPathInfo determines whether the path information in the file should be read in or ignored.
The function could return with the following return codes:
Acad::eInvalidProfileName | Invalid characters in the Profile name. |
Acad::eNoFileName | No file name specified. |
Acad::eInvalidFileExtension | The file should have an .arg extension. |
Acad::eProfileIsInUse | Cannot import into the current profile. |
Acad::eCantOpenFile | File permission error. |
Acad::eRegistryCreateError | Could not update registry. |
Acad::eRegistryAccessError | Could not access registry. |
Acad::eOk | Operation completed successfully. |
Parameters
Parameters | Description |
---|---|
strProfileName | Input profile name |
importFileName | Input .arg file name |
profileDescription | Input profile description |
bImportPathInfo | Input Boolean indicating whether path information should be read in or ignored |