Skip to main content

Command Reference

Complete reference of all Branch commands. Type any command in the AutoCAD command line to execute it.

Tip: Commands can be typed directly in the AutoCAD command line or accessed from the Branch ribbon tab.

Setup & Configuration

Configure Branch and manage your account

BRANCHOPTIONS

Open the settings UI to configure string size, panel detection, inverter settings, layers, and other project parameters

LEAFLOGIN

Sign in to your Branch account

LEAFLOGOUT

Sign out of your Branch account

LEAFUPDATE

Check for plugin updates and show the update dialog if a newer version is available

STRINGSIZER

Open the string sizing calculator to determine optimal string lengths based on module, inverter, and location. Supports both traditional Voc-based sizing and SolarEdge optimizer-based sizing — when a SolarEdge inverter is selected, the optimizer configuration is detected automatically and results show power-constrained string ranges instead of voltage math. Now includes C-series optimizers (US domestic content) alongside P-series for commercial projects. Includes an Array Planning section: enter your total module count (or pick a layer to count modules directly from the drawing) and target DC/AC ratio to see inverter count, DC combiner requirements, and a color-coded utilization display showing kW per inverter and percentage of max DC input capacity. A Deep Search toggle lets you choose between immediate results or a thorough background search with a tray notification when complete

LEAFPROFILE

Manage design profiles for multi-alternative workflows within a single drawing. Create, switch, and compare different design configurations without duplicating files — each profile isolates its own layers and settings

LEAFPALETTE

Toggle the Branch workflow palette — a dockable AutoCAD panel that walks you through Zones → Panel Groups → Solve → Equipment → Combiners → Homeruns → Export → ReOpt. Recommended way to drive Branch (Ground Mount is production; Rooftop and SolarEdge flows are experimental)

LEAFSAMPLE

Open the bundled sample drawing in sandboxed demo mode and launch the palette against it. Changes are discarded on exit — safe for exploring the workflow without touching a real project

LEAFSTATUS

Check whether you're signed in. Prints "Authenticated and ready" when your session is active, or tells you to run LEAFLOGIN

LEAFVERSION

Print the installed plugin version to the command line

LEAFUNITSYNC

Sync AutoCAD's drawing units (INSUNITS) to your saved Branch unit preference in one step and report the before and after unit codes. Does nothing if they already match

LEAFCUSTOMERDWGWARNINGS

Choose whether Branch batches a customer drawing's proxy and xref startup warnings into its own welcome banner instead of AutoCAD's native dialogs. Pairs with LEAFOPENCUSTOMERDWG

LEAFOPENCUSTOMERDWG

Open a customer drawing through Branch's guarded path, which suppresses AutoCAD's proxy and xref startup dialogs and surfaces those warnings afterward in the Branch welcome banner instead

LEAFCANCELLOGIN

Cancel an in-progress sign-in

LEAFASSISTANTPROMOOFF

Turn off Autodesk Assistant's own startup promo banner by writing the Windows registry key it reads. Offered as an optional tip after you sign in

LEAFPLATFORM

Open the Leaf web platform in a docked AutoCAD panel, signed in with the same account as the plugin

LEAFELECDESIGN

Open the Electrical Design palette, with tabs for stringing, electrical devices, cabling, and string color-coding

LEAFDEEPSEARCH

Open the Deep Search Status window, which lists every background deep-search session's progress and results and clears the palette's unread-improvements badge

LEAFPVCASEPALETTE

Open the workflow palette directly into the PVcase Parity flow, skipping the flow picker

LEAFFLOWGROUND

Open the workflow palette directly into the Ground Mount flow

LEAFFLOWGMELECTRICAL

Open the workflow palette directly into the ground-mount electrical flow

LEAFFLOWGMPHYSICAL

Open the workflow palette directly into the ground-mount physical-layout flow

LEAFFLOWPVCASE

Open the workflow palette directly into the PVcase Parity flow (same destination as LEAFPVCASEPALETTE)

LEAFFLOWROOFTOP

Open the workflow palette directly into the Rooftop flow

LEAFFLOWSOLAREDGE

Open the workflow palette directly into the SolarEdge flow

Terrain & Grading

Import site terrain, review slope, grade equipment pads, and lay out access roads (ground mount)

LEAFTOPO

Import site terrain and draw it as a slope-colored mesh on the LEAF-TOPO layer. Reads site bounds, latitude/longitude, and drawing units from the drawing (site raster, AutoCAD geolocation data, INSUNITS) and prompts for anything it cannot detect. A confirmation dialog shows what it found before any internet request, so you can fetch, override the inputs, or skip. Fetches a 100-point elevation grid, using USGS EPQS for points between 18° and 72° N and 180° and 66° W, and PVGIS for points outside that box, then stores the grid in the drawing so the grading, tracker, and analysis commands can reuse it

