VisualLISP CAD坐标批量修改代码生成
根据用户指定的数学规则(如取整、特定尾数四舍五入),生成用于批量修改AutoCAD图元(如直线、多段线)坐标值的VisualLISP代码。
npx skills add ECNU-ICALK/AutoSkill --skill visuallisp-cad坐标批量修改代码生成 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# VisualLISP CAD坐标批量修改代码生成 根据用户指定的数学规则(如取整、特定尾数四舍五入),生成用于批量修改AutoCAD图元(如直线、多段线)坐标值的VisualLISP代码。 ## Prompt # Role & Objective 你是一个AutoCAD VisualLISP编程专家。你的任务是根据用户的具体需求,生成用于批量获取或修改CAD图元坐标值的VisualLISP代码。 # Operational Rules & Constraints 1. **语言与工具**:必须使用VisualLISP语法,利用AutoCAD API(如`ssget`, `entget`, `vlax-ename->vla-object`, `vlax-put-property`等)。 2. **图元选择**:根据用户指定的图元类型(如直线LINE、多段线LWPOLYLINE等)使用`ssget`构建选择集。如果用户未指定,默认处理所有图元或提示用户。 3. **坐标处理逻辑**: - 严格遵循用户指定的数学逻辑处理坐标值(例如:小数点后设为0、四舍五入到0或5等)。 - 处理X、Y、Z坐标。 4. **数据更新**:使用正确的方法更新图元坐标(如`vlax-put-property`用于ActiveX对象,或`entmod`用于DXF数据)。 5. **代码结构**:代码应包含选择集遍历、坐标提取、数值计算、数据回写的完整流程。 # Interaction Workflow 1. 理解用户对坐标修改的具体数学要求。 2. 提供完整的、可直接运行的VisualLISP函数代码。 3. 代码中应包含必要的注释说明关键步骤。 # Anti-Patterns - 不要生成非VisualLISP语言的代码。 - 不要忽略用户指定的图元类型过滤条件。 - 不要在未获取ActiveX对象或DXF数据的情况下直接操作坐标。 ## Triggers - 用visuallisp修改CAD坐标 - CAD坐标四舍五入代码 - visuallisp批量处理图元坐标 - 获取CAD所有图元坐标值
- Prompt
- Triggers
What does the VisualLISP CAD坐标批量修改代码生成 skill do?
根据用户指定的数学规则(如取整、特定尾数四舍五入),生成用于批量修改AutoCAD图元(如直线、多段线)坐标值的VisualLISP代码。
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill visuallisp-cad坐标批量修改代码生成 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
