Arch: IFC, import, add missing debug print new lines and skip information for 2D objects
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user