几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】bounding box each parts (http://www.dimcax.com/hust/showthread.php?t=4653)

yang686526 2009-04-12 08:20 PM

【转帖】bounding box each parts
 
bounding box each parts
hi....
i found great macro that will calculate bounding box size of a part from here :
hey ahmad,
what you can do is iterate through all the components of the assembly, check that they are parts and then get their bounding box and save it to the custom properties.
have a look for previous forum posts if you have issues with custom properties. i am sure you'll find a few.
also have a look in the api examples.
cheers,
--stav.
in this world i am nobody...
and nobody is perfect ;) !!!
---------
solidworks office 2008 sp4.0
dell precision pws390
nvidia quadro fx 3450/4000 sdi
edited: 11/17/2008 at 04:38 am by stavros antoniou
quick


所有的时间均为北京时间。 现在的时间是 02:20 AM.