# Make a contour for the base object
# to test:
# 0_testdrawing.py 
# 1_create_job.py
# 2_contour.py

import PathScripts.PathContour

Gui.activateWorkbench("MyPathWorkbench")

# create contour object:
mycontour = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", "Contour")
PathScripts.PathContour.ObjectContour(mycontour)
PathScripts.PathContour._ViewProviderContour(mycontour.ViewObject)

# set properties:
mycontour.Active = True
mycontour.ClearanceHeight = 20.0
mycontour.StepDown = 1.0
mycontour.StartDepth= 0.0
mycontour.FinalDepth= -50.0
mycontour.SafeHeight = 12.0
mycontour.OffsetExtra = 0.0
mycontour.Direction = "CW"
mycontour.UseComp = True

PathScripts.PathUtils.addToJob(mycontour)
PathScripts.PathContour.ObjectContour.setDepths(mycontour.Proxy, mycontour)

FreeCAD.ActiveDocument.recompute() 

##mycontour.ViewObject.startEditing()    AttributeError: 'PySide.QtGui.QLineEdit' object has no attribute 'value'

Gui.activeDocument().activeView().viewAxonometric()
Gui.SendMsgToActiveView("ViewFit")

