FeatureBuilt · in the lab

Harness in 3-D

Wires and bundles routed in 3-D round an assembly (the open part or an OBJ / STL file) on the shortest path with a clearance and a bend check, with the lengths going back to the wire list; and a vehicle or machine electrical system with options and variants, checked per variant for loose wires, fuses and supply.

Use this add-on:

Lab

Screenshots and a short video come with the listing (AL.3).

Overview

The Harness in 3-D add-on routes wires and bundles of wires through an assembly in three dimensions. The assembly is read from the open part in PartCraft or from an OBJ or STL file (its bodies become boxes, or the grid cells of a size you choose), connectors are given a position, and every wire between two connectors is routed on the shortest path that keeps its bundle's radius and a clearance away from the model, with the bends checked against a minimum bend radius. The length of each wire (routed length, slack, the allowance at each end and a service loop) goes back to the wire list: in CadCraft into the Harness add-on's wire list as fixed lengths, elsewhere as a file or a CSV.

It also holds a vehicle or machine electrical system with options and variants: every component and wire carries a condition over the options, each variant is a choice for each option, and each variant is resolved and checked for wires left hanging, fuses over their rating and a supply that is too small, with the copper mass, wire length, weight and a table of which variant has what.

It runs in CadCraft, PartCraft and ModelCraft. It is a planning aid, not a manufacturing drawing.

Who it’s for

  • A harness designer who wants wire lengths from the real assembly instead of estimates from a flat drawing.
  • A machine or vehicle builder with options, who needs to know which wires and parts each variant has and whether each variant's fuses and supply fit.
  • An engineer handing a routed length list to the workshop.

What you can do

  • Read the open part (PartCraft) or an OBJ or STL file as the assembly, as one box round each body or as the grid cells a mesh touches, and type extra boxes such as a frame or a wall.
  • Give connectors positions, and wires between them with a diameter or a cross-section.
  • Route every bundle on the shortest path round the model with a clearance, see the path in a view you turn, and read its length, its bundle diameter and whether every bend fits the minimum bend radius.
  • Get each wire's length: routed length plus slack, plus the allowance at both ends, plus a service loop.
  • Send the lengths back: into the Harness add-on's wire list in CadCraft as fixed lengths, or save a lengths file or the wire list as CSV.
  • In PartCraft and ModelCraft show the routed bundles as tubes in the 3-D view.
  • Describe a system with options and variants, resolve each variant, compare two variants, see which variant has which component and wire, and read copper mass, wire length, weight, loads against fuses and against the supply, and wires left hanging.
  • Save and open the system as a file, and the variant table as CSV.

Methods and standards

Every body is a box (or a set of boxes); each is made larger on all sides by the bundle's radius plus the clearance, so the bundle's center line only has to avoid the enlarged boxes. A grid search finds which way round the obstacles; the path is then pulled taut: corners are skipped when the way is clear, and a corner is put wherever the path rests on a box edge and slid along that edge to where the path through it is shortest (the length is convex along an edge). A connector that stands on the model's surface leaves it by the shortest way out, straight. The result is the shortest path for the boxes as given; it is checked against closed forms (over a wall, round a slab, along a surface) and does not depend on the grid.

A bundle's diameter is the square root of the sum of the wires' squared diameters over a packing of 0.7, the same planning rule the Harness add-on uses. A turn of angle t needs the minimum bend radius times tan(t/2) of straight run each side. A system's conditions are read by an own small parser (no eval); copper mass is 8960 kg per cubic meter times cross-section times length.

Data and sources

No maker's data and no standard's table is shipped. The wire diameters for a given cross-section are a starter table of typical values (marked as such); a wire with its own diameter uses it. Clearance, slack, allowances and the bend rule are planning figures that you set. The copper density is a physical constant. The model you read stays in the page and is never sent anywhere or changed; only the settings, the connectors, the wires and the system are remembered in this browser.

Verification

CaseResult
Free space and a surfaceIn free space the route is the straight line (130 mm for (30, 40, 120)); two connectors on one surface leave by the radius, run straight and return: 1 + 30 + 1 = 32 mm (bin/test-harness3d.mjs)
Over a wall and round a slabOver a 5 mm wall on a floor the path touches the two top corners, with or without a bundle radius, to 1e-6 relative; round a 2 mm slab it touches the two vertical edges: 2 x sqrt(9 squared + 5 squared) + 2 = 22.5913 mm, with an enlargement of 2 mm the corners move out by 2 mm; the same answer for th
Closed and open roomsA point shut in a room has no route and says so; with a 6 mm door in line the wire goes straight out, 50 mm (bin/test-harness3d.mjs)
Meshes as cellsA cube skin of 10 mm at 5 mm cells fills 8 cells and joins into one 1000 mm3 block; a triangle touches 13 of the 16 cells over it; a wall plane read from an OBJ routes round its edge in the closed-form length (bin/test-harness3d.mjs)
BendsA right angle at a 10 mm bend radius needs 10 x tan 45 = 10 mm of run each side; two right angles 15 mm apart need 20 mm and are reported; a hairpin is reported (bin/test-harness3d.mjs)
Bundles and lengthsA bundle of three 2 mm wires is sqrt(12 / 0.7) mm; a 100 mm route becomes 100 x 1.03 + 30 + 10 = 143 mm for each wire; the lengths go back into the wire rows and a lengths file reads back (bin/test-harness3d.mjs)
VariantsConditions with and, or, not and brackets follow the precedence of and before or; bad conditions are refused; each variant keeps what its conditions allow; a dangling wire, a fuse of 6 A with 4 A + 3 A loads, a 12 A load on a 10 A supply and a 4 A load on 1.5 mm2 against your own table are each foun
In a real browserIn CadCraft the tab opens, the example routes, the numbers on the page equal the engine's, the lengths go into the Harness add-on's wires; in PartCraft and ModelCraft the tab opens and routes (tools/panels/browser.mjs)

