Commands  ›   ›  Import Systems From Model

Import Systems From Model

writes to model Public API · not yet exposed

Coming soon

Before you run this

At least two project documents must be open in Revit. Active document must not be read-only. Source model must contain piping systems with routing preferences.

After it runs

Selected system type is created/updated in current document. All associated families are imported (overwriting if needed). Routing preferences are configured with the imported families.

When to use this

Don't use this when

Custom UI required for manual system/family browsing. AI path is JSON-first and dialog-free.

Inputs

NameKindTypeRequiredDefaultDescription
ImportFamilies config bool no true Import associated families
OverwriteParameters config bool no true Overwrite existing parameter values

Returns

NameTypeDescription
ImportedSystemPipingSystemTypeSystem that was imported/created
ImportedFamiliesList<FamilyImportInfo>Families that were imported
RoutingPreferencesSetboolWhether routing preferences were configured

Decision flow

check: openDocuments.count > 1 → continue
check: sourceDoc != targetDoc → continue
check: sourceSystems.count > 0 → showSystemList
check: selectedSystem.hasRoutingPreferences → importRoutingPreferences
resolve: transaction.success → showResults

What you'll see in the chat

on start
Preparing to migrate piping system from another model...
Setting up system import from source model...
thinking
Scanning open documents for source models...
Loading available piping systems...
Extracting routing preference families...
Importing system and configuring routing preferences...
on success
System "{ImportedSystem}" migrated successfully with {ImportedFamilies} families.
on failure
System migration 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_systems_from_model
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

migrate system · import system · copy system · transfer system · piping system · routing preferences · drainage system
Patterns: migrate * system * model · import * system * from · copy * system * from · transfer * routing * preferences

Related commandsImportFamiliesFromModelCommand · ListSystems
Pillar