几何尺寸与公差论坛

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

【转帖】document manager - body coun

[复制链接]
发表于 2009-4-13 10:28:38 | 显示全部楼层 |阅读模式
document manager - body count
hi everybody
as part of a macro to analyse and report different performance related parameters i want to count the number of bodies in a part. i would like to use document manager to avoid loading the models in sw. i found the function swdmconfiguration::getbodiescount but it only works for models created in sw2003 and lower (yes lower - not higher!).
i can't find any function which will work for newer files. am i missing something here or is it not possible? if not i will have to open the files in sw.
jorn bjarning
cswp
cad & plm consultant
sw2008 sp5 / sw2009 sp2
jorn,
nope you are correct; this function only works for files in 2003 or lower format. don't ask me why they have carried on implementing it without creating a function that can actually count bodies for formats since 2003!
i cannot see any functions in the entire dm for getting body counts other than this one.
luke,
thanks for looking into the subject. i resigned and created a solution where i open the files in sw. a process that will take many times longer than it would have with dm. i am analysing large assemblies with many parts.
jorn bjarning
cswp
cad & plm consultant
sw2008 sp5 / sw2009 sp2
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-24 02:26 , Processed in 0.035837 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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