![]() |
【转帖】modelspace entities only
modelspace entities only
modelspace entities only i got my stuff churning through entities and displaying them just dandy. then it occurs to me i only want to display entities in modelspace only. ???? how do i search the database for modelspace entities only? never mind i figured it out after some sleep... modelspace is the block "*model_space". another way to get the modelspace ist the function odªdbªdatabase::ªgetªmodelªspaceªid (). when you like to display modelspace only, do something like that: oddbdictionaryptr playoutdict = pdb->getlayoutdictionaryid().safeopenobject(); oddbdictionaryiteratorptr piter = playoutdict->newiterator(); bool bmodelspace = false; while (!piter->done() || bmodelspace == true) { oddblayoutptr playout = piter->objectid().safeopenobject(); if (playout->getblocktablerecordid() == pdb->getmodelspaceid()) { pdb->setcurrentlayout(playout->id()); bmodelspace = false; } piter->next(); } sleep well mathias |
所有的时间均为北京时间。 现在的时间是 03:16 AM. |