Commands › › Export J S O N
Export J S O N
Coming soon
Before you run this
Active document must be open. User must select elements and pick a base point. At least one MEP curve or FamilyInstance must be selected.
After it runs
A JSON file is written to the user-chosen path with full element data. A companion .export.log.txt file is also written alongside.
When to use this
- User wants to export MEP model data for external analysis or import.
- User needs a JSON snapshot of selected elements with connector data.
- User wants a 3D graph representation of MEP routing.
Don't use this when
Exporting entire models (select specific elements first). Exporting to IFC, DWG, or other Revit-native formats. Importing JSON back into Revit (use ImportCommand instead).
Inputs
| Name | Kind | Type | Required | Default | Description |
|---|---|---|---|---|---|
Elements |
selection | Element |
yes | — | Elements to export "Select elements to export" |
Returns
| Name | Type | Description |
|---|---|---|
JsonPath | string | Path to the exported JSON file |
ElementCount | int | Number of elements exported |
What you'll see in the chat
on start
Exporting selected elements to JSON...
Preparing MEP export...
Preparing MEP export...
thinking
Picking export base point...
Selecting elements to export...
Extracting geometry and connectors...
Building 3D graph...
Serializing to JSON...
Selecting elements to export...
Extracting geometry and connectors...
Building 3D graph...
Serializing to JSON...
on success
Exported {count} elements to JSON successfully.
on failure
Export failed: {error}
REST API
Not yet exposed
This command does not carry a [RestApi] attribute today. Once tagged, this section will auto-populate with:
POST /api/v1/commands/export_json- Request body schema (from
[RestApiParam]) - Response schema (from
[RestApiResponse]) - curl / JS / Python code examples
Keywords & intent patterns
export json · export elements · export mep · json export · export connectors · export geometry
Patterns: export * json · export * elements · json * export · export * mep
Related
| Related commands | ImportCommand |
|---|---|
| Pillar |