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

yang686526 2009-04-13 10:28 AM

【转帖】document manager - body coun
 
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


所有的时间均为北京时间。 现在的时间是 07:38 PM.