Limits

This is a design aid, not an engineering approval: it does not replace the judgement, the checks and the sign-off of the person responsible for the work, and nothing you build from its figures should rest on it alone.

It is a planning aid, not a manufacturing drawing, and no standard was read. Bodies are boxes or grid cells, so a curved or hollow part is as large as its boxes and a length is never short of the model; a finer cell gives a closer fit but more boxes. Bundles of wires between the same two connectors are routed together; branching harnesses with shared trunks, clips and fixing points are not worked out. The bend check treats a bend as a corner with the radius you give; it does not model stiffness. A wire's cross-section does not give its diameter unless the starter table has it. In CadCraft the wire list is the Harness add-on's: wires are found by their id (number them with HNUM). CadCraft and ModelCraft have no way to hand over the open model, so it is read from a file there; PartCraft's mesh reading and display bodies depend on the build. The variants' ampacity check needs your own table. Only English is offered.

Files and formats

Reads OBJ (objects and groups, polygons as triangles, negative indices) and STL (text and binary) files, and a list of wires as CSV with the columns id, from, to and od or mm2. Saves a lengths file (.lengths.json, format cadcraft-harness-lengths, millimeters, one line per wire), the wire list with the 3-D lengths as CSV, a variants system (.variants.json) and a table of which variant has what as CSV; the cells are defused so a spreadsheet never runs them. Files that are not ours or are newer than this reader are refused with the reason.

Get started

  1. Switch the add-on on in Settings, Add-ons, then open the Harness in 3-D tab.
  2. Press Load the example to see a floor, a wall and a gearbox with three connectors and four wires.
  3. Press Route: the wires go round the wall; read each bundle and each wire's length.
  4. Read your own model with Read an OBJ or STL file (or Read the open model in PartCraft), put the connectors where the plugs are, list the wires, and route.
  5. In CadCraft press Send the lengths to the wire list.
  6. Open Electrical system with variants to see options, variants and the checks of each.

Languages

The text is available in:

  • Afrikaans (af)
  • Amharic (am)
  • Arabic (ar)
  • Azerbaijani (az)
  • Belarusian (be)
  • Bulgarian (bg)
  • Bengali (bn)
  • Bosnian (bs)
  • Catalan (ca)
  • Czech (cs)
  • Danish (da)
  • German (de)
  • Dhivehi (dv)
  • Greek (el)
  • English (en)
  • Spanish (Spain) (es-ES)
  • Spanish (Mexico) (es-MX)
  • Estonian (et)
  • Persian (fa)
  • Finnish (fi)
  • Filipino (fil)
  • French (fr)
  • Galician (gl)
  • Guarani (gn)
  • Hebrew (he)
  • Hindi (hi)
  • Croatian (hr)
  • Hungarian (hu)
  • Armenian (hy)
  • Indonesian (id)
  • Icelandic (is)
  • Italian (it)
  • Japanese (ja)
  • Georgian (ka)
  • Kazakh (kk)
  • Khmer (km)
  • Korean (ko)
  • Kyrgyz (ky)
  • Lao (lo)
  • Lithuanian (lt)

Works in

EditionWorksNote
Browser (/use) (yours) Added on demand Fetched the first time you use it, then kept for offline use.
Studio from getcadcraft.com Added on demand Fetched the first time you use it, then kept for offline use.
Microsoft Store Added on demand Fetched the first time you use it, then kept for offline use.
Google Play Added on demand Fetched the first time you use it, then kept for offline use.
iPad and iPhone (App Store) Included; switch it on Part of the reviewed app; your list switches it on.
Custom build Added on demand Fetched the first time you use it, then kept for offline use.

Comes with

Nothing else.

Versions

VersionChannelDateWhat changed
1.0.0labNovember 28, 2026First version in the Library.

Licence and maker

CadCraft (CadCraft, first-party). Licence: Apache-2.0. Dependencies carry their own licences, listed on their pages.