Gets the minimum or maximum distance between this entity and the given face or edge entity (see
Remarks).
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IEntity
Dim BaseEntity As Object
Dim MinDistance As Boolean
Dim Parameter As Object
Dim Position1 As Object
Dim Position2 As Object
Dim Distance As Double
Dim value As Integer
value = instance.GetDistance(BaseEntity, MinDistance, Parameter, Position1, Position2, Distance)
|
Parameters
- BaseEntity
- IEntity of another edge or face to get distance from this entity (see Remarks)
- MinDistance
- True to return minimum distance between entities; false to return maximum distance between entities
- Parameter
If MinDistance = False,
- and BaseEntity is an edge or curve, specify an array of two doubles (Min, Max), where Min and Max make up the U-parameter range of BaseEntity
- and BaseEntity is a face, specify an array of four doubles (UMin, VMin, UMax, VMax), where UMin, VMin, UMax, and VMax make up the UV-parameter range of the surface of BaseEntity
If MinDistance = True,
- and BaseEntity is an edge or curve, optionally specify an array of two doubles (Min, Max), where Min and Max make up the U-parameter range of BaseEntity
- and BaseEntity is a face, optionally specify an array of four doubles (UMin, VMin, UMax, VMax), where UMin, VMin, UMax, and VMax make up the UV-parameter range of the surface of BaseEntity
- Position1
- Array of doubles; coordinates of this entity that were used to measure the distance
- Position2
- Array of doubles; coordinates of BaseEntity that were used to measure the distance
- Distance
- Minimum or maximum distance between entities; if Parameter is not specified, minimum distance
Return Value
0 if success; -1 if failure
Example
Remarks
See Also
Availability
SolidWorks 2009 SP5, Revision Number 17.5