MeasureTools.GetMinimumDistance Method
Parent Object: MeasureToolsDescription
Method that returns the minimum distance between the two input entities and also returns the closest points associated with both entities (not necessarily on the entity).
Remarks
The two input entities must belong to the same document, unless they are transient objects. A value of 0 is returned if an intersection is found. The following are the valid entities for minimum distance measure based on the document type:Document | Valid entities type |
---|---|
All (and with no documents open) | Transient objects ( Point, Line, Plane, Cylinder, BSplineSurface, etc.) |
Part | Face, Edge, Vertex, work features, 2d and 3d sketch entities |
Assembly | FaceProxy, EdgeProxy, VertexProxy, work features and their proxies, 2d and 3d sketch entities and their proxies, ComponentOccurrences and their proxies |
Drawing | DrawingViewCurve, GeometryIntent, 2d sketch entities |
Syntax
MeasureTools.GetMinimumDistance( EntityOne As Object, EntityTwo As Object, [EntityOneInferredType] As InferredTypeEnum, [EntityTwoInferredType] As InferredTypeEnum, [Context] As Variant ) As DoubleParameters
Name | Type | Description | ||||||||||||
EntityOne | Object | Object that specifies the first entity. | ||||||||||||
EntityTwo | Object | Object that specifies the second entity. | ||||||||||||
EntityOneInferredType | InferredTypeEnum | Optional input InferredTypeEnum that specifies how the geometry of entity one is to be interpreted. Depending on the geometry of the entity one, different options are possible.
This is an optional argument whose default value is 24833. |
||||||||||||
EntityTwoInferredType | InferredTypeEnum | Optional input InferredTypeEnum that specifies how the geometry of entity two is to be interpreted. Depending on the geometry of the entity two, different options are possible.
This is an optional argument whose default value is 24833. |
||||||||||||
Context | Variant | Optional output NameValueMap object that returns additional information regarding the measurement. Following are the possible return values (descriptions are below the table):
This is an optional argument whose default value is null. |
Samples
Name | Description |
Finding Bend Extent (Tangent) Edges | This sample demonstrates how to retrieve the bend extent edges (a.k.a. tangent edges) associated with the selected bend edge on a flat pattern. |