怎样用一个循环语句来控制建层
各位大师:<BR> 大家好。<BR>我想用一个循环语句来控制建一些预定的层。不知怎样写。请指教。<BR>void createNewLayer()<BR>{<BR> int i, j;<BR> AcDbLayerTable *pLayerTable;<BR> acdbHostApplicationServices()->workingDatabase()<BR> ->getSymbolTable(pLayerTable, AcDb::kForWrite);<BR> for(i=0;i<21;i++)<BR> { <BR> AcDbLayerTableRecord *pLayerTableRecord =<BR> new AcDbLayerTableRecord;<BR> }<BR> pLayerTableRecord->setName("Axis");<BR> pLayerTableRecord->setName('wall");<BR> ................<BR> for(i=0;i<=21;i++)<BR> {<BR> pLayerTable->add(pLayerTableRecord);<BR> pLayerTable->close();<BR> pLayerTableRecord->close();<BR> }<BR>}<BR>这样用不了。。初学ARX。谢谢.
页:
[1]