View Issue Details

IDProjectCategoryView StatusLast Update
0003770PartDesignFeaturepublic2021-02-06 06:43
Reportervectronic Assigned To 
Status confirmedResolutionopen 
Product Version0.18 
Target Version0.20 
Summary0003770: Scripted references to body origin planes
DescriptionAs discussed here:

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:

A suggestion would be to support something like:

origin = App.getDocument('Unnamed').getObject('myBody').Origin
xAxis = origin.xAxis
Additional InformationOS: macOS 10.14
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15310 (Git)
Build type: Release
Branch: (HEAD detached at c88a64e8e)
Hash: c88a64e8e7a3bb66a23b965b655b5a5040dfa4d2
Python version: 2.7.15
Qt version: 5.11.2
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedKingdom (en_GB)
TagsNo tags attached.
FreeCAD Information



2019-01-12 13:09

administrator   ~0012419

Note @vectronic
Please always try to use the most up to date dev version.
Current one is at r15611 you are 301 commits behind it.


2019-01-12 13:12

administrator   ~0012420

Since we're in a feature freeze I'm setting the target for the 0.19 cycle.


2022-03-03 13:55

administrator   ~0016694

This ticket has been migrated to GitHub as issue 5859.

Issue History

Date Modified Username Field Change
2019-01-12 12:36 vectronic New Issue
2019-01-12 13:09 Kunda1 Note Added: 0012419
2019-01-12 13:12 Kunda1 Status new => confirmed
2019-01-12 13:12 Kunda1 Target Version => 0.19
2019-01-12 13:12 Kunda1 Note Added: 0012420
2019-01-12 13:13 Kunda1 Description Updated
2021-02-06 06:43 abdullah Target Version => 0.20