Skip to content

Commit

Permalink
Arch: import IFC helper, white spaces and new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Aug 21, 2019
1 parent e634209 commit 017caac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mod/Arch/importIFCHelper.py
Expand Up @@ -7,7 +7,7 @@

class ProjectImporter:
"""A helper class to create a FreeCAD Arch Project object"""

def __init__(self, file, objects):
self.file = file
self.objects = objects
Expand All @@ -27,7 +27,7 @@ def setAttributes(self):
def setComplexAttributes(self):
try:
mapConversion = self.project.RepresentationContexts[0].HasCoordinateOperation[0]

data = self.extractTargetCRSData(mapConversion.TargetCRS)
data.update(self.extractMapConversionData(mapConversion))
ArchIFC.IfcRoot.setObjIfcComplexAttributeValue(self, self.object, "RepresentationContexts", data)
Expand Down Expand Up @@ -251,6 +251,7 @@ def getUnit(unit):
return getUnit(u)
return 1.0


def getRotation(entity):
"""returns a FreeCAD rotation from an IfcProduct with a IfcMappedItem representation"""
try:
Expand Down Expand Up @@ -320,7 +321,6 @@ def getVector(entity,scaling=1000):
return v



def get2DShape(representation,scaling=1000):
"""Returns a shape from a 2D IfcShapeRepresentation"""

Expand Down

0 comments on commit 017caac

Please sign in to comment.