From 590c7fd9d3073eda1dc16e79c6571bdd46b5c7b2 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 23 Jul 2019 18:07:18 +0200 Subject: [PATCH] Arch: ifc, some new lines --- src/Mod/Arch/importIFC.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Mod/Arch/importIFC.py b/src/Mod/Arch/importIFC.py index 09676904ae..8fc099810c 100644 --- a/src/Mod/Arch/importIFC.py +++ b/src/Mod/Arch/importIFC.py @@ -59,6 +59,7 @@ if open.__module__ in ['__builtin__','io']: # ************************************************************************************************ # ********** templates and other definitions **** # which IFC type must create which FreeCAD type + typesmap = { "Site": [ "IfcSite" @@ -187,7 +188,7 @@ END-ISO-10303-21; # ************************************************************************************************ -# ********** some helper, used in import and export and exploerer +# ********** some helper, used in import and export def decode(filename,utf=False): @@ -199,6 +200,7 @@ def decode(filename,utf=False): filename = filename.encode(encoding) return filename + def dd2dms(dd): "converts decimal degrees to degrees,minutes,seconds" @@ -260,8 +262,10 @@ def getPreferences(): ADD_DEFAULT_STOREY = p.GetBool("IfcAddDefaultStorey",False) ADD_DEFAULT_BUILDING = p.GetBool("IfcAddDefaultBuilding",True) + # ************************************************************************************************ # ********** open and import IFC **************** + def open(filename,skip=[],only=[],root=None): "opens an IFC file in a new document" @@ -1270,6 +1274,7 @@ def insert(filename,docname,skip=[],only=[],root=None): # ************************************************************************************************ # ********** helper for import IFC ************** + class recycler: "the compression engine - a mechanism to reuse ifc entities if needed" @@ -1463,7 +1468,6 @@ class recycler: # ************************************************************************************************ # ********** export IFC **************** - def export(exportList,filename,colors=None): """export(exportList,filename,colors=None) -- exports FreeCAD contents to an IFC file. @@ -2731,7 +2735,6 @@ def export(exportList,filename,colors=None): # ************************************************************************************************ # ********** helper for export IFC ************** - def isStandardCase(obj,ifctype): if ifctype.endswith("StandardCase"):