In my code I create a PathPocketShape object onto a planar face, by doing this :
Code: Select all
pRootObject.Shape.tessellate(0.1)
localJobObj = PathJob.Create("Job", [ pRootObject ] )
objFaceMill = PathPocketShape.Create(opTitle)
objFaceMill.Base = [ ( pRoot, ( face_name ) ) ]
objFaceMill.recompute()
objFaceMill.StartDepth = sZ
objFaceMill.FinalDepth = eZ
so I tryed several ways but none of these works :
Code: Select all
objFaceMill.setEditorMode('StartDepth', 0)
objFaceMill.setExpression('StartDepth', '%0.3f'%sZ+'' )
objFaceMill.setExpression('StartDepth', '%0.3f'%sZ+'mm' )
objFaceMill.StartDepth = sZ
objFaceMill.StartDepth.Value = sZ
objFaceMill.setEditorMode('OpStartDepth', 0)
objFaceMill.setExpression('OpStartDepth', '%0.3f'%sZ+'' )
objFaceMill.setExpression('OpStartDepth', '%0.3f'%sZ+'mm' )
objFaceMill.OpStartDepth= sZ
objFaceMill.OpStartDepth.Value = sZ
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 32-bit
Version: 0.18.15527 (Git)
Build type: Release
Branch: master
Hash: 70aaf3e95fe2a3f17d43e95a1afe7d903d91b8ae
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: Italian/Italy (it_IT)
under linux : FreeCAD 0.18, Libs: 6.0R2019
Could someone help me about why cannot change StartDepth ?
Thank you
Cristian