08-23-2023
07:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-23-2023
07:18 AM
Nice to hear that, it will save alot of time and potential errors.
For now I am trying to implement by API, but I am still not able to select the right direction in an easy way. Do you know if I can use the vector of the X or Y axis that I extract from the wcs like in the python script in the previous post or I must draw a line follow this vector and try to insert this value?
(origin, xAxis, yAxis, zAxis) = setup.workCoordinateSystem.getAsCoordinateSystem()
for op in ops:
opName=op.name
if opName=='BORR 8 LEFT':
opToolOrient0=op.parameters.itemByName('overrideToolView')
opToolOrient0.expression="true"
opToolOrient1=op.parameters.itemByName('view_orientation_mode')
opToolOrient1.expression="'axesZX'"
opToolOrientZ=op.parameters.itemByName('view_orientation_axisZ')
opToolOrientZ.expression="true"
cadObjectParam: adsk.cam.CadObjectParameterValue = opToolOrientZ.value
zdirection=cadObjectParam.value
zdirection.append(xAxis)
cadObjectParam.value = zdirection
I have tried to follow the indication in the documentation but it still does not seems to work.
thanks
Daniele
Fusion