几何尺寸与公差论坛

 找回密码
 注册
查看: 584|回复: 0

【转帖】how to find qantity in assm

[复制链接]
发表于 2009-4-13 11:57:17 | 显示全部楼层 |阅读模式
how to find qantity # in assm
using modeldoc2.getdependencies2 returns an array of the parts used in an assembly. is there a command that will return the number of each part used in the assembly? such as if i know part x is used, is there a code to return the number of parts without traversing through the feature tree and counting the number of instances?
dan miel
2008 sp4
dan,
as far as i know, the only way to do it is to traverse the tree and count... it's not fun but it works. i did something like that. i populated a datagridview with different properties and the quantities from a given assembly. sounds like 2009 has a feature to display a bom in the assembly. maybe there is a new api that we can explore at release time...
tony szuta
cswa, cswp, cswp-smtl
tony is correct you will have to traverse but it is a very efficient process so i wouldn't worry about it
answer i suspected that was the case.
thanks for your anwers.
dan
edited: 09/04/2008 at 02:35 pm by dan miel
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 18:32 , Processed in 0.033632 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表