get_categories
Retrieve all category information from a Revit model to access and organize building element classifications for analysis and documentation.
Instructions
获取 Revit 模型中的所有类别
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:117-123 (registration)Registration of the 'get_categories' tool in the ListToolsRequestSchema handler, including its schema (empty input).name: "get_categories", description: "获取 Revit 模型中的所有类别", inputSchema: { type: "object", properties: {} } }, {
- src/index.ts:119-122 (schema)Input schema for get_categories tool: empty object.inputSchema: { type: "object", properties: {} }
- src/revitService.ts:112-119 (handler)Primary handler for 'get_categories' tool: calls socket client and handles errors.async getCategories(): Promise<any[]> { try { return await this.client.getCategories(); } catch (error) { console.error('[RevitService] 获取类别失败:', error); throw error; } }
- src/revitSocketClient.ts:195-198 (helper)Helper function that sends the actual 'get_categories' command to the Revit socket server.public async getCategories(): Promise<any[]> { const response = await this.sendRequest<any[]>('get_categories', {}); return response; }