明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1956|回复: 2

[LISP]在图纸上自动标注相对于基点的其他点的坐标值

[复制链接]
发表于 2004-5-3 09:36:00 | 显示全部楼层 |阅读模式
如果已经知道建筑总平面图上的一个基点的坐标,如何快速给总平面上的各个单体定位呢?需要在图纸上自动标注相对于基点的其他点的坐标值。
发表于 2004-5-3 09:38:00 | 显示全部楼层
用下面的這個涵數吧.

Returns the UCS 3D point at a specified angle and distance from a point

(polar pt ang dist)

Arguments

pt

A 2D or 3D point.

ang

An angle expressed in radians relative to the world X axis. Angles increase in the counterclockwise direction, independent of the current construction plane.

dist

Distance from the specified pt.

Return Values

A 2D or 3D point, depending on the type of point specified by pt.

Examples

Supplying a 3D point to polar:

Command: (polar '(1 1 3.5) 0.785398 1.414214)

(2.0 2.0 3.5)

Supplying a 2D point to polar:

Command: (polar '(1 1) 0.785398 1.414214)

(2.0 2.0)

 楼主| 发表于 2004-5-3 09:43:00 | 显示全部楼层
谢谢斑竹!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-10-1 12:58 , Processed in 0.143944 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表