arx-build

使用 MSBuild 自动编译 AutoCAD ObjectARX / GRX / ZRX 项目。当用户需要构建/编译 ARX/DBX/GRX/ZRX 插件、生成 .arx/.grx/.zrx,或为特定版本的 AutoCAD/GstarCAD/ZWCAD 编译 ObjectARX C++ 项目时触发。触发关键词包括“编译/compile/build/arx/grx/zrx/ObjectARX/CAD 插件编译/CAD plugin build”。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "arx-build":https://skillpi.com/zh/skills/deepskill-0bc5bf5caf1ce668410d41d9b241361b0dad872c7dd466635e543125bc35f8e7。安装前核对上游来源和版本:https://skillhub.cn/skills/user_9c6e7205/arx-build。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

使用 MSBuild 自动编译 AutoCAD ObjectARX / GRX / ZRX 项目。当用户需要构建/编译 ARX/DBX/GRX/ZRX 插件、生成 .arx/.grx/.zrx,或为特定版本的 AutoCAD/GstarCAD/ZWCAD 编译 ObjectARX C++ 项目时触发。触发关键词包括“编译/compile/build/arx/grx/zrx/ObjectARX/CAD 插件编译/CAD plugin build”。

0 下载

介绍来源: third_party · user_9c6e7205 · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: arx-build
description: >-
  Auto-compile AutoCAD ObjectARX / GRX / ZRX projects using MSBuild.
  Use when the user wants to build/compile ARX/DBX/GRX/ZRX plugins,
  generate .arx/.grx/.zrx files, or compile ObjectARX C++ projects
  for specific AutoCAD/GstarCAD/ZWCAD versions.
  Triggers on: "编译", "compile", "build", "arx", "grx", "zrx",
  "ObjectARX", "CAD 插件编译", "CAD plugin build".

ARX Build

Auto-compile AutoCAD ObjectARX / GRX / ZRX projects for any target version.

Prerequisites

Project must be created from the ObjectARX / GRX / ZRX project template. The template ensures standard .vcxproj / .slnx structure with the {Platform}.Common.props property-sheet chain.

The template provides:

  • EnabledArxYears — list of supported AutoCAD years
  • EnableReleaseConfigs / EnableDebugConfigs / EnableDynamicConfigs / EnableStaticConfigs — which configuration suffixes to generate
  • Per-year SDK props ({Platform}.arx-{Year}.props) imported automatically

MSBuild Discovery

Do NOT assume a hardcoded path. Detect MSBuild dynamically every time:

Step A — Try vswhere (reliable, works on any VS install)

"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe

Step B — Fallback: check common paths

dir /s /b "%ProgramFiles%\Microsoft Visual Studio\*\*\MSBuild\Current\Bin\MSBuild.exe" 2>nul

Step C — If both fail

Ask the user to provide the MSBuild path or verify Visual Studio is installed with the C++ workload.

Store the resolved MSBuild path in a variable and reuse it for all build commands.

ObjectARX / GRX / ZRX Props Paths

Standard install locations (check in order):

Platform Primary Path Common.props
Autodesk ARX C:\Program Files\Autodesk\ObjectARX Props\ ObjectARX.Common.props
HCSoft GRX C:\Program Files\HCSoft\ObjectGRX Props\ ObjectGRX.Common.props
ZWSoft ZRX C:\Program Files\ZWSoft\ObjectZRX Props\ ObjectZRX.Common.props

If a GRX/ZRX path is missing, use C:\Program Files\Autodesk\ObjectARX Props\ as fallback (it often bundles all three).

The .vcxproj already has <Import Project="...Common.props" /> — you don't need to pass props paths to MSBuild. MSBuild resolves them from the project file.

Decision Tree

Single .vcxproj?  ──YES──> Go directly to "Compile" (Step 4)
     │
     NO (multi-project directory)
     │
     ▼
Steps 1→2→3→4→5→6

Instructions

Step 1 — Discover Projects (multi-project only)

When the user gives a directory, scan for .vcxproj files. For each, extract:

  • Configuration names from <ProjectConfiguration Include="...">
  • PostBuild copy targets (search for <Copy SourceFiles="$(TargetPath)" DestinationFolder=)
  • ConfigurationType if explicitly set

