From fcbe92c03e9292bfe41e5f49470baf8dbc0b8fc6 Mon Sep 17 00:00:00 2001 From: Keith Sloan Date: Tue, 25 Aug 2020 14:55:40 +0100 Subject: [PATCH] fix position center and trace --- freecad/gdml/GDMLShared.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/freecad/gdml/GDMLShared.py b/freecad/gdml/GDMLShared.py index 770f72ced..5537b0085 100644 --- a/freecad/gdml/GDMLShared.py +++ b/freecad/gdml/GDMLShared.py @@ -141,7 +141,7 @@ def getRef(ptr, name) : def getMult(fp) : unit = 'mm' # set default # Watch for unit and lunit - print('getMult : '+str(fp)) + #print('getMult : '+str(fp)) if hasattr(fp,'lunit') : trace('lunit : '+fp.lunit) unit = fp.lunit @@ -233,10 +233,9 @@ def processPlacement(base,rot) : def getPositionFromAttrib(pos) : - print('getPositionFromAttrib') - print('pos : '+str(ET.tostring(pos))) - print(pos.attrib) - #print('pos attrib : '+str(ET.tostring(pos.attrib))) + #print('getPositionFromAttrib') + #print('pos : '+str(ET.tostring(pos))) + #print(pos.attrib) #if hasattr(pos.attrib, 'unit') : # Note unit NOT lunit #if hasattr(pos.attrib,'name') : # name = pos.get('name') @@ -264,7 +263,7 @@ def getDefinedPosition(name) : # get Position from define section pos = define.find("position[@name='%s']" % name ) if pos != None : - print('Position : '+str(ET.tostring(pos))) + #print('Position : '+str(ET.tostring(pos))) trace(pos.attrib) return(getPositionFromAttrib(pos)) else :