Arch: IFC, import, add missing debug print new lines and skip information for 2D objects

This commit is contained in:
Bernd Hahnebach
2023-02-22 15:25:27 +01:00
committed by GitHub
parent 8215af8906
commit 92df8f4440

View File

@@ -1122,8 +1122,10 @@ def insert(srcfile, docname, skip=[], only=[], root=None, preferences=None):
if preferences['DEBUG']: print(count,"/",len(annotations),"object #"+str(aid),":",annotation.is_a(),end="")
if aid in skip:
if preferences['DEBUG']: print(", skipped.")
continue # user given id skip list
if annotation.is_a() in preferences['SKIP']:
if preferences['DEBUG']: print(", skipped.")
continue # preferences-set type skip list
anno = importIFCHelper.createAnnotation(annotation,doc,ifcscale,preferences)
@@ -1138,6 +1140,8 @@ def insert(srcfile, docname, skip=[], only=[], root=None, preferences=None):
if (aid in children) and (host in objects.keys()):
Arch.addComponents(anno,objects[host])
if preferences['DEBUG']: print("") # add newline for 2D objects debug prints
doc.recompute()
# Materials