FeatureBuilt · in the lab
Board to enclosure
A circuit board for the people who design the box around it: IDF and IDX files in and out, the board with its holes, keep-outs and components as bodies in PartCraft, changes proposed, accepted or refused with a history, and the board as STEP; a heat sink helper with a hand-off to the Fields add-on and a check of the enclosure against part heights.
Use this add-on:
Screenshots and a short video come with the listing (AL.3).
Overview
Board to enclosure is for the two people who have to agree where a circuit board ends and its box begins. It reads a board from an exchange file or from the Board design add-on and shows its outline, cut-outs, drilled holes, keep-outs and components. In PartCraft it places the board in your part as real bodies you can measure and build an enclosure around. In CadCraft it sits beside Board design on the electrical side.
Either side can propose a change: a moved mounting hole, a new outline, a keep-out where a screw boss will stand, a component that has to move. The other side accepts or refuses it with a comment, and every step is kept in a history. Proposals and answers travel as files, and the agreed board can be saved as IDF, IDX (unverified: not checked against the IDX specification), STEP or as a board file. It is an aid for agreeing a shape, not an approval of a fit.
Who it’s for
- A mechanical designer who needs the board, its holes and its tall components as bodies to design a housing around.
- A board designer who needs to hear, in writing, that a mounting hole or a connector has to move, and to say yes or no.
- A small team that wants the reasons for each change kept with the board instead of in mail.
- A student learning how electrical and mechanical design hand a board back and forth.
What you can do
- Read and write an IDF 3.0 board file and its library file: outline with cut-outs, arcs and circles, drilled holes, keep-outs for parts, copper and vias, placements, component outlines with heights. Board, Open a board file; Files. verified
- Read and write IDX messages (unverified: not checked against the IDX specification): a baseline of the whole board, a change message for one proposal and the answer to it. Proposals, Save as an IDX change. verified
- Place the board in PartCraft: the board with its holes and one body per component as real part features, keep-outs as see-through bodies. Board, Place the board in the part. verified
- Propose a change from the electrical or the mechanical side: outline, a hole added, moved, resized or removed, a keep-out, a moved component. Propose a change. verified
- Accept or refuse a proposal with a comment; a proposal that no longer fits the board is flagged, and the side that proposed cannot accept. Proposals. verified
- Keep the history of the baseline, every proposal and every decision, and save it with the board. History; Files, Session with history. verified
- Turn the differences between your board and the other side's file into a proposal. Board, Compare with a file. verified
- Save the board and its component boxes as a STEP file of exact solids. Files, STEP. verified
- Size a plate-fin heat sink for one part from its power, its temperature limit and the room under the lid, see the smallest sink that meets it, and show it in PartCraft. Heat and heat sink. verified
- Send the heat list to the Fields add-on's cooling tool for the temperature of the board and each junction, or save it as a file. Heat and heat sink, Send to the Fields add-on. verified
- Check the board and its parts against the inside of the enclosure: height under the lid and over the floor, gaps to walls, posts and ribs, openings a part may reach through. Enclosure clearance. verified
Methods and standards
The board is plain geometry in millimeters: an outline polygon, cut-outs, round drilled holes, keep-out polygons and one rectangle per component. A body is that shape pulled through a height: the board from its bottom face to its top face, a component from the board face to its height. For the view, a polygon with holes is cut into triangles by joining each hole to the outline and clipping ears (Meisters 1975; the bridging step as described by Eberly, 2002). The STEP file is not triangles: flat faces are planes, hole walls are cylinders and rims are circles, written as boundary solids so every edge is used once in each direction.
A change is a small record: what it is, where the thing was and where it should go. When a proposal is made, and again when it is accepted, each change is checked against the agreed board; if the starting point no longer matches, the proposal is stale and is not applied. Accepting is all or nothing. Arcs and circles in an IDF outline are turned into short straight pieces, the center found from the chord and the swept angle.
The heat sink search tries every fin count and fin height that fits in the room, finds the base temperature where the heat leaving equals the power (convection depends on the temperature difference, so it iterates), and keeps the smallest sink that meets the thermal resistance the part needs: (junction limit - air) / power - junction to case - case to sink. Fin efficiency is tanh(mL)/mL for a straight fin (Incropera et al.), natural convection between fins the composite Elenbaas form of Bar-Cohen and Rohsenow (1984), forced flow a flat plate or fully developed channel, whichever is greater. The clearance check measures each part's courtyard against the wall polygon edge to edge, so a notch in the wall is seen, and compares heights with the lid and floor.
Data and sources
The add-on ships no component data and no standard values. A component's height comes from the board or the exchange file; where there is none, the body is 2 mm tall, a stand-in that is not from any data sheet, and the panel names those parts. The example board is made up. The IDF 3.0 record layouts were compared with a public reader that quotes the specification (2026-11-25); the points not checked are named in the limits. The IDX element names were written from working knowledge and are marked unverified: not checked against the IDX specification (the schema), which is a paid publication we do not hold. Air properties come from the ideal gas law and Sutherland's law (checked against the textbook table at 300 K); the sink materials are two round conductivities (200 and 390 W/mK).
Verification
| Case | Result |
|---|---|
| IDF board and library files written and read back | A board with a cut-out, mounting holes, three kinds of keep-out and parts on both sides comes back from its own IDF files with the same outline, thickness, holes, keep-outs, positions, rotations, sides and heights; a hand-written file in thousandths of an inch with a half-circle edge and a round cut |
| IDX baseline, change and answer written and read back (unverified: not checked against the IDX specification) | A baseline reads back to a board with no differences; a change message with a moved hole, a moved part, a new keep-out, a removed hole and a new outline reads back to the same changes; an answer carries accepted or refused and the comment. Unverified: not checked against the IDX specification. Our o |
| Bodies against the closed form | The triangulated board with thirty round holes and a slot has the area of the outline less the holes to 12 digits, and its body the volume of area times thickness; component boxes have footprint times height; in PartCraft the placed features are counted on the page (bin/test-boardlink.mjs, tools/boa |
| Propose, accept, refuse and stale proposals | An accepted proposal changes the agreed board and raises the revision; a refused one changes nothing; the proposing side cannot accept; a proposal whose starting point was changed by another accepted proposal is refused as stale and applies nothing (bin/test-boardlink.mjs) |
| History kept and saved | Baseline, proposals and decisions appear in order with who and when, and a saved session reads back with the same board, proposals and history (bin/test-boardlink.mjs) |
| Differences between two boards as a proposal | Two boards that differ in the outline, one moved hole, one removed hole, one new keep-out and one moved part give exactly those five changes, and applying them to the first board gives the second (bin/test-boardlink.mjs) |
| STEP file read back with our own reader | The file is read as AP214 with one solid for the board and one per component and no failed face; the board's volume matches area times thickness less the holes within 0.01 percent and each box exactly. Not opened in another program (bin/test-boardlink.mjs) |
| Heat sink formulas against closed forms and the textbook table | Fin efficiency tends to 1 with no convection and to 1 / (mL) for a long fin; the channel form tends to El / 24 and to El^(1/4) / sqrt(2.873); air at 300 K matches the textbook viscosity, conductivity and Prandtl number within 2 percent; the base rise equals power times resistance; the smallest sink |
| Thermal hand-off through the Fields engine | The values the helper writes are accepted by the Fields cooling tool, its energy balance closes, and its junction temperatures equal the thermal engine called directly; in PartCraft the values arrive in the open Fields panel and the junction temperature lies between the air and the limit (bin/test-b |
| Enclosure clearance against heights and distances built into the test | A header 8.5 mm tall under a 10 mm lid has 1.5 mm, a lid at 8.9 mm leaves it 0.1 mm short and a lid at 8 mm is through by 0.5 mm; a notch in an L-shaped wall is found; an opening lets a part reach through; a post in the way is found and a rib above the part is not (bin/test-boards2.mjs, browser) |
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 an aid for agreeing a board's shape, not an approval or a certificate: it checks nothing electrical. The enclosure check knows only the box, posts and openings you type, heights come from the board or a 2 mm stand-in, and a wall is a box round the board. The IDF 3.0 record layouts were compared on 2026-11-25 with a public IDF 3.0 reader whose source quotes the specification's field lists (the specification text itself could not be fetched); the arc sign, the loop direction rule, the rotation of a bottom-side part and the date form are not checked, and no file was exchanged with another program, so try a small exchange first. IDX is unverified: not checked against the IDX specification. It was written from working knowledge: its schema and guidelines are a paid publication we do not hold, nothing was validated against them, and other programs may refuse our IDX files. Component bodies are boxes on the courtyard at the part's height, or at a 2 mm stand-in where no height is known; real component models are not read. The board model has straight outline edges: arcs read from a file become short straight pieces, and none are written. An IDF file carries no pads, nets or copper, so a board read from one cannot be routed. The STEP file is one part holding several solids, without an assembly tree, colors or copper, and was read back with our own reader only. Changes are typed as numbers in the panel; they are not picked on the 3D model, and moving a placed body in PartCraft does not make a proposal. Messages about a refused change are in English from the board engine. The session lives in this browser until you save it.
The heat sink helper sizes a plate-fin sink from textbook formulas for fin efficiency and for natural and ducted forced convection; it ignores flow bypass, spreading in a base smaller than the part, radiation between fins and mixed convection, and is meant to be within 30 percent at best: trust a maker's sink table measured with your part over it. The hand-off treats the whole board as one temperature (the Fields tool's model), which flatters a hot part on a board that spreads heat poorly.
Files and formats
Reads a board file (.cc-board.json), an IDF 3.0 board file (.emn) with its library file (.emp), IDX messages (.idx: baseline, change, answer; IDX is unverified: not checked against the IDX specification) and a saved session. Writes the agreed board as an IDF board file and library file, an IDX baseline (unverified), a STEP file (AP214, exact solids), a board file, and the session with its proposals and history as JSON; each open proposal as an IDX change message and each decision as an IDX answer. In PartCraft it writes features into the open part, saved with it. In CadCraft it draws polylines, circles and text on BOARDLINK layers.
Get started
- Switch the add-on on in Settings, Add-ons, then open the Board to enclosure tab.
- Choose Example board, or open your own board file.
- In PartCraft, choose Place the board in the part and look at the board and its components in the view.
- Under Propose a change, move a hole a few millimeters and choose Propose; switch the side you work on, then accept or refuse it under Proposals.
- Save the STEP file or the IDF files under Files.
Languages
The text is available in:
- English (en)
Works in
| Edition | Works | Note |
|---|---|---|
| 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
| Version | Channel | Date | What changed |
|---|---|---|---|
| 1.0.0 | lab | November 25, 2026 | First version in the Library. |
Licence and maker
CadCraft (CadCraft, first-party). Licence: Apache-2.0. Dependencies carry their own licences, listed on their pages.