|
- void changeDispRes()
- {
- AcDbDatabase *pDb = acdbHostApplicationServices()->workingDatabase();
- acutPrintf(采用T("\n current SPLINESEGS value %d"),pDb->splinesegs());
- acutPrintf(采用T("\n current FACETRES value %d"),pDb->facetres());
- acutPrintf(采用T("\n current ISOLINES value %d"),pDb->isolines());
- pDb->setSplinesegs(8);pDb->setFacetres(0.75);pDb->setIsolines(6);
- AcDbObjectId curVportId = AcDbObjectId::kNull;
- curVportId = acedActiveViewportId();
- AcDbObjectPointer<AcDbViewportTableRecord> curVTR (curVportId,AcDb::kForWrite);
- if(curVTR.openStatus() == Acad::eOk)
- {
- acutPrintf(采用T("\n current VIEWRES value %d"),curVTR->circleSides());
- curVTR->setCircleSides(100);
- }
- }
复制代码 |
|