Skip to content

Commit

Permalink
Arch: import IFC helper, small code formating
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Aug 28, 2019
1 parent 03fc637 commit 2f89dec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Arch/importIFCHelper.py
Expand Up @@ -362,7 +362,7 @@ def getUnit(unit):
for u in ua.Units:
if u.UnitType == "LENGTHUNIT":
if u.is_a("IfcConversionBasedUnit"):
f = getUnit(u.ConversionFactor.UnitComponent)
f = getUnit(u.ConversionFactor.UnitComponent)
return f * u.ConversionFactor.ValueComponent.wrappedValue
elif u.is_a("IfcSIUnit") or u.is_a("IfcUnit"):
return getUnit(u)
Expand Down Expand Up @@ -425,7 +425,7 @@ def getVector(entity,scaling=1000):
v = None
if entity.is_a("IfcDirection"):
if len(entity.DirectionRatios) == 3:
v= FreeCAD.Vector(tuple(entity.DirectionRatios))
v = FreeCAD.Vector(tuple(entity.DirectionRatios))
else:
v = FreeCAD.Vector(tuple(entity.DirectionRatios+[0]))
elif entity.is_a("IfcCartesianPoint"):
Expand Down

0 comments on commit 2f89dec

Please sign in to comment.