几何尺寸与公差论坛------致力于产品几何量公差标准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 to check to see if part is mirrored (http://www.dimcax.com/hust/showthread.php?t=4753)

yang686526 2009-04-12 09:14 PM

【转帖】how to check to see if part is mirrored
 
how to check to see if part is mirrored
hi,
i wrote a program in vb6 and it checks to see if the part is mirrored or not, but it crashes in older version of sw than 2008 because i used the ismirrored function to check if the part is mirrored or not. and that function was only made available in 2008.
is there another way to check if the part is mirrored ?
i tried looping through all the features of the part but when it comes to the mirrored part it does not list a mirrored feature. so i am kinda stuck.
any help thanks.
solidworks 2006,2007,2008,2009 (office premium.)
core 2 duo e6850 @ 3.00 mhz
window xp pro sp3 32 bit
ati firegl v7350
always a way !!
if swmirrorfeature.gettypename = "mirrorstock" then
retval = true
else
retval = false
end if
solidworks 2006,2007,2008,2009 (office premium.)
core 2 duo e6850 @ 3.00 mhz
window xp pro sp3 32 bit
ati firegl v7350
i had a similar problem and i used this answer and it helped me.
thanks ben.
adar
i'm glad it helped.
solidworks 2006,2007,2008,2009 (office premium.)
core 2 duo e6850 @ 3.00 mhz
window xp pro sp3 32 bit
ati firegl v7350
quick


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