Commands  ›   ›  Export J S O N

Export J S O N

writes to model Public API · not yet exposed

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

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

NameKindTypeRequiredDefaultDescription
Elements selection Element yes Elements to export
"Select elements to export"

Returns

NameTypeDescription
JsonPathstringPath to the exported JSON file
ElementCountintNumber of elements exported

What you'll see in the chat

on start
Exporting selected elements to JSON...
Preparing MEP export...
thinking
Picking export base point...
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 commandsImportCommand
Pillar