Arch: Fixed IFC import of Rebars

This commit is contained in:
Yorik van Havre
2022-04-05 16:06:22 +02:00
parent 48deb6ae3e
commit 651f6d871f
2 changed files with 9 additions and 7 deletions

View File

@@ -708,6 +708,10 @@ def insert(srcfile, docname, skip=[], only=[], root=None, preferences=None):
obj.Height = 0
obj.Width = 0
obj.Length = 0
if (freecadtype in ["Rebar"]) and baseobj:
# TODO rebars don't keep link to their baee object - we can remove it
bn = baseobj.Name
doc.removeObject(bn)
if store:
sharedobjects[store] = obj