Skip to content

MEP

Read, create and connect MEP elements, routes and systems, and work with electrical circuits, devices and panels.

Access this group through api.tapir.mep.

Commands

For exceptions shared by Unified API commands, see error handling.

check_mep_port_connectability

check_mep_port_connectability(
    port_pairs: list[MEPPortPair],
) -> list[ErrorItem | MEPPortConnectability]

Checks whether MEP ports can be connected to other ports, for the given pairs of ports. Archicad 28 and later check the physical connection. Available from Archicad 27.

Parameters:

  • port_pairs (list[MEPPortPair]) –

    The pairs of ports to check.

Returns:

connect_mep_elements

connect_mep_elements(
    connections_data: list[MEPConnectionData],
) -> list[ErrorItem | MEPConnectionResult]

Connects MEP routing elements to other MEP elements or routes. Merges routes, splits routes or creates branch elements as needed. The first or last node of the 'connectToId' route must lie exactly on the 'routingElementId' route, so for a tee pass the main route as 'routingElementId' and the branch as 'connectToId'. A failed connection says which condition is not met. Archicad 27 does not report the merged, split or created elements. Available from Archicad 27.

Parameters:

Returns:

connect_to_electrical_circuits

connect_to_electrical_circuits(
    connections_data: list[ElectricalCircuitConnectionData],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Connects electrical devices, or panels as sub-panels, to electrical circuits. Available from Archicad 30.

Parameters:

  • connections_data (list[ElectricalCircuitConnectionData]) –

    Array of electrical devices or panels and the circuits to connect them to. A panel connected to a circuit becomes a sub-panel of the panel of that circuit.

Returns:

create_electrical_circuits

create_electrical_circuits(
    electrical_circuits_data: list[ElectricalCircuitData],
) -> list[ElementIdArrayItem | ErrorItem]

Adds new circuits to electrical panels, optionally with the given description, voltage, wiring type and used phases. Available from Archicad 30.

Parameters:

  • electrical_circuits_data (list[ElectricalCircuitData]) –

    Array of data to create electrical circuits. Each item adds one circuit to the given panel.

Returns:

create_electrical_devices

create_electrical_devices(
    electrical_devices_data: list[ElectricalDeviceData],
) -> list[ElementIdArrayItem | ErrorItem]

Places electrical devices with the default settings of the Electrical Device tool, optionally with the given library part, size, rotation, mirroring, apparent power and load classification, and connects them to a circuit. Available from Archicad 30.

Parameters:

  • electrical_devices_data (list[ElectricalDeviceData]) –

    Array of data to create electrical devices. The fields that are not given are taken from the default settings of the Electrical Device tool.

Returns:

create_electrical_panels

create_electrical_panels(
    electrical_panels_data: list[ElectricalPanelData],
) -> list[ElementIdArrayItem | ErrorItem]

Places electrical panels with the default settings of the Electrical Panel tool, optionally with the given library part, size, rotation, mirroring, panel name and circuit naming. Available from Archicad 30.

Parameters:

  • electrical_panels_data (list[ElectricalPanelData]) –

    Array of data to create electrical panels. The fields that are not given are taken from the default settings of the Electrical Panel tool.

Returns:

create_mep_elements

create_mep_elements(
    elements_data: list[MEPElementData],
) -> list[ElementIdArrayItem | ErrorItem]

Creates MEP elements (Terminal, Accessory, Equipment or Fitting) at the given positions, optionally with another library part, size (from Archicad 30), MEP system, port sizes and shapes and a changed insulation, which apply only to what is placed. Available from Archicad 28.

Parameters:

  • elements_data (list[MEPElementData]) –

    Array of data to create MEP elements.

Returns:

create_mep_flexible_segments

create_mep_flexible_segments(
    flexible_segments_data: list[
        MEPFlexibleSegmentCreationData
    ],
) -> list[ElementIdArrayItem | ErrorItem]

Creates MEP flexible segments through the given control points, or along a polyline of alternating line and spline parts (Piping), with the current settings of the Flexible Segment tool of their domain, optionally with the orientation (control points) or direction (polyline) at both ends. Available from Archicad 28.

Parameters:

  • flexible_segments_data (list[MEPFlexibleSegmentCreationData]) –

    Array of data to place MEP flexible segments with the current settings of the Flexible Segment tool of their domain (see GetMEPToolDefaults).

Returns:

create_mep_physical_systems

create_mep_physical_systems(
    physical_systems_data: list[MEPPhysicalSystemData],
) -> list[ErrorItem | MEPPhysicalSystemIdArrayItem]

Creates physical systems in MEP system groups, optionally with a root element and an MEP system as their category. Available from Archicad 29.

Parameters:

Returns:

create_mep_routing_elements

create_mep_routing_elements(
    routing_elements_data: list[MEPRoutingElementData],
) -> list[ElementIdArrayItem | ErrorItem]

Creates MEP routing elements (duct, pipe or cable carrier routes) along the given polylines with optional cross section data (shape, size, preference table and reference id), MEP system and layer (also set on the segments, elbows and transitions), and optional elbow and transition defaults (preference tables and elbow radius factor, from Archicad 29) that apply only to what is placed. Available from Archicad 28.

Parameters:

Returns:

create_mep_system_groups

create_mep_system_groups(
    system_groups_data: list[MEPSystemGroupData],
) -> list[ErrorItem | MEPSystemGroupIdArrayItem]

Creates MEP system groups. Available from Archicad 29.

Parameters:

  • system_groups_data (list[MEPSystemGroupData]) –

    Array of data to create system groups.

Returns:

create_mep_take_offs

create_mep_take_offs(
    take_offs_data: list[MEPTakeOffCreationData],
) -> list[ElementIdArrayItem | ErrorItem]

Creates MEP take-offs on the given routing segments, at a distance from the beginning of the segment (not more than its length) and optionally rotated around its axis by a multiple of 90 degrees, with the current settings of the Take-Off tool of their domain (by default the domain of the segment's routing element), optionally with their length and without insulation, which apply only to what is created. Archicad only has Ventilation take-offs. Available from Archicad 28.

Parameters:

  • take_offs_data (list[MEPTakeOffCreationData]) –

    Array of data to create MEP take-offs on routing segments with the current settings of the Take-Off tool of their domain.

Returns:

delete_electrical_circuits

delete_electrical_circuits(
    electrical_circuits: list[ElementIdArrayItem],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Removes electrical circuits from their panels. Available from Archicad 30.

Parameters:

  • electrical_circuits (list[ElementIdArrayItem]) –

    The circuits to remove from their panels.

Returns:

delete_mep_physical_systems

delete_mep_physical_systems(
    physical_systems: list[MEPPhysicalSystemIdArrayItem],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Removes MEP physical systems from their system groups. Their member elements are not deleted. Available from Archicad 29.

Parameters:

  • physical_systems (list[MEPPhysicalSystemIdArrayItem]) –

    The physical systems to remove from their system groups. Their member elements are not deleted.

Returns:

get_electrical_circuits

get_electrical_circuits(
    elements: None | list[ElementIdArrayItem] = None,
    electrical_panels: None
    | list[ElementIdArrayItem] = None,
) -> list[ElectricalCircuitDetails | ErrorItem]

Gets the given electrical circuits, the circuits of the given panels, or every circuit of the project: name, description, owner panel, connected devices and panels, voltage, phases, wiring type, loads, voltage drop and estimated cable length. Available from Archicad 30.

Parameters:

  • elements (None | list[ElementIdArrayItem], default: None ) –

    Optional list of electrical circuits.

  • electrical_panels (None | list[ElementIdArrayItem], default: None ) –

    Optional list of electrical panels whose circuits are returned. When neither elements nor electricalPanels is given, every circuit of every electrical panel of the project is returned.

Returns:

get_electrical_devices

get_electrical_devices(
    elements: None | list[ElementIdArrayItem] = None,
) -> list[ElectricalDeviceDetails | ErrorItem]

Gets the electrical devices (lights, sockets and other consumers) of the project or the given ones: parent circuit, placement, apparent power, load classification, demand load and directly connected MEP elements. Available from Archicad 30.

Parameters:

  • elements (None | list[ElementIdArrayItem], default: None ) –

    Optional list of electrical devices. Every electrical device of the project is returned when it is not given.

Returns:

get_electrical_panels

get_electrical_panels(
    elements: None | list[ElementIdArrayItem] = None,
) -> list[ElectricalPanelDetails | ErrorItem]

Gets the electrical panels (distribution boards) of the project or the given ones: name, circuit naming, circuits, parent circuit, placement and the connected and demand loads in total and per phase. Available from Archicad 30.

Parameters:

  • elements (None | list[ElementIdArrayItem], default: None ) –

    Optional list of electrical panels. Every electrical panel of the project is returned when it is not given.

Returns:

get_electrical_project_settings

get_electrical_project_settings() -> (
    GetElectricalProjectSettingsResult
)

Gets the electrical project settings: the default voltage, the wiring types with their cross-sectional area and the load classifications with their demand factor. Available from Archicad 30.

Returns:

get_mep_distribution_systems

get_mep_distribution_systems(
    *, include_tree: None | bool = None
) -> GetMEPDistributionSystemsResult

Retrieves the MEP distribution systems of the project with their domain, MEP system attribute, member elements, physical systems (from Archicad 29) and optionally their tree: the elements from the root element on, each with its previous and next elements and the connecting ports. Available from Archicad 28.

Parameters:

  • include_tree (None | bool, default: None ) –

    Whether to return the tree of each system: its elements from the root element on, each with the element it is connected to on the way from the root. False when not given.

Returns:

get_mep_element_details

get_mep_element_details(
    elements: list[ElementIdArrayItem],
) -> list[ErrorItem | MEPElementDetails]

Retrieves the type-specific details of the given MEP elements: insulation thickness and routing segment of rigid segments, control points and polyline of flexible segments, radius factor, insulation thickness, preference table and routing node of elbows (from Archicad 29), angle, length and insulation thickness of branches, and offsets, wider and narrower ports, insulation thickness, routing node and (from Archicad 29) preference table of transitions; the width and height of flexible segments, and the anchor point, orientation, library part and (from Archicad 30) size of the elements ModifyMEPElements places, with the keys it writes them with. Available from Archicad 28.

Parameters:

Returns:

  • list[ErrorItem | MEPElementDetails] –

    The details of the given MEP elements, in the order of the input, or an error for an element that is not an MEP element, and in Archicad 28 for an elbow. A value that cannot be read is left out.

get_mep_elements

get_mep_elements(
    element_types: None | list[MEPElementType] = None,
    domains: None | list[MEPDomain] = None,
) -> list[MEPElement]

Retrieves the MEP (Mechanical, Electrical, Plumbing) elements of the project (every element the MEP API lists, and from Archicad 30 the electrical panels and devices), optionally filtered by type and domain. MEP elements are ordinary elements, so the generic element commands work on them as well (for example they can be deleted with the DeleteElements command). Available from Archicad 28.

Parameters:

  • element_types (None | list[MEPElementType], default: None ) –

    Optional filter for the MEP element types.

  • domains (None | list[MEPDomain], default: None ) –

    Optional filter for the MEP domains.

Returns:

get_mep_physical_systems_of_elements

get_mep_physical_systems_of_elements(
    elements: list[ElementIdArrayItem],
) -> list[MEPPhysicalSystemsOfElement]

Returns the physical systems each of the given MEP elements is part of. Available from Archicad 29.

Parameters:

Returns:

get_mep_ports

get_mep_ports(
    elements: list[ElementIdArrayItem],
) -> list[ErrorItem | MEPElementPorts]

Retrieves the ports of the given MEP elements including position, shape, size, connection status (Archicad 27: whether the port is connected, from Archicad 28: whether it is physically connected) and connection style (from Archicad 30), the flow direction of piping and ventilation ports (from Archicad 28), the nominal size of piping ports (from Archicad 30), and the outer diameter, wall thickness and flange size (Archicad 30) of piping and ventilation ports. Available from Archicad 27.

Parameters:

Returns:

get_mep_preference_tables

get_mep_preference_tables(
    domain: MEPPreferenceTableDomain,
    include_fitting_tables: None | bool = None,
) -> GetMEPPreferenceTablesResult

Gets the circular cross section preference tables (referenceId, diameter, wall thickness, description) and the reference set of the Piping or Ventilation domain, optionally with the elbow, branch and transition preference tables, plus the rectangular duct tables of the Ventilation domain or the segment tables of the CableCarrier domain. Each table has its name and whether it is editable; the segment tables also have their segmentation lengths from Archicad 29. The rows of the circular, elbow, branch and transition tables say whether they are valid, and the reference set and the angle set say which of their reference ids and angles are defined. The angle set and the transition tables are available from Archicad 29. Every row has its index in the table, as ModifyMEPPreferenceTables expects it. Available from Archicad 28.

Parameters:

  • domain (MEPPreferenceTableDomain) –

    The MEP domain of the segment preference tables.

  • include_fitting_tables (None | bool, default: None ) –

    Also return the elbow, branch and transition preference tables. Defaults to false. Ignored for the CableCarrier domain.

Returns:

get_mep_routing_elements

get_mep_routing_elements(
    elements: list[ElementIdArrayItem],
) -> list[ErrorItem | MEPRoutingElementDetails]

Retrieves the details of the given MEP routing elements: domain, MEP system, offset from the home story, branch preference table, the ports logically connected at the route's beginning and end, the floor plan display settings (cut plane position, floor plan display option, show projection and on-story visibility, from Archicad 29), route polyline, segments with cross section data (shape, size, preference table and reference id), begin and end nodes, anchor, reference line offsets, wall thickness, flange size, connection style, insulation thickness and rigid segments, and nodes with their incoming and outgoing segments, preferred transition placement, elbows and transitions, and the node positions with the key ModifyMEPRoutingElements writes them with. Each rigid segment, elbow and transition comes with the centres of its two drawn ends (beginPosition and endPosition: the positions of its ports, ordered along the route), which show where it is drawn even where that is off the polyline. Available from Archicad 28.

Parameters:

Returns:

get_mep_routing_parameters

get_mep_routing_parameters(
    elements: list[ElementIdArrayItem],
) -> list[ErrorItem | MEPRoutingParameters]

Gets the routing parameters of placed MEP elements: of a routing element its routing node parameters (preferred transition placement, elbow from Archicad 29, transition) and routing segment parameters (cross section, preference table, anchor, reference line offsets, wall thickness, flange size, connection style); of a routing node its elbow (from Archicad 29) and transition parameters; of a routing segment its rigid segment parameters (Archicad 28 only). Available from Archicad 28.

Parameters:

  • elements (list[ElementIdArrayItem]) –

    MEP routing elements, routing nodes or routing segments.

Returns:

get_mep_system_groups

get_mep_system_groups() -> list[
    ErrorItem | MEPSystemGroupDetails
]

Gets the MEP system groups of the project with their physical systems: name, editable flag, root element and MEP system. Available from Archicad 29.

Returns:

get_mep_tool_defaults

get_mep_tool_defaults(
    domains: None | list[MEPDomain] = None,
) -> GetMEPToolDefaultsResult

Retrieves the current settings of the MEP tools per domain, without changing them: the routing tool (MEP system, branch preference table, floor plan display settings from Archicad 29, and its segment, node, elbow (Archicad 27 and from Archicad 29) and transition defaults), its rigid segment and branch defaults, the flexible segment tool, the library part, insulation and port settings of the terminal, accessory, fitting and equipment tools, and from Archicad 30 the electrical panel tool with its number of circuit defaults. Archicad 27 gives fewer settings, and only the shape of the ports. Available from Archicad 27.

Parameters:

  • domains (None | list[MEPDomain], default: None ) –

    The domains to return the tool defaults of. All three when not given.

Returns:

modify_electrical_circuits

modify_electrical_circuits(
    electrical_circuits_data: list[
        ElectricalCircuitModificationData
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Modifies the description, voltage, wiring type and used phases of electrical circuits. Available from Archicad 30.

Parameters:

Returns:

modify_electrical_devices

modify_electrical_devices(
    electrical_devices_data: list[
        ElectricalDeviceModificationData
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Modifies the apparent power, load classification and placement (anchor point, orientation, rotation, mirroring, library part, size) of electrical devices. Available from Archicad 30.

Parameters:

Returns:

modify_electrical_panels

modify_electrical_panels(
    electrical_panels_data: list[
        ElectricalPanelModificationData
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Modifies the name, circuit naming and placement (anchor point, orientation, rotation, mirroring, library part, size) of electrical panels. Available from Archicad 30.

Parameters:

Returns:

modify_electrical_project_settings

modify_electrical_project_settings(
    voltage: None | float = None,
    clear_wiring_types: None | bool = None,
    clear_load_classifications: None | bool = None,
    wiring_types_to_add: None
    | list[ElectricalWiringType] = None,
    wiring_types_to_remove: None | list[str] = None,
    load_classifications_to_add: None
    | list[ElectricalLoadClassification] = None,
    load_classifications_to_remove: None | list[str] = None,
) -> SuccessfulExecutionResult

Modifies the electrical project settings: sets the default voltage and clears, adds or removes wiring types and load classifications. Available from Archicad 30.

Parameters:

  • voltage (None | float, default: None ) –
  • clear_wiring_types (None | bool, default: None ) –

    If true, every wiring type is removed before wiringTypesToAdd is applied; wiringTypesToRemove is then not needed and is ignored.

  • clear_load_classifications (None | bool, default: None ) –

    If true, every load classification is removed before loadClassificationsToAdd is applied; loadClassificationsToRemove is then not needed and is ignored.

  • wiring_types_to_add (None | list[ElectricalWiringType], default: None ) –
  • wiring_types_to_remove (None | list[str], default: None ) –

    The names of the wiring types to remove.

  • load_classifications_to_add (None | list[ElectricalLoadClassification], default: None ) –
  • load_classifications_to_remove (None | list[str], default: None ) –

    The names of the load classifications to remove.

Returns:

modify_mep_elements

modify_mep_elements(
    elements: list[MEPElementModificationData],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Modifies placed MEP elements: the anchor point, orientation and library part of terminals, accessories, equipment, fittings and flexible segments, their size along the local x and y axes (from Archicad 30), the control points, polyline (Piping, from Archicad 28), and width and height of flexible segments. Only the given fields are changed, in one undo step with one execution result per element; an item with a field that does not fit its element changes nothing. Archicad reports a 'libraryPartId' it does not find, or a library part that keeps its own size, only after the item's other changes were made, so that item's error says which changes stayed. The size of the connections is set with ModifyMEPPorts. Available from Archicad 27.

Parameters:

  • elements (list[MEPElementModificationData]) –

    The MEP elements to modify, each with the fields to change. Only the given fields are changed.

Returns:

modify_mep_physical_systems

modify_mep_physical_systems(
    physical_systems_data: list[
        MEPPhysicalSystemModificationData
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Modifies MEP physical systems: name, root element and the MEP system used as their category. Only the given fields are changed. Available from Archicad 29.

Parameters:

Returns:

modify_mep_ports

modify_mep_ports(
    ports_data: list[MEPPortModificationData],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Modifies the given MEP ports (as returned by GetMEPPorts): shape, width, height (not of piping ports), connection style (from Archicad 30), the flow direction of piping and ventilation ports, and the outer diameter and nominal size (from Archicad 30) of piping ports. Only the given fields are changed. Available from Archicad 28.

Parameters:

  • ports_data (list[MEPPortModificationData]) –

    Array of data to modify MEP ports. Only provided fields are changed.

Returns:

modify_mep_preference_tables

modify_mep_preference_tables(
    domain: MEPPreferenceTableDomain,
    tables_to_add: None
    | list[MEPPreferenceTableAddition] = None,
    tables: None | list[MEPPreferenceTableChange] = None,
    tables_to_delete: None | list[str] = None,
    reference_ids_to_delete: None | list[int] = None,
    angles_to_delete: None | list[float] = None,
    *,
    angles_to_add: None | list[float] = None,
) -> ModifyMEPPreferenceTablesResult

Modifies the MEP preference tables of a domain, in the shape GetMEPPreferenceTables returns them: adds tables, changes their names, segmentation lengths (from Archicad 29) and row values and descriptions, deletes or empties rows, adds rows to the rectangular duct and cable carrier tables, deletes tables, deletes reference ids from the reference set, and adds and deletes angles of the angle set (from Archicad 29). Each table is changed in one undoable step. Available from Archicad 28.

Parameters:

  • domain (MEPPreferenceTableDomain) –

    The MEP domain of the segment preference tables.

  • tables_to_add (None | list[MEPPreferenceTableAddition], default: None ) –

    New tables to add to the domain, before the other changes.

  • tables (None | list[MEPPreferenceTableChange], default: None ) –

    The tables of the domain to change, in the shape GetMEPPreferenceTables returns them. Each table is changed in one undoable step.

  • tables_to_delete (None | list[str], default: None ) –

    The guids of the tables of the domain to delete, after the other table changes.

  • reference_ids_to_delete (None | list[int], default: None ) –

    Reference ids to delete from the reference set of the Piping or Ventilation domain.

  • angles_to_delete (None | list[float], default: None ) –

    Angles to delete from the angle set of the Piping or Ventilation domain, as GetMEPPreferenceTables returns them. Available from Archicad 29.

  • angles_to_add (None | list[float], default: None ) –

    Angles in degrees, between 1 and 90, to add to the angle set of the Piping or Ventilation domain, so that elbow and branch rows can have them. They are added before the tables are changed. Available from Archicad 29.

Returns:

modify_mep_routing_elements

modify_mep_routing_elements(
    routing_elements_data: list[
        MEPRoutingElementModificationData
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Modifies the given MEP routing elements: MEP system, branch preference table, floor plan display settings (cut plane position, floor plan display option, show projection and on- story visibility, from Archicad 29), cross section data (shape, size, preference table and reference id), anchor, reference line offsets, wall thickness, flange size and connection style of all segments, preferred transition placement of all nodes, insulation thickness of the whole route (segments, elbows and transitions), node positions, and the home story of the route and its parts (floorIndex), keeping the nodes where they are. Available from Archicad 28.

Parameters:

Returns:

modify_mep_system_groups

modify_mep_system_groups(
    system_groups_data: list[
        MEPSystemGroupModificationData
    ],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Renames MEP system groups. Available from Archicad 29.

Parameters:

Returns:

rebuild_mep_routing_elements

rebuild_mep_routing_elements(
    routing_elements: list[MEPRoutingElementRebuildData],
) -> list[ErrorItem | RebuiltMEPRoutingElement]

Rebuilds the given MEP routing elements along new node coordinates or along their current polyline: this adds or removes nodes (bend points), leaves out with removeCollinearNodes the nodes where the route goes straight on (as Purge Unused MEP Nodes does), and with resetCustomSegments resets customized segments and nodes (as Reset Custom Segments does). Each route is deleted and placed again from its own settings, under its own guid when Archicad allows it and else under a new one, which the response gives. Every segment, node and fitting gets a new guid (see guidMap); labels, dimensions and other things attached to them are not carried over. Use ModifyMEPRoutingElements nodePositions instead when the node count stays the same: it keeps every guid. Kept: each new segment gets the size (shape, width, height, reference id) and the preference table, anchor, reference line offsets, wall thickness, connection style, flange size and rigid segment settings (insulation) of the old segment it lies along most, and each new node the transition placement and elbow and transition settings of the old node at its position (a new segment along old segments of different sizes gets those of the one it overlaps most, with a warning; a segment along no old segment, such as a new end, those of its nearest neighbour along the route); the route's layer, home story, renovation status (given to every part), element ID, classifications and the property values set on it; and its connections at both ends. Not kept: the guids of the segments, rigid segments, nodes, elbows and transitions; the element IDs, classifications, property values and own renovation status of single parts; and the route's design option, which is not set. Refused, with nothing changed: a route that ends at a tee (Branch) or has a take-off on a segment, which Archicad deletes with the route. What could not be carried over is listed in the item's warnings. Nothing is changed when the nodes make a segment without length or the route cannot be deleted. Available from Archicad 28.

Parameters:

  • routing_elements (list[MEPRoutingElementRebuildData]) –

    The routing elements to rebuild. Each is deleted and placed again. Every segment, node and fitting gets a new guid (see guidMap); labels, dimensions and other things attached to them are not carried over. Use ModifyMEPRoutingElements nodePositions instead when the node count stays the same: it keeps every guid.

Returns:

set_mep_routing_parameters

set_mep_routing_parameters(
    elements: list[ElementMEPRoutingParameters],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Sets the routing parameters of placed MEP elements: the routing segment parameters (cross section and preference table) and, from Archicad 29, the routing node parameters (elbow radius factor and preference table, transition preference table) of routing elements, and the elbow and transition parameters of routing nodes (from Archicad 29). Only the given keys are changed, with one execution result per element. A changed preference table is also set on each of the route's segments and nodes and injected into them, because Archicad 29 can otherwise keep the old one; the item fails if they still report the old table. Available from Archicad 28.

Parameters:

  • elements (list[ElementMEPRoutingParameters]) –

    The routing parameters to change. Only the given keys are changed. An item gives either routingNodeParameters and/or routingSegmentParameters for a routing element, or elbowParameters and/or transitionParameters for a routing node.

Returns:

transfer_mep_settings

transfer_mep_settings(
    source_element_id: ElementId,
    target_elements: list[ElementIdArrayItem],
) -> list[
    FailedExecutionResult | SuccessfulExecutionResult
]

Picks up the settings of an MEP element and injects them into other MEP elements of the same type and domain, like Archicad's pick up and inject parameters. Works for routing elements, terminals, accessories, equipment, fittings, flexible segments, branches, take-offs and (from Archicad 30) electrical panels and devices. Each target is changed in its own undoable step. Available from Archicad 28.

Parameters:

  • source_element_id (ElementId) –

    The MEP element to pick up the settings from: a routing element, terminal, accessory, equipment, fitting, flexible segment, branch, take-off, or (from Archicad 30) electrical panel or device.

  • target_elements (list[ElementIdArrayItem]) –

    The MEP elements to inject the settings into. Each must be of the type and domain of the source element.

Returns:

These include the parameter and result models used inside the client. The command signatures above show what to pass and what is returned.