How to get position of constructionAxis of an occurence in context of assembly’s origin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to get positions of holes of the bearings, to automatically insert holes to the base plate of the bearings.
I can get the origin of the construction axes using ‘axis.geometry.origin.x’ according to ConstructionAxis.geometry Property.
However, this gives the position of construction axis relative to the component’s origin itself not to the assembly’s origin.
How can I get position of constructionAxis of an occurence relative to the assembly’s origin?
There are 3 solutions I can think of:
- Directly get the position (the question)
- Calculate the positions from the origin of each component which can be found by, ex. ‘occ.transform.translation.x’ according to Occurrence.transform2 Property.
- Project the circular edge to the sketch.