几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】macro that loop trough assembly and sub-assembly and parts (http://www.dimcax.com/hust/showthread.php?t=5505)

yang686526 2009-04-13 12:38 PM

【转帖】macro that loop trough assembly and sub-assembly and parts
 
macro that loop trough assembly and sub-assembly and parts
hi,
did someone have done a macro that loop trough assembly and sub-assembly and parts, from a drawing, to find some feature (ex.: i would like to know all the parts name in a drawing?) if so, could post your macro here or help me how to do that !
thanks again!
steph
edited: 05/05/2008 at 08:27 am by stephane demers
look up "traversing assembly at component and feature levels example (vb)
" in api help.
-mb
it works for an assembly but when you are in a drawing how do you do that ?
how do you activate your assembly ?
steph
stephane
have you tried getdependencies? it returns all the parts in a drawing but doesn't loop through the tree.
dan miel
quick


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