I am developing a macro that requires me to measure the minumum distance between the origin of a series of coordinate systems and faces. I have the macro working fine for measuring between two faces, but I am unable to figure out how to refer to the origin of a coordinate system for the MinimumDistance method.
you cannot use the Coordinate System as parameter for the MinimumDistance method. It only accepts Geomerty Elements.
Get one of the Axis (which is an Edge) and use the Start Point (Vertex) as parameter.
Dim CoordSystem As SolidEdgePart.CoordinateSystem = sePart.CoordinateSystems.Item(1)
Dim ax As SolidEdgeGeometry.Edge = CoordSystem.Axis(SolidEdgePart.CoordinateSystemFeatureConstants.seCoordSysXAxis)
Dim vx As SolidEdgeGeometry.Vertex = ax.StartVertex