Present a discovery table, then proceed to Step 2.

Step 2 — Resolve Build Intent

The user specifies what to build. Every directive maps to a combination of:

Layer Meaning Examples
Project Which vcxproj ETTransformer, ETTransformerD, all, arx-only
Suffix Output type d=Debug DLL, B=Release DLL, S=Static Lib
Year CAD version 2026, 2027, 2014-2027, latest

Shortcuts (Chinese + English):

用户说 / User says 展开为 / Expands to
编译所有静态库 / build all static All projects, only S suffix
编译全部 Release DLL / build all release DLL All projects, only B suffix
编译 2026 全部 / build 2026 all All projects, all suffixes, year=2026
编译 ARX 2026+2027 / build ARX 2026+2027 ARX projects only, years 2026 & 2027
编译 XX 最新版 / build XX latest That project, latest year, B suffix
编译 release / build release All projects, no-suffix (Release) configs for all years

Expand the intent into an explicit list of {vcxproj, config} pairs and confirm with the user before building.

Step 3 — Conflict Detection (multi-project only)

Two projects conflict when they share the same {Year}{Suffix} and their PostBuild copies to the same directory.

When conflicts exist, offer the user one of:

Strategy Behavior
Sequential (default) Conflicting pairs run one after another
Skip PostBuild Add /p:PostBuildEventUse=false, final selective copy
Overwrite OK Parallel, last write wins (user accepts)

For Sequential: split into batches. Conflicting configs → separate sequential batches. Non-conflicting → same parallel batch.

Step 4 — Compile

Command template:

"{MSBUILD}" "{project_path}" /p:Configuration={Config} /p:Platform=x64 /t:Build /v:minimal /m
  • {MSBUILD} = the path resolved from MSBuild Discovery above
  • Use /v:minimal for quieter output (use /v:normal only for a single config)
  • PowerShell caveat: If the MSBuild path contains spaces, wrap in & "..." operator:
    & "{MSBUILD}" "{project_path}" /p:Configuration={Config} /p:Platform=x64 /t:Build /v:minimal /m
  • cmd.exe caveat: Direct quoting works:
    "{MSBUILD}" "{project_path}" /p:Configuration={Config} /p:Platform=x64 /t:Build /v:minimal /m
  • Parallel batches: fire multiple execute_command calls simultaneously
  • Sequential batches: wait for previous to complete before starting next

Step 5 — Verify

For each built config, check:

  1. Exit code = 0. If non-zero, search output for error to identify the cause.
  2. Output file exists at x64\{Config}\{ProjectName}{Year}.arx (or .dll / .grx / .zrx depending on platform). Static lib: {ProjectName}{Year}S.lib.

Step 6 — Report

Present a table grouped by project:

| Config | Type  | Status | Output                              |
|--------|-------|--------|-------------------------------------|
| 2026B  | DLL   | ✅     | x64\2026B\ETTransformer2026.dll     |
| 2026S  | .lib  | ✅     | x64\2026S\ETTransformer2026S.lib    |
| 2014B  | DLL   | ❌     | LNK1104: LibXL library not found    |

PDB warnings from third-party libs (Transformer, rxapi, etc.) are normal — note in the report but don't count as errors. If a config fails, include the error reason directly in the Status column.

Clean Up

After reporting, delete any temporary log files created during the build (e.g. msbuild_diag.log).

Reference Tables

For suffix meanings, toolset mappings, filter expressions, output conventions, and platform details → references/arx-config-guide.md. For MSBuild fallback detection → references/msbuild-detection.md.

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 面向 AutoCAD 插件开发者,解决 ARX/GRX/ZRX 项目编译这一明确且高频的刚需任务
  • 显著提升专业开发者的日常工作效率,具有高度实用价值
触发精准95/100

亮点

  • 触发词覆盖中英文,精准匹配用户表达习惯
  • 边界清晰,不易与其他 Skill 重叠
结构规范95/100

亮点

  • 文档结构完整,步骤清晰,包含端到端示例和决策树
  • frontmatter 完整,排版规范
执行可靠95/100

亮点

  • 工具来源明确,参数正确,覆盖主要异常场景
  • 并行/串行策略合理,用户确认机制完善
证据可验 (前四项均值)95/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。