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

yang686526 2009-04-12 07:29 PM

【转帖】root assembly name
 
root assembly name
how do you get the root assembly name from a component?
i have an assembly with a sub assembly and a part. i can use the getparent.name2 method on a part in the sub-assembly and i can get the sub-assembly's name but how do i get the root assembly's name from the part in the root assembly?
thanks
remove path and extension from model.getpathname
thanks ivana
quick


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