0 EINSUser manual
0 EINSE&MJunction Box

Turn conduit Type Names into service values, transfer them to Junction Boxes, then create and combine Text Notes in Revit.

One service code from model to drawing
01
Type Name to Text

Extract the service code

Read the Type Name of each Conduit and write the service code to its instance text parameter.

Configure · Shift + click

  1. Choose Conduits and the Families you want to process.
  2. Enter *_<TEXT>. Preview G.I. Conduit_25mm_fl → FL. Select the writable instance target, such as TEXT, and click Save.

See the settings window and controls ↓

Run · click

  1. Click the button. Choose Visible in Current View or Manual Selection.
  2. For Manual Selection, use preselected Conduits or pick them in Revit and click Finish.

Check the result

In the report, find FL in the resulting value. A name that does not match the pattern or an existing value protected by your settings can cause a skip.

Revit recording for Type Name to Text
The report shows FL in both Extracted and Result.
Example
G.I. Conduit_25mm_flTEXT = FL

Configuration Window

Rendered from the tool’s current window layout with example values. Family names, parameter names and Text Note Types depend on your Revit project.

Categories, Families, Extraction and Target instance parameter
Categories, Families, Extraction and Target instance parameter

Categories / Families

Categories
Choose the model categories whose Type Names are read. For this workflow, start with Conduits.
Select All
Checks every available Category.
Select None
Clears all Category checkboxes. Then check the categories you need.
Families
Choose which Families in the enabled categories to process. If a category has only one Family, its row is locked on. Clear the Category to exclude it.

Extraction

Example Type Name · dropdown
Loads a Type Name from the selected Families into the example field below.
Example Type Name · input
Type or edit a sample freely to test the rule. It leaves the model’s Type Names as they are.
Custom pattern
Enter the extraction rule. * matches any text and <TEXT> marks the part to keep. *_<TEXT> reads the part after the last underscore. <TEXT>-* reads the part before the first hyphen.
Preview
The dotted frame shows the trimmed uppercase result, a no-match message or a pattern error. For example, G.I. Conduit_25mm_fl → FL.

Target instance parameter / actions

Target instance parameter
Choose a writable Text instance parameter, such as TEXT. A count like (8/10) means only eight of ten configured instances have that writable parameter.
Replace existing value
Checked allows writes into a nonempty parameter. Leave it clear to protect existing values.
SAVE
Stores this command’s configuration for the current project. A valid pattern and a selected target are needed. Run the ribbon command separately to write model values.
CANCEL
Closes the window and discards the edits from this session.
02
Transfer Conduit Text

Pass it to the Junction Box

Read the service from nearby Conduits and write it to the selected Junction Boxes.

Configure · Shift + click

  1. Select the Category and Families used by your Junction Boxes, for example Conduit Fittings or Electrical Fixtures.
  2. Enable Use Type Name to Text output or choose the source parameter yourself. Choose a writable Junction Box target. Start with the default 25 mm scan offset and leave Replace Existing Value off for the first run. Save.

See the settings window and controls ↓

Run · click

  1. Preselect the Junction Boxes, then click the button. You can also run it first and choose picking, window selection or all matching visible Boxes.

Check the result

Check that the Box now reads FL. If nearby Conduits contain different services, that Box is skipped. Open the report to see which Conduits were detected.

Revit recording for Transfer Conduit Text
Select the highlighted Junction Box. The tool searches nearby Conduits.
Example
Conduit · TEXT = FLJunction Box · TEXT = FL

Configuration Window

Rendered from the tool’s current window layout with example values. Family names, parameter names and Text Note Types depend on your Revit project.

Junction Boxes to Process and Conduit Service Transfer
Junction Boxes to Process and Conduit Service Transfer

Junction Boxes to process

Junction Box model categories
Choose the categories used by your Junction Boxes, such as Conduit Fittings or Electrical Fixtures.
Families
Check the specific Junction Box Families to process in each enabled category.
Select All
Checks all Family rows in the enabled categories.
Select None
Clears the Family rows in the enabled categories.
Type name contains (optional)
Narrows the selected Families to Types whose name contains the text, ignoring letter case. An empty field accepts any Type within those Families.

Conduit detection

Scanning offset (mm)
Expands the Box’s bounding box by this distance on each side. Start with 25 mm. Set a smaller value if an unrelated neighboring Conduit is picked up.
Conduit scanning scope
Entire Host Model searches host-model Conduits even outside the active view. Current View Only limits scanning to Conduits in the active view.
Validate full centerline and radius
Adds a geometry check using the full Conduit centerline and its outside radius. It helps reject diagonal runs whose bounding boxes overlap without the Conduit passing near the Box.

