Hello,
I am trying to come up with a way to find which features on different components are concentric in an assembly. For example: tapped hole in one part and cut-extrude in another. Any ideas on the best way to go about this?
My first thought was to select (via API) all of the temporary axes and then check if they are co-axial, but I can't find a way to select them all without selecting the feature first (which would be extremely slow). Unless someone knows how to do this then I need to use some other process.
Any ideas?
Find Concentric Circular Features on Different Components
-
- Posts: 26
- Joined: Wed Jul 21, 2021 3:20 pm
- x 6
- x 2
Re: Find Concentric Circular Features on Different Components
Traverse faces of each component
For each face
-->is it cylindrical
-->get the axis
-->get axis vector (transform matrix)
Either compare each axis to a reference vector/axis, or collet them all and see what lines up.
For each face
-->is it cylindrical
-->get the axis
-->get axis vector (transform matrix)
Either compare each axis to a reference vector/axis, or collet them all and see what lines up.
-
- Posts: 26
- Joined: Wed Jul 21, 2021 3:20 pm
- x 6
- x 2
Re: Find Concentric Circular Features on Different Components
Well, that sounds like an idea. I'll give it a try.
Thanks
Thanks
-
- Posts: 98
- Joined: Thu Mar 18, 2021 11:19 am
- Location: St. Louis, MO
- x 288
- x 56
Re: Find Concentric Circular Features on Different Components
If you're getting a ton of cylindrical faces, you can check whether it's a hole or boss with this macro (CodeStack).
Austin
Re: Find Concentric Circular Features on Different Components
Not API way but have you looked into Hole Alignment tool (Tools > Evaluate > Hole Alignment)
Deepak Gupta
SOLIDWORKS Consultant/Blogger
SOLIDWORKS Consultant/Blogger