几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】calculating drawing extensions (http://www.dimcax.com/hust/showthread.php?t=15320)

yang686526 2009-05-04 05:17 PM

【转帖】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.