IfcOpenShellScriptingTutorial icon indicating copy to clipboard operation
IfcOpenShellScriptingTutorial copied to clipboard

toggle_visibility & set_color returning error message

Open parhasard opened this issue 4 years ago • 0 comments

Hi

I get this error message when I try to toggle visibility of items in the IFC file:

Traceback (most recent call last): File "", line 22, in File "ifcopenshell\geom\app.py", line 515, in toggle_visibility File "ifcopenshell\geom\app.py", line 505, in toggle File "ifcopenshell\geom\app.py", line 511, in visibility File "OCC\Core\AIS.py", line 5230, in Erase TypeError: in method 'AIS_InteractiveContext_Erase', argument 2 of type 'opencascade::handle< AIS_InteractiveObject > const &'

Additionally, 'viewer' object seems to be missing some attributes like 'set_color', get_selection_set'. ("highlight all selected products" in the snippets as an example)

Best Regards Hazar

parhasard avatar Jan 29 '21 15:01 parhasard