查看单个帖子
旧 2009-04-13, 09:22 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)