科研 Skill

Revit工作流自动化

revit-workflow

Plans and reviews safe Autodesk Revit, pyRevit, Revit API, and Dynamo workflows with transaction-safe scripting and verification plans. Use for Revit-specific model automation or review.

发布者 Codar安全审核通过v0.1.0更新于 2026-11-18

SKILL.md

Revit Workflow

Use this skill for Revit-specific automation and review. Keep general CAD/BIM strategy in cad-bim-automation; activate this skill when the task depends on Revit concepts, pyRevit, Dynamo, or the Revit API.

Start with the environment

Record what is known before proposing implementation:

  • Revit release and project type.
  • Host: Revit API add-in, pyRevit, Dynamo, external automation, or manual workflow.
  • Model scope: local, central/workshared, linked, cloud-hosted, family, or template.
  • Target categories, views, sheets, schedules, parameters, families, and element IDs when available.
  • Whether the operation is read-only or mutating.

Leave unknown values as UNKNOWN. Do not invent API members, parameter identifiers, units, or version-specific behavior.

Safety contract

  1. Prefer a read-only inventory or dry run before mutation.
  2. Never overwrite the only copy of a model, family, export, or generated schedule.
  3. Scope mutations to explicit element sets and report the proposed count first.
  4. Treat worksharing ownership, design options, groups, links, pinned elements, and read-only parameters as possible blockers.
  5. Use the host's supported transaction model for mutations; do not imply that partial writes are safe when the runtime cannot guarantee them.
  6. Separate Revit facts observed in the project from assumptions and external documentation.
  7. Require competent human review for regulated design conclusions.

Workflow

1. Define the invariant

State what must remain true after the operation: element count, unique IDs, parameter schema, sheet numbering, family placement, geometry, or another measurable condition.

2. Inventory

Produce a compact preflight table with target scope, candidate count, exclusions, blockers, and unknowns. For write operations, identify a reversible output or backup strategy.

3. Choose the smallest automation surface

Prefer the least complex surface that reliably satisfies the task:

  • Native Revit UI for one-off deterministic edits.
  • Dynamo for graph-friendly parameter/data transformations that benefit from visual inspection.
  • pyRevit for repeatable team tools and lightweight Python-driven workflows.
  • Revit API add-ins for compiled, maintainable integrations requiring deeper API control.

Do not claim one surface is universally superior.

4. Plan mutations

Describe selection/filter logic, validation gates, transaction boundaries, failure handling, and output logging before code or graph construction. For parameter writes, preserve storage type and unit semantics.

5. Verify

After execution, compare before/after counts and the invariant. Sample changed elements by stable identifiers where possible. Report skipped and failed elements separately from successful changes.

Output contract

For implementation plans, return:

  1. Environment and assumptions
  2. Preflight inventory
  3. Proposed workflow
  4. Mutation/transaction boundaries
  5. Verification and rollback
  6. Unknowns requiring confirmation

For reviews of existing scripts or graphs, prioritize data-loss risks, transaction correctness, version assumptions, element filtering, parameter/unit handling, and observable verification.

Boundaries

Do not present Autodesk API details as current unless they are verified against the relevant Revit release documentation or the user's inspected environment. Do not encode office-specific standards or jurisdictional rules as universal Revit behavior.

示例提示词

帮我写一个pyRevit脚本批量更新这些族的参数和明细表。

所属插件

建筑学与土木工程面向建筑与土木研究和设计:场地分析与方案设计、Revit/AutoCAD/Rhino-Grasshopper 与 OpenBIM-IFC、机电与结构协调、消防与无障碍、围护结构与日照能耗、造价与工程量,以及土木工程项目的进度、质量、安全、风险与 RFI 管理。

安装该插件会一并获得同领域的 44 个 Skill / MCP。

同插件的其他科研 Skill

常见问题

Revit工作流自动化能做什么?

Plans and reviews safe Autodesk Revit, pyRevit, Revit API, and Dynamo workflows with transaction-safe scripting and verification plans. Use for Revit-specific model automation or review。

如何安装Revit工作流自动化?

在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「Revit工作流自动化」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。

Revit工作流自动化需要哪些权限?

该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。

Revit工作流自动化经过官方审核吗?

是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。