几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】how know if a component is a part or an assembly (http://www.dimcax.com/hust/showthread.php?t=4746)

yang686526 2009-04-12 09:11 PM

【转帖】how know if a component is a part or an assembly
 
how know if a component is a part or an assembly
hi!
i have an assembly and i want to edit all the components but before doing it i have to know if the component is a part o an assembly to put swmodel.editpart or editassembly.
can anybody help me?
thanks!
if you have a component2 then you can use component2::getmodeldoc and then modeldoc2::gettype.
i'll get you eh steve, if it's the last thing i dooooo!
thanks, josh!
quick


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