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

yang686526 2009-04-12 10:55 PM

【转帖】a mistake with swchildcomp.ispatterninstance
 
a mistake with swchildcomp.ispatterninstance ?
hi!
i want to comment with you a problem that i have. i have an assembly with some components (parts and assemblies). i have copied an assembly by lineal matrix. i have the next code:
vchildcomp = swcomp.getchildren
for j = 0 to ubound(vchildcomp)
set swchildcomp = vchildcomp(j)
b = swchildcomp.ispatterninstance
when in swchildcomp is the assembly that i have created by lineal matrix b=true. but when in swchildcomp is a part that is in the assembly that i have created by lineal matrix b=false.
how is it possible?
thank you!
quick


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