|
发表于 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(); |
|