Measuring distance between two planes in an assembly. The planes exist in their respective parts

Measuring distance between two planes in an assembly. The planes exist in their respective parts

hamzabuttX6GV8
Contributor Contributor
860 Views
2 Replies
Message 1 of 3

Measuring distance between two planes in an assembly. The planes exist in their respective parts

hamzabuttX6GV8
Contributor
Contributor

Hi,

 

I want to measure distance between 2 planes (they both exist in separate parts/ sub-assemblies) in the main assembly. Based on that distance I want to control the position of parts by using iLogic.


I have tried different methods like creating a sketch in the assembly and projecting both the planes in that sketch. And adding a driven dimension to it. But the problem is that the projected geometry does not get any reference to the plane so when the position of the planes change, the projected geometry doesn't move with the planes.

 

I was thinking that maybe I could annotate the dimension between 2 planes and access it in iLogic somehow but I can't find much related to it.

 

Any ideas?

 

Planes encircled in the attached picture.

0 Likes
Accepted solutions (1)
861 Views
2 Replies
Replies (2)
Message 2 of 3

A.Acheson
Mentor
Mentor
Accepted solution

Hi @hamzabuttX6GV8 

You can try the measure tool via code see help page

distance = Measure.MinimumDistance(“Wheel1”, “Workplane1”, “Wheel2”, Workplane2”)

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 3

hamzabuttX6GV8
Contributor
Contributor
Works like a charm.
Thank you so much 🙂
0 Likes