Conduit service transfer

Use Type Name to Text output
Uses the parameter selected as the target in step 01. Checking it locks the source dropdown to that name.
Source Parameter in Conduit
When upstream linking is off, choose which Conduit text parameter to read.
Target Parameter in Junction Box
Choose the writable Junction Box text parameter that receives the common service. Step 03 should read this parameter.
Replace existing value
Checked allows replacement when a Box already has a value. Leave it clear to fill blanks only.
Sample Junction Box Preview
Shows the sample Box ID and its current → proposed value. It can also report a scan problem or which sampled Families lack the target.
SAVE
Stores this command’s settings for the current project. Click the ribbon button afterward to transfer values.
CANCEL
Closes the window and discards the edits from this session.
03
Generate Junction Box Annotation

Create the drawing note

Create a Text Note with a leader for each selected Junction Box in a Plan, Section or Elevation.

Configure · Shift + click

  1. Choose the Junction Box Families. Enable Use Transfer output or point to the same Junction Box parameter you filled in step 02.
  2. Choose the Text Note Type, review the template and sample, and set placement. Save.

See the settings window and controls ↓

Run · click

  1. Open your drawing view, select matching Junction Boxes and click the button. You can also pick or window-select Boxes after clicking.
  2. For Manual placement, pick the top of the note column once.

Check the result

Compare the service, diameter, signed elevation and leader with the model. Diameter comes from detected Conduits in the view. B.L. and M.L. both use the Family Insertion Point relative to the Project Base Point.

Revit recording for Generate Junction Box Annotation
A Text Note in the Section points back to its Junction Box.
Example
1 no. JUNCTION BOX AT B.L.+2.650 WITH 25MM CONDUIT FOR FL

Configuration Window

Rendered from the tool’s current window layout with example values. Family names, parameter names and Text Note Types depend on your Revit project.

Junction Boxes, Conduit Detection and Text Note settings
Junction Boxes, Conduit Detection and Text Note settings

Junction Boxes / Conduit Detection

Junction Box model categories
Choose the categories used by the Junction Boxes you want to annotate.
Families
Choose the eligible Families from the current view. If an enabled Category has only one visible Family, that Family is selected automatically.
Type name contains (optional)
Use a substring of the Type Name to narrow the boxes. Leave empty to accept all Types under the selected Families.
Scanning offset (mm)
Expands each Box’s detection bounds when looking for Conduits in the active view. The detected Conduits supply the diameter for the Text Note.
Validate full centerline and radius
Adds a check of the entire Conduit centerline and outside radius to reject false overlaps.

Text Note

Text Note template and sample preview in the Generate window
Text Note template and sample preview in the Generate window
Use Transfer output
Uses the Junction Box target set in step 02. Checking it locks the service parameter field to that name.
Junction Box service parameter
When upstream linking is off, type the exact name of the Junction Box text parameter that supplies the service.
Text Note Type
Select an existing Text Note Type in the project. Its Revit settings control formatting such as font and text size.
Insertion point label
Choose B.L. or M.L. for the label next to the elevation. Both use the same Family Insertion Point relative to the Project Base Point.
Decimal places (metres)
Controls elevation precision from 0 to 6 decimal places. With 3, a 2.4 m elevation displays as +2.400.
Maximum Text Note width (model mm)
Sets the wrap width in model millimetres. Revit checks the allowed range for the selected Text Note Type at the active view scale.
Annotation template
Controls wording, field order and line breaks. Include {Quantity}, {BoxDescription}, {LevelType}, {Elevation}, {ConduitDescription} and {Service}, plus uppercase AT, WITH and FOR. Keep FOR {Service} at the end for Combine.
Text Note Preview (Sample)
Shows sample note text using the chosen label, precision and template. It uses fixed sample data to show wording.

Graphics

Graphics controls in the Generate window
Graphics controls in the Generate window
Arc Leaders
Checked creates curved leaders. Clear it for straight leaders.
Left Attachment
Sets the height of any leader attached on the left side of the note: TopLine, Midpoint or BottomLine.
Right Attachment
Sets the same attachment height independently for leaders on the right side: TopLine, Midpoint or BottomLine.
Horizontal Align
In Automatic mode, aligns note text Left, Center or Right. Manual mode chooses Left or Right to suit the column and leader direction.
Vertical Align
In Automatic mode, anchors the note at Top, Middle or Bottom. Manual columns use Top alignment.
Keep Readable
Lets Revit keep rotated note text readable.

