From bdaf97625b6a64c7b241e755834685305f42ba52 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Fri, 31 Aug 2012 11:00:40 -0300 Subject: [PATCH] 0000820: Draft dimension dots --- src/Mod/Arch/importIFC.py | 3 ++- src/Mod/Draft/Draft.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Mod/Arch/importIFC.py b/src/Mod/Arch/importIFC.py index f99a3df303..19b22a5794 100644 --- a/src/Mod/Arch/importIFC.py +++ b/src/Mod/Arch/importIFC.py @@ -420,7 +420,8 @@ def getShape(obj): m[1], m[4], m[7], m[10], m[2], m[5], m[8], m[11], 0, 0, 0, 1) - sh.Placement = FreeCAD.Placement(mat) + sh.Placement = FreeCAD.Placement(mat) + if DEBUG: print "getting Shape from ",obj return sh def getWire(entity,placement=None): diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 27320c4a32..cc4d05e01b 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -1245,6 +1245,7 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct svg = "" linewidth = linewidth/scale fontsize = (fontsize/scale)/2 + pointratio = 4 # the number of times the dots are smaller than the font size plane = None if direction: if isinstance(direction,FreeCAD.Vector): @@ -1388,13 +1389,13 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct svg += 'freecad:dimpoint="'+str(p2.x)+' '+str(p2.y)+'"' svg += '/>\n' svg += '