几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】iterating through sub-assemblies (http://www.dimcax.com/hust/showthread.php?t=4791)

yang686526 2009-04-12 09:32 PM

【转帖】iterating through sub-assemblies
 
iterating through sub-assemblies
i want to write a vba macro that will delete an undetermined number of sub-assemblies from an assembly.
what is the best way to iterate through the instances of the sub-assemblies and delete them?
lookup traversing through model in api file. then just check the component type to see if it is an assembly, then delete if whatever conditions you require are met.


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