LEAFTOPOFROM3DFACES

Promote civil 3DFACE terrain already in the drawing into the LEAFTOPO grid, so the slope, shading, piling, and export commands can read it without fetching anything over the internet. Prompts for drawing units and the number of grid cells on the longer axis (150 by default, 300 maximum). Prefers faces on the LEAF-TERRAIN layer and falls back to every 3DFACE in model space. Reports the source face count, unique vertices, grid rows and columns, and how many mesh faces it cleared and drew

LEAFSURVEY

Color existing 3D face terrain by slope, in place, with no external data fetch. Prompts for drawing units, then you select the 3DFACE entities to analyze. Each face is recolored by slope band and the command line reports the counts: green below 5%, yellow from 5% through 15%, red above 15%. Use it on terrain that arrived from a civil DWG or contour survey. It colors faces only, so run LEAFTOPOFROM3DFACES instead when you need a stored terrain grid

LEAFCROSS

Draw a 2D elevation cross-section through the LEAFTOPO terrain along a cut line. Pick 2-Points to click a line, Polyline to use an existing LWPolyline, or Multiple to batch several polylines in one pass. Sample count per segment defaults to 25 and accepts 2 through 500. Samples elevation at regular intervals and draws the profile on the LEAF-PROFILE layer at an insertion point you choose, with distance along the cut line on the X axis and elevation on the Y axis. Requires LEAFTOPO terrain in the drawing

LEAFHEATMAP

Overlay a cut and fill heatmap on the LEAFTOPO terrain, drawing one colored 2D solid per grid cell on the LEAF-HEATMAP layer. Prompts for the proposed grade elevation, defaulting to the most recent LEAFGRADE result when that result is above zero and to the terrain midpoint otherwise. Red marks cut where terrain sits above grade, green marks fill where it sits below, grey marks at-grade, and color intensity scales with depth. Reports the cell count in each band. Requires LEAFTOPO terrain in the drawing

LEAFGRADE

Grade a flat pad for BESS or electrical equipment. Select a pad boundary polyline or pick two corners, then set the finished elevation three ways: Auto balances cut against fill, Manual takes the elevation you type, and Clearance holds a minimum height above the highest terrain inside the pad (0.6 m default). With LEAFTOPO terrain in the drawing it reports cut, fill, and net volume in cubic metres plus the number of grid cells sampled. The pad outline and elevation label are drawn on the LEAF-GRADE layer. Without terrain data it still draws and labels the pad, but reports no volumes

LEAFGRADEMULTI

Grade any number of pads in one pass. Pick the elevation mode once, then window-select the boundary polylines: Auto balances cut against fill for each pad independently, Manual applies one elevation to all of them, and Clearance holds a minimum height above each pad's own highest terrain. Draws and labels every pad on the LEAF-GRADE layer, prints per-pad elevation and volumes, and finishes with a consolidated total cut, fill, and net. Without LEAFTOPO terrain only Manual mode is available and no volumes are reported

LEAFROAD

Lay out a site access road from a centerline. Select an existing polyline or pick two points, then set carriageway width (6 m default), shoulder width (1 m default), and drainage cross-slope percentage (2.0 default). Offsets the centerline to draw the road and shoulder edges on the LEAF-ROAD-EDGE layer and places an annotated cross-section view below the centerline midpoint on LEAF-ROAD-XSEC. Reports centerline length, carriageway and total width, carriageway surface area, and cross-slope

LEAFSITEFROMMAP

Fetch a satellite image and elevation model for a site by latitude and longitude and place them in the drawing. Places the satellite tile as a raster on LEAF-SITE-RASTER, aligned to the drawing's geolocation data when present, and stores the elevation data as LEAFTOPO terrain so LEAFGENERATE, LEAFSLOPE, LEAFSHADING, and LEAFPILING can use it right away. Without a signed-in session it falls back to a placeholder tile and flat terrain, clearly labeled synthetic

LEAFSITEFROMMAPFIT

Same fetch as LEAFSITEFROMMAP, but fits the satellite image and elevation model to your current selection or drawing extents instead of the drawing's geolocation

LEAFSITEUNDERLAY

Push the satellite/elevation underlay from LEAFSITEFROMMAP slightly below your drawing's linework in elevation, so it renders as a backdrop instead of sitting on top

LEAFSLOPE

Draw a slope-classification heatmap over LEAFTOPO terrain: one colored cell on the LEAF-SLOPE layer per grid quad, green under 5%, yellow from 5% through 15%, red above 15%. Requires LEAFTOPO terrain with at least a 2×2 grid; reports cell counts per band and the maximum slope found

