- 积分
- 1694
- 明经币
- 个
- 注册时间
- 2002-4-21
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2002-6-9 22:42:00
|
显示全部楼层
程序见内
AcDbLinetypeTable *pLinetypeTable;
AcDbObjectId Id;
acdbHostApplicationServices()->workingDatabase()
->getSymbolTable(pLinetypeTable, AcDb::kForRead);
if(pLinetypeTable->getAt("DASHED",Id)!=Acad::eOk){
pLinetypeTable->close();
acdbHostApplicationServices()->workingDatabase()
->loadLineTypeFile("DASHED","acadiso.lin");
}else{
acutPrintf("\nDASHED线型已装入");
}
if(pLinetypeTable->getAt("DASHDOT",Id)!=Acad::eOk){
acdbHostApplicationServices()->workingDatabase()
->loadLineTypeFile("DASHDOT","acadiso.lin");
}else{
acutPrintf("\nDASHDOT线型已装入");
}
if(pLinetypeTable->getAt("DIVIDE",Id)!=Acad::eOk){
acdbHostApplicationServices()->workingDatabase()
->loadLineTypeFile("DIVIDE","acadiso.lin");
}else{
acutPrintf("\nDIVIDE线型已装入");
}
pLinetypeTable->close(); |
|