Commands  ›   ›  Import

Import

writes to model Public API · not yet exposed

Coming soon

Before you run this

Active document must be open. A valid JSON export file must exist. Required pipe/duct/tray types must be loaded in the model. At least one level must exist in the document.

After it runs

MEP curves, fittings, and family blocks are created in the document. A companion .import.log.txt file is written alongside the JSON file. Smart mapping and family export files are created for debugging.

When to use this

Don't use this when

Importing only radiators (use ImportRadCommand). Importing IFC, DWG, or native Revit formats. Exporting from Revit (use ExportJSON).

Inputs

NameKindTypeRequiredDefaultDescription
heightMode config string no Height mode: 'smart' (level-based) or 'json' (hardcoded Z)

Returns

NameTypeDescription
CurvesCreatedintNumber of MEP curves created
ElbowsintNumber of elbows placed
FamiliesPlacedintNumber of family blocks placed

What you'll see in the chat

on start
Importing MEP layout from JSON...
Starting MEP import workflow...
thinking
Parsing JSON file...
Resolving levels and MEP types...
Building node coordinates...
Creating MEP curves...
Placing elbows and fittings...
Importing family blocks...
Finalizing import...
on success
Import complete — {curvesCreated} curves, {elbows} elbows, {familiesPlaced} families placed.
on failure
Import 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/import
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

import json · import mep · json import · import pipes · import ducts · import layout
Patterns: import * json · import * mep · json * import · import * layout

Related commandsExportJSON · ImportRadCommand
Pillar