{C++ 基础} {C++ 高级} {C#界面,C++核心算法} {设计模式} {C#基础}
posted on 2006-02-08 14:08 梦在天涯 阅读(2249) 评论(1) 编辑 收藏 引用 所属分类: ARX/DBX
Finding the Active Viewports in Model Space // Set some viewport information. AcDbViewportTable* pViewportTable; if (db.getViewportTable(pViewportTable, AcDb::kForRead) == Acad::eOk) { // Find the first viewport and open it for write. AcDbViewportTableRecord *pRecord; if (pViewportTable->getAt( "*ACTIVE", pRecord, AcDb::kForWrite) == Acad::eOk) { pRecord->setCenterPoint(AcGePoint2d(0.5, 0.5)); pRecord->setHeight(1.0); pRecord->setWidth(1.0); pRecord->close(); } pViewportTable->close(); } 回复 更多评论