用(trans pt ename 1) 参见trans函数说明如下: Translates a point (or a displacement) from one coordinate system to another (trans pt from to [disp]) Arguments pt
A list of three reals that can be interpreted as either a 3D point or a 3D displacement (vector). from
An integer code, entity name, or 3D extrusion vector identifying the coordinate system in which pt is expressed. The integer code can be one of the following: 0 World (WCS) 1 User (current UCS) 2 If used with code 0 or 1, this indicates the Display Coordinate System (DCS) of the current viewport. When used with code 3, it indicates the DCS of the current model space viewport. 3  aper space DCS (used only with code 2) to
An integer code, entity name, or 3D extrusion vector identifying the coordinate system of the returned point. See the from argument for a list of valid integer codes. disp
If present and is not nil, this argument specifies that pt is to be treated as a 3D displacement rather than as a point. If you use an entity name for the from or to argument, it must be passed in the format returned by the entnext, entlast, entsel, nentsel, and ssname functions. This format lets you translate a point to and from the Object Coordinate System (OCS) of a particular object. (For some objects, the OCS is equivalent to the WCS; for these objects, conversion between OCS and WCS is a null operation.) A 3D extrusion vector (a list of three reals) is another method of converting to and from an object's OCS. However, this does not work for those objects whose OCS is equivalent to the WCS. |