View Revisions: Issue #3770

Summary 0003770: Scripted references to body origin planes
Revision 2019-01-12 13:13 by Kunda1
Description As discussed here:

https://forum.freecadweb.org/viewtopic.php?f=22&t=31540

it would be great if the Python API was expanded to provide convenient methods to access the plane and axis of a body origin.

At the moment it is necessary to iterate through the origin features array and match against a label.

I have also written a small summary of the scenario here:

https://vectronic.io/posts/freecad-part-design-indices/

A suggestion would be to support something like:

origin = App.getDocument('Unnamed').getObject('myBody').Origin
xAxis = origin.xAxis
Revision 2019-01-12 12:36 by vectronic
Description As discussed here:

https://forum.freecadweb.org/viewtopic.php?f=22&t=31540

it would be great if the Python API was expanded to provide convenient methods to access the plane and axis of a body origin.

At the moment it is necessary to iterate through the origin features array and match against a label.

I have also written a small summary of the scenario here:

https://vectronic.io/posts/freecad-part-design-indices/

A suggestion would be to support something like:

origin = App.getDocument('Unnamed').getObject('myBody').Origin
xAxis = origin.xAxis