Placement

Placement controls in the Generate window, shown in Manual mode
Placement controls in the Generate window, shown in Manual mode
Placement
Automatic places new note heads using the offsets below. Manual asks you to pick the top of the note column once.
Horizontal offset (model mm)
In Automatic mode, moves a new note head horizontally from its leader target. Positive moves right in the view. Negative moves left.
Vertical offset (model mm)
In Automatic mode, moves a new note head vertically from its leader target. Positive moves up. Negative moves down.
Clear gap between notes (model mm)
In Manual mode, sets the extra blank space between notes in the column. Use a positive value.
Specify landing length
Available with Manual placement and straight leaders. Enables control of the short horizontal leader segment by the text.
Landing length (model mm)
Sets the horizontal segment length when Specify landing length is checked. A positive value sets the length. Zero leaves the standard leader geometry.

Report / actions

Show report after generation
Opens the results report after generation. Clear it for routine runs if you prefer to keep the drawing view clear.
Save
Stores the settings in the current project’s profile. To create the notes, run the ribbon command afterward.
Cancel
Closes the window and discards the edits from this session.
04
Combine Junction Box Annotations

Combine matching notes

Bring selected Text Notes with the same service together. Ordinary Text Notes and generated notes both qualify.

Combine runs directly. It has no Configuration Window.

Run · click

  1. Open a Plan or Section. Preselect at least two Text Notes and click the button. Alternatively, click first and choose Pick Text Notes (then Finish) or Window Selection (drag from right to left).
  2. Make sure every selected note has the same non-empty service after its final FOR, such as FOR FL. A missing or different service skips the whole selection with a warning.

Check the result

Matching descriptions with no. or nos. quantities add together. Different descriptions stay on separate lines. Leader endpoints carry over. Notes merge within each owning view. The command finishes without a report.

Revit recording for Combine Junction Box Annotations
Two FL entries at different elevations share one Text Note with two leaders.
Example
1 no. JUNCTION BOX FOR FL + 1 no. JUNCTION BOX FOR FL2 nos. JUNCTION BOX FOR FL
RevitpyRevit

Install the add-in for your Revit version, then load an extension you already have on your computer.

C:\RevitToolsDirectory to add
0 EINS.extension
0 EINS.tab
Example hierarchy in File Explorer
01

Download the installer

Close Revit. On the official GitHub Releases page, choose a stable release that supports your Revit version and expand Assets.

For a personal install, download and run pyRevit_<version>_signed.exe. For an IT-managed, all-users install, use the admin installer with administrator access. The CLI-only installer supplies command-line tools.

Open Revit after the installer finishes. Look for the pyRevit tab.

If GitHub is unavailable on your company network, ask IT for the pyRevit installer that supports your Revit version. Use the steps below once you have it.

pyRevit_<version>_signed.exeCurrent user
pyRevit_<version>_admin_signed.exeAll users · admin access
Typical files under Assets
02

Check the folder structure

If your extension came in a ZIP, extract it first. Keep the .extension folder intact with its .tab folder and any shared files inside it.

Create or choose a permanent parent folder. The example uses C:\RevitTools, with 0 EINS.extension directly inside. Use your own extension folder name and path as needed.

C:\RevitToolsDirectory to add
0 EINS.extension
0 EINS.tab
Example hierarchy in File Explorer
03

Add the parent directory

In Revit, open pyRevit → Settings and find Custom Extension Directories, usually under Advanced.

Add the parent directory, C:\RevitTools in this example. Use the folder that contains 0 EINS.extension. Save settings, then use pyRevit → Reload if the ribbon has yet to refresh. You can also restart Revit.

pyRevitSettingsAdvanced
Custom Extension DirectoriesC:\RevitTools
SaveReload
Settings path in Revit
04

Verify the ribbon

Look for the tab supplied by your extension. For these lessons, open 0 EINS → E&M and expand Junction Box.

The 0 EINS ribbon path in this guide assumes the distributed package keeps the E&M panel and Junction Box dropdown. Match the folder and tab names to your package.

If you see pyRevit but the extension tab is missing, check the registered directory and confirm the .tab folder sits directly inside the .extension folder. Then reload.

If the pyRevit tab itself is missing, check release support for your Revit year and consult the official installation guide.

0 EINSE&MJunction Box
Type Name to Text
Transfer Conduit Text
Generate Junction Box Annotation
Combine Junction Box Annotations
0 EINS → E&M → Junction Box