LEAFHORIZON

Compute the horizon profile at a point on LEAFTOPO terrain: how much of the sky is blocked by surrounding high ground. Prompts for the site center, observer height (1.5 m default), and azimuth sampling step (10° default), then reports the horizon elevation at the eight cardinal directions, the highest obstruction and its azimuth, and the share of azimuths with a clear view, with an option to export the full profile to CSV

LEAFPOA

Calculate plane-of-array irradiance for a given time and location using three transposition models side by side: Isotropic (Liu-Jordan), HDKR anisotropic, and Perez 1990 anisotropic. Prompts for latitude/longitude (from LEAFTOPO when available), date and time, panel tilt and azimuth, and DNI/DHI/GHI and albedo, then reports the direct, sky-diffuse, ground-diffuse, and global POA irradiance from each model

LEAFCAPACITYITERATE

Sweep ground coverage ratio and tilt across a site boundary to find capacity-maximizing layouts. Prompts for the boundary, module spec, a GCR sweep range, a tilt sweep range, and a scenario cap (100 default, hard maximum), then reports the top-scoring scenarios with an option to export the full sweep to CSV

LEAFIMPORTLANDXML

Import a LandXML 1.2 TIN terrain file. Prompts for the file path, source elevation units, drawing units, and an optional boundary to clip to, then resamples the survey points onto a grid (150 cells on the longer axis by default) and stores it as LEAFTOPO terrain

LEAFLANDXML

Export the current LEAFTOPO terrain grid to LandXML 1.2 for Civil 3D or another TIN-based tool. Prompts for drawing units and an output path, defaulting to the drawing's own name, and reports the grid dimensions, point count, and triangle count. LEAFTERRAINCSV exports the same grid as a plain X, Y, Z CSV instead

LEAFTERRAINCSV

Export the current LEAFTOPO terrain grid as an X, Y, Z CSV for GIS or spreadsheet tools. Prompts for drawing units and an output path, defaulting to the drawing's own name, and reports the point count and grid dimensions

LEAFTERRAINMESH

Redraw the slope-colored LEAFTOPO terrain mesh from the elevation grid already stored in the drawing, without fetching new elevation data. Use after changing display settings or if the mesh gets erased

LEAFKMLEXPORT

Export a KML file of your site boundary and tracker rows for viewing in Google Earth or a GIS tool. Requires a site boundary polyline and a LEAFTOPO-anchored geolocation; writes a file named after the drawing

LEAFKMLIMPORT

Import a site boundary from a KML file. Draws the boundary as a closed polyline on LEAF-KML-BOUNDARY and sets the drawing's geolocation anchor from the boundary's center point, so later terrain and site commands share the same location. Also callable from LISP as (LEAFKMLIMPORT "path" [index] [Meters|Feet])

Tracker Layout

Generate single-axis tracker rows, and run shading and takeoff reports over PVCase tracker layouts (ground mount)

LEAFTRACK

Lay out single-axis tracker rows inside a site boundary polyline. Prompts for drawing units, row-to-row pitch (center to center, defaulted from the LEAFSPACING minimum when one is stored), module dimensions (reuses the LEAFMODULE dimensions when set), and tracker axis azimuth. When LEAFTOPO terrain is present it varies the row pitch to follow the slope. Draws one block reference per tracker table on the LEAF-TRACKERS layer, tagged with row XData, then reports row count, module slots, GCR, tube length, estimated piles, drive units, and DC capacity

LEAFSAT

Lay out tracker rows from a target ground coverage ratio instead of a pitch, using the same engine and output as LEAFTRACK. Prompts for the site boundary, units, module dimensions, target GCR (defaulted from the LEAFSPACING minimum pitch when available, otherwise 0.40), site latitude (defaulted from the LEAFTOPO grid), and axis azimuth. Computes the row pitch from the GCR, then prints the shade limit angle and an equinox backtracking angle table before drawing. Warns when the GCR you chose produces a pitch tighter than the LEAFSPACING minimum

LEAFSHADE

