![]() |
【转帖】calculating drawing extensions
calculating drawing extensions
calculating drawing extensions hi all, i am new to opendesign and found no information about a possibility to calculate the (current) geometrical extensions of a drawing. i am creating a app which (in few words) creates a new drawing, add's a sat-file, add's some 3d solids, ....... and writes this dwg out. so far everything is working perfect (great api !!) but for the placement of some of my 3d solids i need to know the drawing extensions (so far). because i am adding a sat-file, there is no chance to calculate this by myself (without using the acis api). is there a api command for doing this ? (i found 'void oddbdatabase::updateext()' but i found no documentation ....) best regards rednoon hi all, no need to help ! i found a solution: ....... ....... odgeextents3d &allsolidsextents; /** <--- **/ pcreator->createmodeler(out, &satfile); for (unsigned int i=0; i<out.size(); ++i) { odgeextents3d onesolidextents; /** <--- **/ oddb3dsolidptr p3dsolid = oddb3dsolid::createobject(); p3dsolid->setmodelergeometry(out[i]); ....... oddbobjectid id = pblock->appendoddbentity(p3dsolid); ....... p3dsolid->getgeomextents(onesolidextents); /** <--- **/ allsolidsextents.addext(onesolidextents); /** <--- **/ } ....... ....... best regards rednoon quote: originally posted by rednoon hi all, i am new to opendesign and found no information about a possibility to calculate the (current) geometrical extensions of a drawing. i am creating a app which (in few words) creates a new drawing, add's a sat-file, add's some 3d solids, ....... and writes this dwg out. so far everything is working perfect (great api !!) but for the placement of some of my 3d solids i need to know the drawing extensions (so far). because i am adding a sat-file, there is no chance to calculate this by myself (without using the acis api). is there a api command for doing this ? (i found 'void oddbdatabase::updateext()' but i found no documentation ....) best regards rednoon |
所有的时间均为北京时间。 现在的时间是 04:08 AM. |