文件名称:坐标系转换-AutoCAD软件的二次开发lisp
文件大小:581KB
文件格式:PPT
更新时间:2024-05-14 17:58:38
cadlisp开发
六、坐标系转换 (trans pt from to [disp]) 说明: 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 Paper 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. 例:用getpoint函数获取点后,将该点转换为世界坐标系下的点。 (setq pnt (getpoint “输入点:”))(trans pnt 1 0) 7. 3 AutoLISP与AutoCAD的通信