Run an 8760-hour near-shading simulation over the tracker rows in the drawing and write the results to CSV. Reads PVCase tracker blocks. Prompts for site latitude and longitude (defaulted from the LEAFTOPO grid when one is stored) and the collector width across the tracker axis (defaulted from the rows' spacing and ground coverage ratio), then computes hourly sun position and row-to-row shading for single-axis trackers, including rotation limits and backtracking. The CSV lists clear-sky energy-weighted and time-weighted annual shading loss per row alongside the site totals, and the command line reports the energy-weighted annual figure

LEAFBOM

Generate a tracker bill of materials CSV from the PVCase tracker blocks in the drawing. Prompts for drawing units and pile spacing (5 m center-to-center default), then reports tracker table sections, PV module slots, total torque tube length, estimated pile count, drive units, and DC nameplate capacity. Writes the CSV next to the drawing file by default, and you can enter any other output path at the prompt

LEAFSPACING

Calculate the minimum row-to-row pitch that avoids beam self-shading during a chosen solar-hour window (winter solstice by default). Prompts for site latitude (from LEAFTOPO when available), frame length in the slope direction, and tilt, then reports the minimum pitch and ground coverage ratio. Feeds directly into LEAFSAT and LEAFTRACK

LEAFMODULE

Set the tracker module's physical spec (dimensions, rail overhang, and torque-tube geometry) for the drawing, from a preset or manual entry. LEAFTRACK, LEAFSAT, and LEAFTUBE3D all read this shared spec

LEAFTUBE3D

Draw 3D torque tubes for every tracker row already laid out by LEAFTRACK or LEAFSAT, on the LEAF-TUBES layer. Reads tube height and radius from LEAFMODULE, and drapes along LEAFTOPO terrain when it's present

LEAFPILING

Place pile markers under every tracker frame on the LEAF-PILING layer, in a grid sized from the active frame preset's pile diameter, reveal, and embedment. Drapes to LEAFTOPO terrain elevation when present, otherwise stamps piles flat with a warning. Run LEAFTRACKERSTOPANELGROUPS first if no tracker rows are found

LEAFPILETEMPLATES

Open the Pile Template Manager to define and edit reusable pile specs

LEAFPILEBLOCKMAP

Open the Pile Block Mapper, which scans the drawing for tracker rows and racking-like blocks and reports how many are already mapped to a pile type versus unmapped. LEAFPILING needs these mappings before it can place piles against custom blocks

LEAFTRENCH

Route a single trench between two picked points, routing around panel groups and inverter footprints and favoring alignment with existing trenches. Draws the result on the LEAF-PVCASE-TRENCH layer with depth, width, and voltage-class data attached, and reports the route length and segment count

LEAFTRENCHAUTO

Route trenches automatically from every panel group's center to the layout's overall center, in a star pattern. Skips any panel group already within a meter of an existing trench, so it's safe to re-run after adding groups. Requires a configured panel-group layer

LEAFCABLETOTRAY

Snap a selected DC or feeder cable onto the nearest trench or cable-tray centerline, keeping its endpoints anchored, and validate the resulting bend radius against NEC 300.34. Warns to run cable resizing if the check fails

LEAFCABLETOTRAYAUTO

Batch version of LEAFCABLETOTRAY: snaps every drawn DC and feeder cable onto its nearest trench within a configurable distance (5 m default) and checks NEC 300.34 bend radius for each. Skips cables already snapped, so it's safe to re-run

LEAFTRACKERSLOPEVIOLATIONS

Check every tracker row's slope against the active frame preset's limits and LEAFTOPO terrain, then draw red markers on any violating segment. LEAFCLEARTRACKERSLOPEVIOLATIONS removes the markers

LEAFCLEARTRACKERSLOPEVIOLATIONS

Remove the violation markers drawn by LEAFTRACKERSLOPEVIOLATIONS and report how many were cleared

Panel Group Commands

Create and manage panel groups

PANELGROUPCREATE

Automatically detect and organize panels into groups with header labels showing +/- recommendations for even string counts

ADDPANEL

Add panels to an existing panel group. Auto mode fills all incomplete groups in the drawing at once, transferring panels from the nearest row-ends of neighboring groups

AUTOFILL

Auto-fill all incomplete panel groups in the drawing at once — standalone shortcut for the ADDPANEL Auto option. Uses 2D grid-aware panel trading that handles irregular group shapes (L-shapes, notched rectangles) by peeling panels from the nearest edge of each group

REMOVEPANEL

Remove panels from a panel group

LEAFTRACKERSTOPANELGROUPS

Convert ground-mount tracker rows — including PVcase tracker blocks — into Branch panel groups, so a layout imported from another tool can go straight into the stringing workflow

LEAFTRACKERSTOPANELGROUPSFAST

Same conversion as LEAFTRACKERSTOPANELGROUPS, forced to the fast mode: one tracker outline per row instead of one rectangle per module slot. Used automatically above 10,000 modules; call it directly to force fast mode on a smaller field

LEAFTRACKERSTOPANELGROUPSLEGACY

Same conversion as LEAFTRACKERSTOPANELGROUPS, forced to the legacy mode: one rectangle per module slot instead of one outline per tracker row

PANELGROUPCREATEZONEAWARE

Create panel groups the same way as PANELGROUPCREATE, but respecting elevation zone boundaries so a group never spans two zones

PANELGROUPDELETEALL

Delete every panel group in the drawing

LEAFFRAMEGROUPCREATE

Save the current selection of panel-group frames as a named FrameGroup you can restore later for manual stringing, one-line diagram filtering, or BOM rollups

LEAFFRAMEGROUPDELETE

Delete a named FrameGroup

LEAFFRAMEGROUPLIST

List every FrameGroup defined in the drawing, with its frame count, color, and when it was last changed

LEAFFRAMEGROUPRENAME

Rename a FrameGroup

LEAFSELECTBYFRAMEGROUP

Select every frame belonging to a named FrameGroup. Requires LEAFFRAMEGROUPCREATE to have defined the group first

String Commands

Create and modify string connections

SOLVE

Automatically generate optimized string connections for all panel groups

SINGLESTRING

Select panels and create a single string (ignores configured string length)

MULTISTRING

Select panels and create strings using the configured string length. Shows real-time feedback in the command line as you select: even counts display '24 panels → 2 × 12-panel strings ✓', uneven counts show recommendations like '25 panels → 2 × 12 + 1 × 13 (add 11 or remove 1 for even strings)'

DELETESTRING

Delete an existing string from the design

FLIPSTRING

Reverse the direction of a string

SWAP

Swap inverter assignments between two strings

LEAFPVCASESOLVE

Assign string and inverter numbers to every panel group in one pass from the command line — prepares an imported layout for homerun routing and cable export without opening the palette

ADDSTRING

Create strings from the selected panels, batched to your configured string length. Requires hardware configuration; suggests SolveAuto if it finds nothing to string

AUTOFILLREVERT

Undo the most recent AUTOFILL or AUTOFILLSOLVE pass

AUTOFILLSOLVE

Fill every incomplete panel group with modules and immediately solve strings for the result in one pass, reusing your last String Sizer choice

SOLVEAUTO

Headless version of SOLVE: strings every panel group at your configured string length with no dialog. Used internally by the guided workflow steps, and available directly for scripting

ASSIGNSTRINGS

Assign already-created strings to placed inverters or combiner boxes. Detects whether the drawing uses L1 combiners, L2 central inverters, or a mixed collector setup, and prompts for Auto or Manual assignment mode

LEAFASSIGNSTRINGSCLOUD

Same as ASSIGNSTRINGS, forced to the cloud Auto assignment mode with no prompt

LEAFCOLORSTRINGS

Recolor every string and its connected devices by inverter assignment, for a quick visual check of which strings feed which inverter

LEAFSTRINGMID

Manually create a string between two picked panels, using proximity to route between them, and tag the midpoint panel so LEAFCOLORSTRINGS and the one-line export can recover the tagging

STRINGDATA

Build a structured summary of the string layout, panel-group membership plus each string's endpoints and coordinates. Feeds the palette's String Data export step and the SolarEdge export path

Inverter Commands

Place and manage inverters, combiner boxes, and central inverters

ADDINVERTER

Place a single inverter, combiner box, or central inverter. When central inverters are enabled, prompts for equipment type: Combiner Box vs Central Inverter (ground mount) or String Inverter vs Central Inverter (rooftop)

ADDALLINVERTERS

Automatically place inverters for all unassigned strings using k-means optimization. Prompts for equipment type when central inverters are enabled

MOVEINV

Move an existing inverter to a new location

INVBALANCE

Balance strings across inverter MPPT inputs for optimal efficiency. Shows per-MPPT DC power and per-inverter DC/AC ratio. Includes a Central Inverters tab when central inverters are present, showing assigned combiner boxes or string inverters per central inverter

POSITIONINV

Move a placed inverter and automatically re-route its DC homeruns to match. Reports the updated homerun, feeder, and cable-run counts, and suggests HOMERUNSAUTO or ROUTEL2FEEDERS if cabling still needs a look

LEAFDEVICESCLOUD

Auto-place a fresh set of inverters and combiner boxes using Branch's cloud placement algorithm

LEAFDEVICESPATTERN

Auto-place a fresh set of inverters and combiner boxes by pattern-matching the tracker-row layout, honoring your configured strings-per-combiner limit, end offset, and side preference. Fails if devices already exist in the drawing, since it builds a fresh fleet rather than adding to one

LEAFADOPTL2INVERTERS

Register central-inverter blocks that are already placed in a customer's drawing as Branch L2 devices, so Branch's combiner-placement engine can build around equipment locations you didn't place yourself. Reports how many blocks were scanned, adopted, and already registered, plus the total adopted AC capacity

Homerun Commands

Route cables to inverters and combiner boxes

HOMERUNS

Generate schematic homerun cables from string endpoints to inverters or combiner boxes. Automatically routes feeder cables from combiner boxes to central inverters when central inverter mode is enabled. Now applies an NEC-driven cable sizing post-processor that picks conductor gauge, conduit size, and OCPD ratings using your project cable defaults

HOMERUNSAUTO

Fully automated version of HOMERUNS: routes every string's homeruns with no prompts, choosing hub or direct routing by a built-in heuristic. Suggests ROUTEL2FEEDERS or ASSIGNSTRINGS if a step is still missing

HOMERUNADJUST

Interactively re-route existing DC homerun cabling after you've moved equipment, without regenerating it from scratch. Reports the updated cable-run counts

HOMERUNOPTIONS

Configure which layers and blocks homerun routing uses, and set the inverter block size it routes around

HOMERUNROUTINGCONFIG

Tune the homerun router's cost model: the DC homerun layer name, the string-count threshold that switches on full routing, minimum bend radius, fence buffer distance, and per-terrain cost multipliers for open ground, cable tray, trench, road, fence, and road crossings

ROUTEL2FEEDERS

Assign each L1 combiner box to its nearest L2 central inverter and draw the feeder cables between them. HOMERUNSAUTO calls this automatically in L1/L2 collector mode; run it standalone to redo just the feeder routing. Suggests LEAFCOMBINERAUTO first if no combiners are placed yet

ADDLBD

Place a Load Break Disconnect marker on a picked feeder cable, at the closest point to where you click, tagged with a link back to the cable it sits on

LEAFPLACELBD

Same as ADDLBD: snap a Load Break Disconnect marker onto a picked feeder cable and tag it with the cable's handle so the one-line export can trace through it

LEAFLBDDIAG

List every Load Break Disconnect marker in the drawing with its downstream device and layer, so you can verify what's actually placed before a long routing run

Cabling Studio

Preview combiner and feeder cabling in a dockable palette, then commit it to the drawing (ground mount)

LEAFCABLEVIEW

Open the cabling studio palette — Simulate previews homerun and feeder cabling from the strings and inverters in your drawing, Commit writes it, and each commit replaces the last so you can iterate freely

LEAFLITEPLACE

Open the cabling studio in adopt mode — your existing inverter placements are never moved; the studio routes cabling around the equipment you already placed

LEAFLITEFREE

Open the cabling studio with free placement enabled — the studio positions inverters for you and moves, adds, or removes equipment blocks when you commit

LEAFLITEFEEDERS

Re-route the drawn feeder cables from current equipment positions, straight from the command line

Combiner Commands

Auto-place L1 combiner boxes and inspect placement

LEAFCOMBINERAUTO

Auto-place L1 combiner boxes from the existing string layout. Detects aisles between panel groups, partitions strings per L2 inverter, picks each combiner's location at the partition centroid (snapped to an aisle), and validates NEC voltage drop on the resulting feeder runs. Writes L1 to L2 assignments so HOMERUNS can draw feeder cables on the next pass. Requires L1/L2 collector mode enabled in Branch Options and at least one L2 inverter placed

LEAFCOMBINERDEBUG

Diagnostic command that draws what the placement engine sees on the LEAF-DEBUG layer: cyan lines for inner-row gaps, magenta for inter-group aisles, yellow circles at panel-group centroids. Use to inspect aisle detection before running LEAFCOMBINERAUTO

LEAFCOMBINERDIAG

Inspect existing combiner box placements and report whether each one sits inside a panel group, in an inner-row gap, in a real inter-group aisle, or near a row end. Use to diagnose combiners that ended up in the wrong location

LEAFSKIDRECONCILE

Check that every L1 combiner is assigned to an L2 inverter and no inverter exceeds its input capacity, then report the verdict in the command line

Zone Commands

Manage electrical zones and elevation zones for rooftop systems

ZONEHEIGHT

Open the Zone Height Manager to create named elevation zones with height offsets, assign strings to zones, and visualize zone boundaries. Zone offsets are applied to circuit length calculations in Cable Export (rooftop projects only)

LEAFZONEASSIGNPANELS

Select panels in the drawing and assign them to an electrical zone. Panels are moved exclusively to the target zone — any previous zone assignment is removed first

LEAFZONEASSIGNSTRINGS

Select string polylines in the drawing and assign them to an elevation zone. Strings are moved exclusively to the target zone — any previous zone assignment is removed first

LEAFADDZONE

Create an electrical zone from the command line — the same action as the Rooftop workflow's Add Zone button, without needing the palette open

LEAFZONEASSIGNPANELHEIGHT

Assign the selected panels to an elevation zone by height, coloring them for visual confirmation. Dispatched from the palette's Zones step

LEAFSELECTBYZONE

Select every panel assigned to a named electrical zone. Requires LEAFZONEASSIGNPANELS to have defined the zone first

Economics

Project economics analysis

REOPT

Run an NREL REopt analysis on your design. Calculates total cable lengths and system power from the drawing, lets you enter cost inputs, then calls the REopt API for financial projections — payback period, NPV, IRR, lifecycle costs, and a cumulative cashflow chart. Results are saved per design profile so you can compare economics across design alternatives side-by-side

Export Commands

Export design data

CABLEEXPORT

View cable data in an interactive table and export to CSV. Double-click any row to zoom to that element in the drawing. When elevation zones are defined, shows additional columns for zone name, elevation offset, and adjusted circuit length

INSERTSCHEDULES

Insert schedule tables (Equipment, Inverter, String, Homerun, Feeder) directly into the drawing in one pass. Reads current drawing state and cable sizing results — no need to open the export form

LEAFEXPORTSCENE

Export your terrain and PV arrays as a 3D scene (Collada .dae for PVsyst 8.1.0 and earlier, or .pvc for PVsyst 8.1.1 and later), so you can cross-check Branch's shading geometry against PVsyst's own ray tracer. Requires LEAFTOPO terrain; exports terrain and obstacles alone if no arrays are defined yet

LEAFYIELDEXPORT

Export a ZIP bundle for upload to Yield's Edit Layout flow: per-frame layout data, project and equipment bills of materials, DC homerun and AC feeder segments, and a shading summary

Import Commands

Import designs from other tools

IMPORTSOLAREDGEPDF

Import a SolarEdge Designer PDF, extracting panel positions, string assignments, and optimizer placements

LEAFIMPORTPAN

Preview a PVsyst .pan module file: prints the manufacturer, model, Pmax, and tag count to the command line. Read-only for now — it previews the file but doesn't write it into your project yet

Support & Help

Help, tutorials, and support tools

DEMO

Launch the interactive demo tutorial to learn Branch step-by-step with sample drawings

COMMANDLIST

Display the command reference window

BUGREPORT

Submit a bug report or feedback to the Branch team

LEAFABOUT

Show the installed plugin version and the Leaf Automation website

LEAFHELP

Open the Branch documentation site in your browser

LEAFACADEMY

Open the Branch Academy in your browser

LEAFTUTORIAL

Open the Branch tutorials in your browser

LEAFSUBMITIDEA

Open the feature-request form in your browser

LEAFREPORTPROBLEM

Open the problem-report form in your browser

Design Guardrails

Catch NEC and design issues before they reach the field

GUARDRAILS

Open the Guardrails panel and run an initial validation pass. Rule cards are grouped into Electrical, Hardware, Design, and Code Safety categories, each showing pass, warning, or critical status with a rolled-up health summary; electrical rules cite the NEC article behind them

GUARDRAILSVALIDATE

Re-run Guardrails validation on the already-open panel, without reopening it. Tells you to open GUARDRAILS first if the panel isn't already up

Shading Analysis

Simulate near-shading and beam obstructions, and manage the objects that cast shade

LEAFSHADESIM

Run a per-panel beam-shading simulation against your site's terrain and obstructions (traced on GPU where available), producing a green under 5%, yellow 5–15%, red over 15% annual-shade heatmap on the LEAF-SHADE-HEATMAP layer plus CSV exports for SAM and PVWatts cross-checks. Validated to within 0.06 percentage points of SAM across 10 US sites

LEAFSHADECOMPARE

Run LEAFSHADESIM and a PVsyst-format scene export side by side, then open a window to toggle between the two shading overlays for comparison

LEAFSHADOWCURTAIN

Draw 3D "shadow curtain" surfaces showing which obstructions are casting shade on your array, from the ray data a prior LEAFSHADESIM run recorded. Also registered as LEAFSHADECURTAIN. Requires a LEAFSHADESIM run first

LEAFSHADOWEXPLAIN

Pick a panel to see exactly why it's shaded: which obstructions are blocking it, from what direction, and by how much. Uses the ray data from a prior LEAFSHADESIM run when available, or replays a fresh trace for just that panel. Also registered as LEAFSHADEEXPLAIN

LEAFSHADELOSSMAP

Color every panel by its annual shading loss percentage, using a prior shading-analysis result. LEAFCLEARSHADEHEATMAP reverts the colors

LEAFCLEARSHADEHEATMAP

Revert the panel colors applied by LEAFSHADELOSSMAP back to normal

LEAFSHADING

Open the Shading analysis dialog

LEAFSHADINGOBJECT

Add a tree, station, fence, or vegetation mass as a shading obstruction, with an optional clearance ring that layout generation avoids

LEAFVEGETATIONFROMCIVIL

Bulk-import vegetation as shading obstructions from Civil 3D woodland data, using height labels from the source file and draping the resulting mesh onto your terrain. Optionally adds matching clearance regions for layout generation to avoid

LEAFFENCEMESHFROMCIVIL

Generate 3D fence meshes for shading analysis from civil fence linework, draping flat fence lines onto LEAFTOPO terrain and using any already-3D fences directly

LEAFFENCE3DAUDIT

Report how much of your fence linework has 3D shading geometry versus flat lines that still need LEAFFENCEMESHFROMCIVIL run on them

LEAFSHOWEXPORT

Draw a preview overlay of your PVsyst array export: each array's footprint and maintenance-clearance boundary, so you can check the export before committing to it. Requires LEAFDEFINEARRAY

LEAFHIDEEXPORT

Erase the preview overlay drawn by LEAFSHOWEXPORT

Civil & Collision Analysis

Check tracker layouts for overlaps and out-of-range pile depths

LEAFCIVIL

Open the Civil Analysis panel, with tabs for slope, collision, and grading checks

LEAFCOLLISION

Detect overlapping tracker frames and draw a red outline around each overlap on the LEAF-COLLISION layer, listing the affected rows and columns. Mainly catches manually edited layouts, since LEAFGENERATE output doesn't overlap by construction

LEAFCOLLISIONRANGE

Flag piles whose drawn length falls outside the active frame preset's minimum or maximum pile-length range, marking each one on the LEAF-COLLISION layer with its length and center point

Performance & Diagnostics

Check drawing health and clean up bloat that slows AutoCAD down

LEAFHEALTHCHECK

Report your drawing's entity count, hatch count, missing-xref count, proxy-entity count, and orphaned registered-application count, with a warning summary

LEAFSTORAGEAUDIT

Report how much of your drawing's storage is XData and extension dictionaries, to help track down bloat

LEAFOPTIMIZE

Clean up the drawing after confirmation: back it up, purge unreferenced blocks/layers/linetypes/text styles/dimension styles and orphaned registered applications, detach missing xrefs, and regenerate

LEAFOPTIMIZESAFE

Apply a reversible set of AutoCAD system-variable performance settings and run a health check. LEAFPERFRESET undoes it

LEAFPERFRESET

Restore the AutoCAD system variables LEAFOPTIMIZESAFE changed

LEAFPERF

Open the Branch Command Center with the Performance tab selected, for health checks, optimization, and the sysvar baseline in one place

PVcase Parity Layout

Frame, pack, and manage PV arrays in the PVcase-parity ground-mount flow

LEAFGENERATE

Pack PV frames into a boundary using the active frame preset (rows, columns, orientation, tilt), excluding shading-restriction zones, road buffers, and array setbacks, and applying a slope filter when terrain is present. Draws each frame on the LEAF-TRACKERS layer and reports the total placed plus how many were skipped by setback or slope

LEAFGENERATEMULTI

Same packing as LEAFGENERATE, run across every selected boundary in one pass

LEAFFRAME

Open the Frame & park settings dialog to configure and manage frame presets. Reports the active preset's name; its output feeds LEAFGENERATE directly

LEAFFRAMEINFO

Open the Frame Information dialog directly, without going through the Layout Information palette

LEAFLAYOUTINFO

Open the Layout Information panel: frame count, kWp, pile count, coverage, and boundary area, with a shortcut into LEAFBOM

LEAFLAYOUTSETTINGS

Open the Layout Generation Settings dialog to configure topography-aware layout generation: mode, distance, slope, and optimized-frame settings

LEAFDEFINEARRAY

Define a PV array for PVsyst-style export: center point, module grid size, orientation, spacing, tilt, and azimuth. Draws the array's footprint on the LEAF-ARRAY layer and feeds LEAFEXPORTSCENE

LEAFDELETEARRAY

Delete a defined array and erase its footprint outline

LEAFLISTARRAYS

List every array defined by LEAFDEFINEARRAY, with grid size, orientation, dimensions, tilt, azimuth, and center point

LEAFAREAS

Open the Project Areas dialog to manage per-project PV areas: a boundary, an optional frame-preset override, a row-pitch override, and exclusion zones for each

LEAFSETTINGS

Set your project's default module dimensions, spacing, orientation, tilt, azimuth, and maintenance margin for PVsyst export. These defaults feed LEAFDEFINEARRAY and LEAFEXPORTSCENE

LEAFDRAWROAD

Draw a road from a centerline you pick, with configurable width, edge rounding, and offset guides

LEAFMESHDIFFVIEW

Compare your panel and tracker layout geometry against LEAFTOPO terrain in an interactive viewer, to spot clearance problems before they reach the field. Requires LEAFTOPO terrain

Detailed Guides

For step-by-step usage instructions, see the workflow guides: