Overview | Statement List | Example


相对最小距离

Synopsis

num list = RELDST/obj1[,x1,y1[,z1]],obj2[,x2,y2[,z2]]

Description

Allows you to obtain the minimum distance between two objects. In addition, it allows you to obtain the points on each object at the minimum distance.

You can also specify optional start points for curves or surfaces. Start points allow you to distinguish between multiple points on an object when the selection of more than one is possible. For example, if more than one pair of points exists between the objects, and these points are the same minimum distance apart, the system may not find the expected pair unless you indicate which start point to use.

The RELDST statement returns a seven word array including the first point, the second point, and the distance.

NOTE: When the minimum distance is computed between a point and a body, the 3D distance returned is negative if the point lies inside the body.

Parameters

Parameter

Description

obj1

The first existing object from which you wish to calculate the distance.

x1,y1,z1

Optional work coordinates which specify a start point on the first object (only for curves or surfaces). The Z coordinate is optional.

obj2

The second existing object from which you wish to calculate the distance.

x2,y2,z2

Optional work coordinates which specify a start point on the second object (only for curves or surfaces). The Z coordinate is optional.


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.