|
- void LoadLinetype( const ACHAR *linetypeName, const ACHAR *filename )
- {
- AcDbLinetypeTable *pLinetypeTbl;
- AcDbObjectId LineId;
- acdbCurDwg()->getLinetypeTable( pLinetypeTbl, AcDb::kForRead );
- if ( (pLinetypeTbl->getAt( linetypeName, LineId )) != Acad::eOk );
- {
- pLinetypeTbl->close();
- acutPrintf( 采用T("\n %s"), filename);
- if ( (acdbCurDwg()->loadLineTypeFile( linetypeName, filename )) == Acad::eOk )
- acutPrintf( 采用T("\nLinetype [%s] loaded. "), linetypeName );
- }
- }
复制代码 |
|