Create a shape builder section
A shape builder section is composed from up to 20 shapes — standard
profiles drawn from dimensions (IShape, RectangularBar, Channel,
…) or items pulled from a section library (Library). SPACE GASS
computes the section properties (A, J, Iy, Iz) from the shapes; you
never supply them.
This recipe builds a 360 UB 44.7 with a 250 × 16 cover plate welded to
its top flange, then puts a member on it. Dimensions and translations
are in the job's section-properties unit (mm by default — see
GET /job/units).
1. Preview the base shape to find its reference points
Shapes are positioned relative to each other with an anchorPosition:
"snap my point N onto your point M". The numbered reference points
come from POST /sections/shape-builder/preview, which computes the
geometry without writing anything. Point 1 is the centroid; 2–5 are the
top, right, bottom and left mid-edges.
In both SDKs shapes is a plain list of shape objects, and each shape
class sets its own shapeType.
2. Define the plate and anchor it onto the UB
The plate's bottom-centre point (4) lands on the UB's top-centre point.
anchorShape is the one-based position of the UB in the shapes list.
anchorPosition is input-only: the API converts it to translateY /
translateZ, which is what you read back.
3. Create the section
Preview the full body first if you want to check the overall extent;
then POST the same body to /sections/shape-builder. The response is a
normal Section with the computed properties and shapeCount.
4. Apply it to a member
The section is referenced by Id like any other.
5. Read the shapes back
GET /sections/{id} expands the shapes by default. A Library shape is
resolved on create, so it comes back as the concrete profile (here an
IShape) with the library item's name in shapeName. In the SDKs each
shape comes back as its own class.
To replace an existing section's shapes in place (keeping its Id and
modification factors), PUT the same body to
/sections/{id}/shape-builder.
Run this example locally
The complete version — nodes, restraints, material, a comparison of the
computed properties against the plain UB, and save — is in the repo as
Example.BuiltUpSection (C#) and
built_up_section (Python).
Clone and run:
See also
- Simple Beam Model — the beam this recipe's nodes, restraints and material come from.
- API reference:
POST /job/structure/sections/shape-builder,POST /job/structure/sections/shape-builder/preview,PUT /job/structure/sections/{id}/shape-builder,GET /job/query/geometry/sections/{id}.

