Skip to content

Commit

Permalink
Arch: IFC, print code formating in the regard of Py3
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach authored and wwmayer committed Jan 4, 2019
1 parent 64fa8cb commit 8a3fd0c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Mod/Arch/importIFC.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ def insert(filename,docname,skip=[],only=[],root=None):
if e.NominalValue.Unit:
pvalue += e.NominalValue.Unit
d[pname] = psetname+";;"+ptype+";;"+pvalue
#print ("adding property: ",pname,ptype,pvalue," pset ",psetname)
#print("adding property: ",pname,ptype,pvalue," pset ",psetname)
obj.IfcProperties = d

elif hasattr(obj,"IfcAttributes"):
Expand Down Expand Up @@ -1190,7 +1190,7 @@ def insert(filename,docname,skip=[],only=[],root=None):
count = 0

scaling = getScaling(ifcfile)
#print "scaling factor =",scaling
#print("scaling factor =",scaling)
for annotation in annotations:

anno = None
Expand Down Expand Up @@ -1280,8 +1280,8 @@ def insert(filename,docname,skip=[],only=[],root=None):
# Materials

if DEBUG and materials: print("Creating materials...",end="")
#print "mattable:",mattable
#print "materials:",materials
#print("mattable:",mattable)
#print("materials:",materials)
fcmats = {}
for material in materials:
name = "Material"
Expand Down Expand Up @@ -2290,7 +2290,7 @@ def export(exportList,filename):
for g in sortedgroups:
if g[0] in groups.keys():
del groups[g[0]]
#print "sorted groups:",sortedgroups
#print("sorted groups:",sortedgroups)
containers = {}
for g in sortedgroups:
if g[1]:
Expand Down Expand Up @@ -2677,7 +2677,7 @@ def getRepresentation(ifcfile,context,obj,forcebrep=False,subtraction=False,tess
profiledefs[pstr] = profile
if profile and not(DraftVecUtils.isNull(evi)):
#ev = pl.Rotation.inverted().multVec(evi)
#print "evi:",evi
#print("evi:",evi)
if not tostore:
# add the object placement to the profile placement. Otherwise it'll be done later at map insert
pl2 = FreeCAD.Placement(obj.Placement)
Expand Down Expand Up @@ -2775,7 +2775,7 @@ def getRepresentation(ifcfile,context,obj,forcebrep=False,subtraction=False,tess
dataset = fcshape.Solids
else:
dataset = fcshape.Shells
#if DEBUG: print "Warning! object contains no solids"
#if DEBUG: print("Warning! object contains no solids")

# if this is a clone, place back the shapes in null position
if tostore:
Expand Down Expand Up @@ -2853,7 +2853,7 @@ def getRepresentation(ifcfile,context,obj,forcebrep=False,subtraction=False,tess
bound = ifcfile.createIfcFaceBound(loop,True)
loops.append(bound)
else:
print ("Warning: wire with one/no vertex in ",obj.Label)
print("Warning: wire with one/no vertex in ", obj.Label)
face = ifcfile.createIfcFace(loops)
faces.append(face)

Expand Down

0 comments on commit 8a3fd0c

Please sign in to comment.