Arch: import IFC, add guid to non parametric arch import

This commit is contained in:
Bernd Hahnebach
2019-10-28 18:04:48 +01:00
committed by GitHub
parent e243c6e943
commit d6fc794aca

View File

@@ -676,6 +676,8 @@ def insert(filename,docname,skip=[],only=[],root=None,preferences=None):
else:
if preferences['DEBUG']: print(": skipped.")
continue
if obj and hasattr(obj, "GlobalId"):
obj.GlobalId = guid
elif (preferences['MERGE_MODE_ARCH'] == 2 and archobj) or (preferences['MERGE_MODE_STRUCT'] == 1 and not archobj):