admin 发表于 2018-1-3 15:50:30

如何读取Catia 设置文件!

CATSettingRepository是CAA中负责管理设置文件(*.CATSetting)的类,该文件一般储存于“C:\Users\UserName\AppData\Roaming\DassaultSystemes\CATSettings”文件夹下,每一个SettingRepository对应一个设置文件,通过名字获得。CATSettingRepository * pRepository = CATSettingRepository::GetRepository("Licensing");
char *settingAttrbuteName = new char[255];
char *settingAttrbuteClass = new char[255];
long oAttributeSize = 0;
if(NULL != pRepository)
{
while(pRepository ->NextAttribute(settingAttrbuteName,settingAttrbuteClass, &oAttributeSize) != -1)
{
cout << settingAttrbuteName << "\t" << settingAttrbuteClass << "\t" << oAttributeSize << endl;
}
}
delete[] settingAttrbuteClass;
delete[] settingAttrbuteName;
页: [1]
查看完整版本: 如何读取Catia 设置文件!