Search code examples
vbacatia

Measuring distance between two objects using CATIA VBA


I have a part which has two exremums on one direction. These extremums can be surface, point or line depending on part shape.

I want to measure the distance between those two extremums on the direction which they are defined by.

I couldn't find anyway to measure distance.


Solution

  • i solved the broblem by creating a formula which is

    distance(sadasd\Sketchplane,BOUNDARY BOX\extz-2)