Would you check the function makeDimension of the file Draft.py please,

Would you check the function makeDimension of the file Draft.py please,

Following script, for example:

import Part, math, Drawing, Draftfrom FreeCAD import BaseApp.newDocument()Circle=         Part.makeCircle(100,Base.Vector(0,0,0),Base.Vector(0,0,1),0,115)obj=            App.activeDocument().addObject('Part::Feature','Circle')obj.Shape=      Circlerdim=           Draft.makeDimension(obj,0,"radius",obj.Shape.Vertexes[0].Point)

outputs:

--------------------Traceback (most recent call last):  File "input", line 1, in   File "/usr/lib/freecad/Mod/Draft/Draft.py", line 465, in makeDimension    obj.ViewObject.Override = "rdim"AttributeError: 'Gui.ViewProviderPythonFeature' object has no attribute 'Override'--------------------

Commeting out both the lines 465 and 468 works fine. Furthermore, makeDimension(p1,p2,p3,p4) does not work for each p4, in case p3== "radius" or p3=="diameter". For example:

rdim=           Draft.makeDimension(obj,0,"radius")

outputs:

-----------------------Traceback (most recent call last):  File "input", line 1, in   File "/usr/lib/freecad/Mod/Draft/Draft.py", line 471, in makeDimension    p3 = p2.sub(p1)AttributeError: 'int' object has no attribute 'sub'-----------------------

or with the script:

rdim=           Draft.makeDimension(obj,0,"radius",Base.Vector(0,0,0))

no dim can displayed (it is greyed out). Thanks.

anh

Dell Latitude D430 Ubuntu 10.04 FreeCAD 0.13R0784 Release date: 25.03.2012, 13:38:32