VietPer.

A .NET publication · published by VietPer

← Back to VP_RevitAPI

Wire raster

Rewire circuits along a raster layout.

Ribbon location:
VP_MEP > Electrical
Command:
RewireCircuitRaster

1. Purpose

Redraws one circuit's wires in neat rows (top to bottom, left to right, 100mm row tolerance): the tool orders the loads, deletes the old wires, and rebuilds them. Use it when hand-drawn circuit wires look like a spiderweb on the plan.

2. Quick video (≤ 2 minutes)

[Video in production — follow the steps below for now.]

3. Steps

  1. Preselect one circuit (or an element on it); with nothing selected the command asks you to pick one circuit or one element of the target circuit. Stand on the plan that holds the circuit. [image 01: selecting the circuit to rewire]
  2. Click Wire raster in the VP_MEP tab, Electrical panel.
  3. The tool orders loads along the raster, deletes old wires, draws new ones, then reports how many wires were deleted and created. [image 02: circuit before and after rewiring]
  4. Every run writes a log file to the Desktop — on error, open the log at the path quoted in the message.

4. Real-world example

Circuit C-9 feeds 14 office lights, its hand-drawn wires crossing everywhere and unreadable for construction documents. Select C-9, run the command — 14 loads ordered by row, wires running cleanly row by row, "Deleted 14 old wires and created 14 wires." reported, drawings ready to issue.

5. Common errors

SymptomFix
"Cannot resolve exactly one circuit from picked element."The picked element sits on zero or several circuits — repick an element on exactly one circuit
"Circuit has fewer than two loads to reorder."Fewer than 2 loads means nothing to order — double-check it is the right circuit
"... completed with skipped pairs. ... Failed element ids: ..."A few load pairs could not be drawn (blocked positions) — note the reported ids and fix those pairs by hand
New wires nowhere to be seenWrong view (the command draws on the Active View) — open the plan holding the circuit, then rerun

6. See also

  • Copy circuit — copy the circuit first, as a way back before rewiring.
  • Merge circuits — merge loads first, then rewire everything at once.
  • Similar — quickly select same-zone lights before working a circuit.