Foundation (Python)LibrariesVendor catalogs (goBILDA)

Vendor catalogs (goBILDA)

Design with parts you can buy, by their part number. The cadbuildr-catalogs library turns a vendor part number into a parametric part with named mating interfaces, so you join parts with connect instead of coordinates, and every part lands in your bill of materials with its vendor, part number and product link. The first catalog is goBILDA (U-channels, grid plates, Sonic Hubs, NEMA stepper mounts).

Prerequisites: pip install cadbuildr-catalogs (it installs cadbuildr-foundation and cadbuildr-stdlib).

Build a part from its number

from cadbuildr.foundation import show
from cadbuildr.catalogs import from_sku, lookup
 
channel = from_sku("1120-0009-0240")   # goBILDA 1120 U-channel, 9 holes, 240 mm
print(lookup("1120-0009-0240").url)    # the product page
show(channel)

Each family is one part with a sku input. In the Prototype app, pick a different part number in the configuration bar and the part is swapped live.

PartPart numbersMating sites
GoBildaChannel1120-… U-channel, 1121-… low-side, 1143-… mini low-sideweb_<i>, web_<i>_r90, side_l_<i>, side_r_<i>
GoBildaGridPlate1116-… aluminium, 1117-… / 1127-… polycarbonatetop_<ix>_<iy>, bottom_<ix>_<iy>
GoBildaSonicHub1309-0016-4008 (8 mm REX), -0008 (8 mm), -1006 (6 mm D)face, bore
GoBildaNemaMount1700-0016-0008 / -0011 / -0014 / -0017mount, motor

Index i on a channel is the i-th 14 mm hole from one end (24 mm apart).

Connect parts by their hole patterns

A part with threaded holes on a goBILDA pattern (a hub, a motor mount) mates onto any face with matching through holes; two through-hole faces bolt together. A pattern the face does not have is refused with a clear error.

from cadbuildr.foundation import Assembly, show
from cadbuildr.catalogs import GoBildaChannel, GoBildaNemaMount, GoBildaSonicHub
from cadbuildr.stdlib.actuators.stepper_motors.nema_stepper_part import StepperMotor
 
asm = Assembly()
beam = GoBildaChannel(sku="1120-0005-0144")
asm.ground(beam)
 
mount = GoBildaNemaMount(sku="1700-0016-0017")
asm.connect(mount.interface("mount"), beam.interface("web_0"))
motor = StepperMotor(frame="NEMA17")
asm.connect(motor.interface("mount_face"), mount.interface("motor"))
 
leg = GoBildaChannel(sku="1120-0003-0096")
asm.connect(leg.interface("web_0_r90"), beam.interface("side_l_2"))   # across the beam
 
hub = GoBildaSonicHub(sku="1309-0016-4008")
asm.connect(hub.interface("face"), beam.interface("side_r_4"))
 
print(asm.check())   # [] — every part is placed by an interface
show(asm)

The same build is the ready-made GoBildaMotorFrame assembly, whose four inputs are part numbers.

Bill of materials

Catalog parts describe themselves to cadbuildr-bom: part number, vendor, product link, material and finish, and the mass when the vendor publishes it. Prices are not included.

Vendor CAD files (optional)

The models are built from the dimensions the vendor publishes; values it does not publish (wall thickness, hub length, mount outline) are approximated and listed per family:

python -m cadbuildr.catalogs manifest gobilda

If you need the vendor’s own model, download its STEP file from the product page yourself, then:

import cadbuildr.catalogs as catalogs
catalogs.store_step("1309-0016-4008", "~/Downloads/1309-0016-4008.step")
hub = catalogs.GoBildaSonicHub(sku="1309-0016-4008", use_vendor_step=True)

The file is kept in your user cache (~/.cache/cadbuildr/catalogs/), never in your project. A model built from it contains the vendor’s file: keep it for your own use and do not publish it.