Batch room height

From shuotao/REVIT_MCP_study · View interactive version

Batch room height is an AI agent skill from the GitHub repository shuotao/REVIT_MCP_study. 批次調整房間上限高度:依房間名稱或用途分組,指定目標高度(mm)後一次套用到所有符合的 Room(Upper Limit + Limit Offset),不動樓層。觸發條件:使用者提到房間高度、房高、room height、upper limit、limit offset、批次房高、統一房高、ceiling height、room top。

How to use this skill

Skill file

批次修改房間上限高度

Prerequisites

Workflow

步驟 1:盤點樓層與房間

依使用者描述的範圍呼叫:

整理成「依 Name / Department 分組」的表格:

| 分組(Name) | 樓層 | 房間數 | 目前 Upper Level | 目前 Limit Offset (mm) |

|---|---|---|---|---|

| 居室 | 2F | 8 | 2F | 3000 |

| 浴室 | 2F | 3 | 2F | 2400 |

| 走廊 | 2F | 2 | 3F | 0 |

| ... | ... | ... | ... | ... |

步驟 2:使用者確認

將表格展示給使用者,詢問:

必須等使用者明確回覆後才進入步驟 3。

步驟 3:執行批次修改

呼叫 batch_set_room_height,傳入:

{
  "groups": [
    { "nameMatch": "居室", "heightMm": 3000 },
    { "nameMatch": "浴室", "heightMm": 2400 },
    { "nameMatch": "走廊", "heightMm": 2800, "upperLevelName": "3F" }
  ],
  "levelName": "2F",
  "matchField": "name"
}

步驟 4:確認結果

讀取回傳:

提示使用者:

工具

| 工具名稱 | 用途 |

|---------|------|

| get_all_levels | 列出專案所有樓層(供使用者挑選修改範圍) |

| get_rooms_by_level | 取得指定樓層的 Room 清單與基本參數 |

| batch_set_room_height | 依分組批次寫入 Room 的 Upper Limit + Limit Offset |

注意事項

Reference

詳見 domain/room-height-limit.md(房高參數概念、法規建議值、常見誤區)。

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.