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

yang686526 2009-04-13 09:22 AM

【转帖】bug in component2ishidden
 
bug in component2::ishidden
ok there is a big bug in the ishidden function.
calling assemblydoc::getcomponents and looping through all components of an assembly and calling ishidden(true or false) on each component returns invalid data.
say you have an assembly with sub-assemblies within them and you hide a sub-assembly and all of its components, the ishidden will return false (visible) for all components within that sub-assembly, and true (hidden) for the sub-assembly itself.
if you take that one step further and have a sub-assembly inside a sub-assembly and the top-level sub-assembly is hidden, only that sub-assembly reports hidden, all over components including the sub-assembly within it report as visible!
can anyone else check and confirm this behavious please.


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