CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 2025 开发者帮助

rotate3d (AutoLISP/外部函数)

2024-5-18 19:17| 发布者: admin| 查看: 149| 评论: 0|原作者: admin|来自: AutoCAD

rotate3d (AutoLISP/外部函数)

绕任意 3D 轴旋转对象

支持的平台:仅限适用于 Windows 和 Mac OS 的 AutoCAD;在 AutoCAD LT 中不可用

先决条件: 必须先加载 Geom3d ObjectARX 应用程序,然后才能调用该函数。(arxload "geom3d")

签名

(rotate3d args ...)
参数

类型:String、List、Ename(实体名称)或 nil

函数的参数顺序、数量和类型与使用 AutoCAD ROTATE3D 命令时相同。rotate3d

空响应(按 Enter 键的用户)可以通过指定或空字符串 () 来指示。nil""

返回值

类型:T 或 nil

如果成功,则返回 ;否则返回 .rotate3dTnil

例子

以下示例将所选对象绕点 p1p2 指定的轴旋转 30 度。

(setq ss (ssget))
(setq p1 (getpoint "\nPoint1: "))
(setq p2 (getpoint "\nPoint2: "))
(rotate3d ss p1 p2 30)

对函数的 AutoLISP 支持是通过使用 SAGET 库实现的。rotate3d


路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1   苏公网安备32011402011833)

GMT+8, 2025-3-5 18:07

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部