03 - Defining Wires and Conduit Sizing
Purpose: This document explains how to define electrical connections (wires) between nodes, edit their properties, and how WirePlan Pro automatically determines conduit sizes.
Adding Wires
Electrical connections, or wires, are fundamental to any electrical plan. WirePlan Pro offers several ways to add and manage these connections.
Manually Adding Wires (Dragging)
The most direct way to add a wire is by manually creating a connection between two nodes on the canvas:
- Initiate Drag: Press and hold the left mouse button over a node on the canvas. This node becomes the starting point for the wire.
- Drag to Target: While holding the mouse button, drag the cursor towards the desired end node. A temporary line will indicate the potential connection.
- Release Over Node: Release the mouse button when the cursor is over a different valid node.
- Wire Creation: If the drag is successful, a directed wire connection is created between the start and end nodes. By default, one wire with the currently set "Default Cable OD" will be added to this connection.
- The application will add one wire to an existing connection if the connection is already defined. Otherwise, a new directed connection is established.
- A status message will confirm the addition of the wire.
Using Wiring Topologies (Star, Ring, Bus) and "Default Cable OD"
WirePlan Pro can automatically generate wiring based on common topologies: Star, Ring, or Bus.
- Select Topology: Choose the desired topology ("Star", "Ring", or "Bus") from the "Wiring Topology" dropdown in the control panel.
- Set Default Cable OD: Ensure the "Default Cable OD (in)" field in the control panel is set to the desired outer diameter for the wires that will be automatically added. This value must be a positive number.
- Calculate Topology:
- Star & Bus: Select a starting/hub node on the canvas first.
- Click the "Add Topology" button.
- Wire Addition: The application will calculate the optimal wiring based on the selected topology and the existing conduit path. For each connection in the calculated topology, one wire of the "Default Cable OD" will be added. If a wire of that OD already exists on a connection, its quantity will be incremented.
- The application status bar will provide feedback on the calculation and the number of wires added.
Selecting and Viewing Wiring Arrows
- Visual Representation: Defined wires are shown as directed arrows on the canvas between connected nodes. These arrows are green and stippled by default.
- Selection:
- Clicking near a wiring arrow will select it. The selected arrow will be highlighted (e.g., color change, increased width, solid line).
- The status bar will update to indicate which wire connection is selected and provide hints for editing or deleting.
- Hover Information: Hovering the mouse cursor over a wiring arrow will display information about its wires (ODs and quantities) and the total run length in the status bar.
Editing Wires (OD and Quantity)
You can modify the properties (Outer Diameter and Quantity) of wires for any defined connection using the Wire Editor Dialog.
- Select a Wire: Click on the wiring arrow on the canvas that represents the connection you wish to edit.
- Open Editor:
- Press the
Enter
key, OR - Right-click on the selected arrow and choose "Edit Wires" from the context menu.
- Press the
- Wire Editor Dialog: A dialog window will appear, titled with the names of the connected nodes (e.g., "Edit Wires: NodeA --> NodeB").
- The dialog displays a table of existing wires for that connection, showing "Cable OD (in)" and "Quantity" for each entry.
- Editing Entries:
- Modify Existing: Double-click on a cell in the table to edit its OD or quantity. Input validation ensures ODs and quantities are positive numbers. ODs are typically formatted to four decimal places.
- Add New OD: Click the "Add New OD" button. A new row will be added to the table with the "Default Cable OD" and a quantity of 1, which you can then edit.
- Delete Entry: Select a row in the table and click the "Delete Selected" button. A confirmation prompt will appear before deletion.
- Save Changes:
- After making your modifications, click the "Save" button.
- The application will validate the entries (e.g., no duplicate ODs, positive values).
- If valid, the wiring manager is updated with the new wire list for the connection.
- Conduit sizes for affected 2D segments and vertical runs will be automatically recalculated.
- The canvas will be redrawn to reflect any changes in conduit size annotations, and the total lengths display will be updated.
- Cancel: Click "Cancel" or press
Escape
to close the dialog without saving changes.
Deleting Wires
You can remove all wires associated with a specific directed connection.
- Select the Wire: Click on the wiring arrow on the canvas that you want to delete.
- Delete Action:
- Press the
Delete
orBackspace
key, OR - Right-click on the selected arrow and choose "Delete Wires" from the context menu.
- Press the
- Confirmation: A confirmation dialog will appear asking if you want to delete all wires for the selected connection.
- Deletion Process:
- If confirmed, the wiring manager updates the connection by setting its wire list to empty.
- The visual arrow representation on the canvas is deleted.
- The application state for the selected arrow is cleared.
- Conduit sizes for affected 2D segments and vertical runs are automatically recalculated.
- The canvas is redrawn, and total lengths are updated.
- A status message confirms the deletion.
If all wires are removed from a connection (either through the Wire Editor by saving an empty list or by the "Delete Wires" action), the corresponding arrow will be removed from the canvas.
How Conduit Sizing Works
WirePlan Pro automatically calculates the minimum required conduit trade size for both 2D segments on the plan and vertical runs associated with node elevations.
Overview of NEC Fill Percentages Used
The conduit sizing calculations adhere to National Electrical Code (NEC) Chapter 9, Table 1 fill percentages:
- 1 Wire: 53% fill allowed
- 2 Wires: 31% fill allowed
- More than 2 Wires: 40% fill allowed
The application calculates the total cross-sectional area of all wires passing through a conduit section. It then determines the minimum internal area the conduit must have based on the applicable fill percentage. This required area is then compared against the internal areas of standard conduit trade sizes (from NEC Chapter 9, Table 4 for the selected conduit type) to find the smallest suitable trade size.
Automatic Calculation for 2D Segments
For each straight segment of the calculated orthogonal conduit path on the 2D plan:
- Wire Aggregation: The application identifies all defined wires that are routed through that specific segment. This routing is based on the shortest path along the conduit graph between the wire's start and end nodes.
- Total Wire Area: The outer diameters (ODs) of all wires passing through the segment are collected. The sum of their individual cross-sectional areas (approximated as circular: $\pi \cdot (OD/2)^2$) is calculated.
- Size Determination: Based on the total wire area and the number of wires in that segment, the required NEC fill percentage is applied to determine the minimum internal conduit area needed.
- Conduit Selection: The application selects the smallest trade size of the chosen conduit type (RMC, IMC, or EMT) whose internal area meets or exceeds this calculated minimum.
- Storage: The calculated size string (e.g., "3/4") and the count of wires are stored for each 2D segment.
This recalculation occurs automatically when:
- Wires are added or edited.
- The conduit path is recalculated.
- The selected conduit type is changed.
Automatic Calculation for Vertical Runs
For each node that has a defined elevation_delta
greater than zero:
- Terminating Wires: The application identifies all wires that start or end at this node.
- Total Wire Area: The ODs of all these terminating wires are collected, and their total cross-sectional area is calculated.
- Size Determination: Similar to 2D segments, the NEC fill percentage based on the total number of terminating wires is used to find the minimum required internal conduit area.
- Conduit Selection: The smallest trade size of the chosen conduit type that meets this requirement is selected.
- Storage: The calculated size string for the vertical run at that node is stored.
Vertical conduit sizes are recalculated when:
- A node's
elevation_delta
is changed. - Wires connected to a node with an elevation delta are added, edited, or deleted.
- The selected conduit type is changed.
Selecting Conduit Type (RMC, IMC, EMT)
Users can choose the type of conduit to be used for sizing calculations:
- Selection: Use the "Conduit Type" dropdown menu in the control panel.
- Options:
- Rigid Metal Conduit (RMC)
- Intermediate Metal Conduit (IMC)
- Electrical Metallic Tubing (EMT)
- Impact: Changing the conduit type will trigger a recalculation of all 2D and vertical conduit sizes based on the dimensional data for the newly selected type. The underlying conduit path layout remains unchanged.
Understanding Conduit Size Annotations on the Canvas
- 2D Segments: After conduit sizing, text annotations appear near the midpoint of 2D conduit segments on the canvas. This text typically displays the calculated trade size and the total number of wires passing through that segment (e.g., "3/4" (5)"). These annotations are only drawn if the segment has wires and a valid size is determined.
- Vertical Runs (Nodes): When a node with an
elevation_delta
is selected or hovered over, the status bar will display its vertical conduit size information (e.g., "Vertical C: 1"") alongside its name and elevation details. There isn't a persistent canvas annotation for vertical sizes directly on the node, but this information is available through interaction.