Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

How to get position of constructionAxis of an occurence in context of assembly’s origin

6638161521
Explorer

How to get position of constructionAxis of an occurence in context of assembly’s origin

6638161521
Explorer
Explorer

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:

  1. Directly get the position (the question)
  2. Calculate the positions from the origin of each component which can be found by, ex. ‘occ.transform.translation.x’ according to Occurrence.transform2 Property.
  3. Project the circular edge to the sketch.

6638161521_0-1718675979232.png

 

0 Likes
Reply
103 Views
0 Replies
Replies (0)