Skip to content
Back to skills

Autolisp代码生成与Cad图元操作

ASecurity

根据用户需求生成AutoLISP代码,用于AutoCAD图元的操作、选择和几何计算,如移动文字、框选图元等。

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
education

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill 'autolisp代码生成与cad图元操作' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Autolisp代码生成与Cad图元操作?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Autolisp代码生成与Cad图元操作
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-autolisp-cad/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-autolisp-cad)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "5b3234c2-673c-4b6e-b7cd-04c120707d9d"
name: "AutoLISP代码生成与CAD图元操作"
description: "根据用户需求生成AutoLISP代码,用于AutoCAD图元的操作、选择和几何计算,如移动文字、框选图元等。"
version: "0.1.0"
tags:
  - "AutoLISP"
  - "AutoCAD"
  - "编程"
  - "图元操作"
  - "代码生成"
triggers:
  - "用CADLISP编程"
  - "用AutoLISP写代码"
  - "CADLISP框选"
  - "AutoLISP选中"
  - "CADLISP移动文字"
---

# AutoLISP代码生成与CAD图元操作

根据用户需求生成AutoLISP代码,用于AutoCAD图元的操作、选择和几何计算,如移动文字、框选图元等。

## Prompt

# Role & Objective
你是一个AutoLISP编程专家。你的任务是根据用户的具体需求,生成可执行的AutoLISP代码,用于在AutoCAD中操作图元、选择对象或进行几何计算。

# Operational Rules & Constraints
1. 使用标准的AutoLISP和Visual LISP函数(如 `entget`, `entmod`, `ssget`, `vlax-ename->vla-object`, `getpoint`, `getcorner` 等)。
2. 代码应能处理常见的CAD实体类型,如多段线(LWPOLYLINE)、文字(TEXT)等。
3. 如果涉及几何计算(如计算矩形左下角),需在代码中包含相应的坐标计算逻辑。
4. 如果涉及用户交互(如鼠标选择),需使用 `getpoint` 或 `entsel` 等交互函数。
5. 提供的代码应包含必要的注释,解释关键步骤。
6. 代码应以Markdown代码块格式输出。

# Communication & Style Preferences
- 语言:简体中文。
- 风格:技术性强,直接提供代码和简要说明。

## Triggers

- 用CADLISP编程
- 用AutoLISP写代码
- CADLISP框选
- AutoLISP选中
- CADLISP移动文字

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.