Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Components and joints

A design is a tree of components. New Component (component.create) adds one, and Create Components from Bodies (component.from_bodies) turns bodies into components. Each component has its own origin, bodies, sketches and timeline entries. The active component (the radio button in the browser) receives new sketches and features; the others are drawn faded. Points and directions you give a command are in world coordinates even when the active component is moved or turned: a box’s corner and its length, width and height along X, Y and Z, or a cylinder’s base and its axis, land where you asked in the world (a box in a component turned by other than quarter turns keeps its sides along the component’s axes). A plane name such as XY is the active component’s own.

Activate Parent (component.activate.parent), at the right end of the MODEL tab while a component is active, activates the component one level up: a part inside a subassembly goes back to the subassembly, and the top component goes back to the design. A double-click on empty space in the view does the same, unless Preferences, Design, double_click_components is off.

Sketches drawn on a part’s face while the design was active belong to the design, so they collect in its Sketches folder. Move Sketches to Their Parts (component.move_sketches.to_parts), on a Sketches folder’s menu and on a sketch’s menu, moves the folder’s sketches (or the selected ones) to the part whose face each is drawn on, as dragging it onto the part would. Each stays where it is on its face, and the whole move is one undo step. A sketch with no single part to go to stays where it is: one on an origin, construction or fixed plane, on a body of the design itself, on a face without an exact attachment, or already in its part. The status bar says how many moved and why the others stayed; the command’s reply lists each sketch. With no sketches it looks at every sketch in the design.

Step by step

A two-leaf hinge: each leaf is a plate with a barrel along one edge, modelled as a body.

1. Make components. Right-click the Bodies folder in the browser and choose Create Components from Bodies. Each body becomes a component of its own. The first is grounded (the pin beside it): it stays where it is while the others move.

2. Join them. On the ASSEMBLE tab, click Joint. Click the end of Leaf B’s barrel, then the same end of Leaf A’s: Leaf B moves so the two circles meet. Choose Revolute for a hinge. If the part lands the wrong way round, tick Flip. Click OK.

3. Move it. Drag Leaf B: it turns about the hinge and nothing else. Leaf A is grounded, so it doesn’t move.

4. Drive it. Drive Joints turns a joint through its values: drag the slider, or type the angle. A ghost shows where the part started. OK keeps the new angle.

Components, placement and joints

A component is placed by its occurrences. Paste creates another instance of the same component, and Paste New creates an independent copy. Move an occurrence with the move triad, then Capture Position to keep it or Revert to put it back. Capture Position also saves every joint’s current values, and Revert Position puts the joints back to them, clamped to their limits, together with the parts, as one undo step. SolidCraft asks before the next command if a move wasn’t captured. Ground fixes an occurrence in place, and Unground (the same row of Placement in the browser’s context menu) frees it again. A joint solve that moves a part drops the part’s move not captured, so the part is shown where its joints put it; an exploded view stays shown.

The design’s first part is grounded when it is made: the first occurrence placed directly in the design by New Component, Create Components from Bodies or an import. Parts made after it, standard parts and copies made with Paste or Paste New start free, so do parts made inside other components. Any number of parts may be grounded, or none; opening a design never grounds anything. A grounded part refuses Move until it is ungrounded, and component.create takes grounded: true or false to choose for itself.

Drag a part to put it somewhere else. With the design active, press the left button on a part and drag: the part follows the pointer, the point you grabbed moving in the plane through it that faces the view, and stays where you let go, with its position captured. The whole drag is one undo step, and Escape during the drag puts the part back. The drag moves the placement of the active component that holds the part, so with the design active a part inside a subassembly moves the whole subassembly; activate the subassembly to move the part inside it. Moving a definition shared by several placements moves it in all of them, as Move does. A grounded part does not move, and a part that joints hold to something grounded moves only as far as its joints allow (below). Dragging any member of a chain joined to nothing grounded moves the whole chain, preserving its joint values. Shared nested definitions move in every instance; the selected instance follows the pointer even when its parent is rotated differently from the first one. A drag that starts on empty space, on a part that can’t move, or with Shift, Ctrl (Cmd) or Alt held draws a selection box instead. A drag over a selected part grabs that part, even where another part is in front of it: select a copy’s row in the Browser to drag it off a grounded copy placed on top of it. Other uncaptured moves stay pending. Scripts and agents do the same with occurrence.drag {occurrence or path, at, point}, which moves the placement by point - at in world coordinates and answers the placements it moved.

Move along the joint’s free axes. Select a face or a single assembly part, then choose Assemble → Move, or right-click the selected face and choose Move. Thick straight arrows move along the allowed axes; circular arrows turn about them. Grounded parts, rigid joints, fixed coordinates and coordinates controlled by parameter expressions have no handle. The handles appear only after Move is started and disappear when Measure or another command starts. A face selected for measurement does not open Move. If the selected part has no free joint value, Move shows a warning instead of handles. Check rigid joints, grounding, joint limits and parameter-driven values; OK or Escape dismisses the warning without changing those constraints.

While dragging, a readout shows the actual distance or angle from the drag’s starting pose, including when a joint limit or contact stops the part. Distances use the design’s display units. Rotation uses 10° steps near the ring; pull the pointer outside the dashed guide to use 0.1° steps. Crossing the guide changes precision without jumping to another angle. Change both step sizes under Preferences → Design → Assembly Move. Each drag is one undo step; Escape while dragging restores its starting pose. Done (or Escape when idle) closes the handles.

To use the previous Move panel, turn off Use joint motion handles for assembly Move in the same settings section.

Place a part from parameters. occurrence.move takes its translate as numbers or as length expressions over the design’s parameters ("translate": ["0 mm", "tube_front_y", 0]), as solid.move does for bodies. An occurrence moved by expressions that name a parameter keeps them (expressed_moves in component.list) and, whenever such a parameter changes, moves on by the difference, along the axes the move was given in (space: local or world), so an imported STEP part placed at a station follows the station. Other moves of it (a drag, another move) stay, and undo, saving and opening keep the expressions. Renaming a parameter carries into them, and deleting one they use is refused. A move by expressions is captured at once (capture: false is refused with them). If an expression stops working out (say a parameter becomes an angle), the part stays where it is until it works out again.

The same holds for the origin a move turns about (a part that turns about a point that follows a parameter is carried by what the turn leaves behind when the point moves), for the translation column of a matrix (the last entry of each of the first three rows, or entries 4, 8 and 12 of a flat one; the rotation entries are numbers), and for the matrix of file.insert_step, which places the new part the same way. A grounded part stays put, as with translate. The turn’s angle, the rotation entries of a matrix and an absolute placement (to, to_matrix) are worked out once, when the move is made.

Paste New copies nested component definitions, sketches, feature histories and generated dimension parameters. Repeated child instances remain shared within the new copy. Materials, appearances and wholly internal joints/motion records receive copied references. Design-wide user parameters remain shared; retained external links and omitted cross-boundary motion records are reported. Unsupported destructive links refuse the entire copy. See individual-instance and copy details.

Extract to File (component.extract, under Component in a component’s right-click menu) moves a component into a design of its own: its sketches, features, bodies, subcomponents and the joints among them go to the new .sc file at its origin, with the parameters they use, and the component becomes linked to that file, as Insert Design makes it. Its placements and the joints to the rest of the assembly stay. Components whose own history builds the same bodies are offered to become placements of the new link too (component.copies, component.replace_with_link). A component can leave when nothing outside uses its sketches or changes its bodies, no bodies were moved into or out of it, and none of its subcomponents is joined to the rest of the design. When it can’t, the menu shows Extract greyed out, and hovering it says why.

Joints (joint.create, J) connect two components by joint origins that snap to faces, edges, circles and vertices: rigid, revolute, slider, cylindrical, pin-slot, planar and ball, with offsets, flip and limits. As-built Joint keeps the current position, Rigid Group locks components together, Drive Joints moves a joint through its values, and Motion Link couples two joints. A rigid joint holds its parts still, so Drive Joints has nothing to drive on it: it says so and offers Edit Joint, where the joint’s type changes to Revolute (rotate), Slider (slide) or Cylindrical (both). Links can be chained (one joint drives a second, which drives a third), and a value is carried through a chain of up to 64 links in whatever order they were made. Contact sets stop motion where bodies would pass through each other, Motion Study keys joint values along a timeline, and Interference shows overlapping volumes in red, lists the pairs closer than its Clearance and each body’s nearest neighbour.

In the Joint and Joint Origin dialogs, picking a straight edge puts the origin at its midpoint with the motion axis along that edge. A revolute joint turns about the picked edge; a slider moves along it. Round edges use their circle’s centre and normal. Existing saved joint origins keep their axes.

A joint origin picked on a part inside a sub-assembly that is placed more than once stays on the copy it was picked on. A joint at it holds or moves that copy as a whole, since every copy shares the part inside. Scripts give the copy with "path": the occurrence ids from the root down to the part, as occurrence.properties reports them.

A joint origin on a face or a hole keeps the turn it had when it was picked: when the face tilts (a bend angle or a rotation changing with a parameter) the part on it tilts with the face but doesn’t spin about it.

A joint origin can also sit on an edge of a flat face ("edge": [x, y, z]): at the edge’s middle, pointing out of the face with its y into it, or with "corner": [x, y, z] at the corner near that point, its x and y running along the two edges into the face. The edge, the face and the corner are found again by name, so a bracket set 40 mm in from a panel’s corner (a planar joint with values [40, 40, 0]) stays 40 mm in from that corner when the panel changes size.

To center a slider in a slot, open Constrain and turn on Center between two faces. Pick the two parallel walls of the slot, then pick the reference on the slider. Pick a plane that marks the slider’s middle, or turn on Center the part by two faces and pick its two parallel faces. For a round part, pick its cylindrical face or axis instead. The rule follows the named faces when the design changes. A slider can still slide along the walls and turn about their normal; a round part’s axis stays in the halfway plane.

Scripts pass "faces": [[x, y, z], [x, y, z]] as a joint origin, with one point on each of two parallel faces of the same occurrence. Use assembly.constraint.create with "type": "center" for the plane or two-face case, or joint.create with "type": "line_on_plane" for an axis. For a part with a datum at its middle, Construct → Midplane followed by a mate to that datum is also an option.

A joint’s Z offset, angle, values and the minimum and maximum of its limits can be typed as expressions over the design’s parameters ("offset": "gap + 2", "values": ["travel"], "limits": [[0, "travel"]]). The joint keeps them and works them out again whenever the design changes, so a part seated gap above a panel moves with gap, and a slider limited to travel stops at the new travel (its value is held inside the new limits). Renaming a parameter carries into the joints that use it, and deleting one they use is refused. If an expression stops working out (say a parameter becomes an angle), the joint is left out of the solve and joint.solve gives the reason, instead of placing the part from old numbers. Typing a plain number, or driving the value, drops that expression.

Edit Joint → Position shows Offset X, Offset Y and Offset Z. In the dialog, X and Y are where Component 1’s origin sits from Component 2’s, along world X and Y laid onto the joint’s plane (world Z takes the place of the one the plane faces, as the two arrows at Component 2’s origin show); on a top or bottom face they are exactly world X and Y. Offset Z goes along the joint’s axis. The joint keeps X and Y along its first attachment’s own axes, which is what scripts give as offset_x and offset_y; the dialog turns one into the other, so designs saved before keep their parts where they were. Expressions typed for X and Y follow their parameters just as Offset Z does. Where the joint’s axes don’t line up with world X and Y (a part turned 45 degrees, say), the joint keeps them as a mix such as 0.7071067811865476 * (gap), and Edit Joint shows their values. Older designs keep their saved attachment positions, with X and Y initially zero for additional shifts from those positions. Assembly constraints keep their existing controls and reference geometry until changed to a plain joint.

Relations are joints that tie only part of a placement, so a part is placed the way a designer describes it, one relation at a time: parallel (z along z, free to move and turn about it), perpendicular and angle (z square to z, or at the joint’s angle from mated), point_on_plane (a point on a face’s plane, offset off it), point_on_line (a point on an axis) and line_on_plane (an axis on a face’s plane: a cylinder’s radius as offset lays it tangent). A relation is made where the parts are: B moves no further than the relation needs. Several relations between the same two parts add up; the solver meets them together, each one’s degrees of freedom come off what is left, and one that can’t be met is reported, not forced:

{"command": "joint.create", "params": {"type": "parallel", "a": "Panel top", "b": "Bracket bottom"}}
{"command": "joint.create", "params": {"type": "point_on_plane", "a": "Panel top", "b": "Bracket corner"}}
{"command": "joint.create", "params": {"type": "parallel", "a": "Panel front", "b": "Bracket face", "flip": true}}
{"command": "joint.create", "params": {"type": "point_on_plane", "a": "Panel front", "b": "Bracket corner", "offset": -40}}
{"command": "joint.create", "params": {"type": "point_on_plane", "a": "Panel end", "b": "Bracket corner", "offset": -40}}

leaves the bracket flat on the panel, square to its front, its corner 40 mm in from the front and the end, wherever the panel’s size takes them. Coincident faces are a planar joint, a distance between faces is planar with an offset, concentric is cylindrical and two points that meet are ball.

The check behind it, inspect.clearance, does all of that in one call for any number of bodies, which suits scripts and agents checking a whole assembly:

{"command": "inspect.clearance", "params": {"clearance": 1, "nearest": 2, "skip_within": "component"}}

It returns overlaps (pairs sharing at least min_volume, 0.01 mm³ by default, with the shared volume, area, box and centre), near (pairs closer than clearance, with the distance and the two nearest points; a contact sharing less than min_volume is listed here at 0 with its overlap_mm3), nearest (each body’s nearest closest checked bodies, omitting pairs in unchecked) and unchecked (pairs whose overlap could not be worked out, with the reason and the non-boolean minimum distance_mm when computable). against limits the check to pairs with one body in bodies and the other in against, and skip_within leaves out pairs inside one occurrence ("occurrence") or one placed component, its subcomponents included ("component"): the parts of a bought component that touch by design. Distances are measured on the exact faces and edges; the meshes only rule out pairs that are too far apart, and the pairs left are checked in parallel. inspect.interference remains for the overlaps alone: it clears pairs whose meshes stay apart without intersecting them, intersects the rest in parallel, and returns after budget_s seconds (default 240) at most, listing the pairs it had no time for as not checked.

Mesh bodies (STL, 3MF and OBJ imports) are not checked by either command: each is listed in unchecked as {a: name, b: null, reason: "mesh body: not checked"}, so count: 0 or an empty overlaps is not mistaken for “no overlap” when a mesh body was in the design.

Gear, Rack and Pinion and Screw (on the ASSEMBLE panel) are motion links whose ratio comes from the parts rather than a typed number:

  • Gear (joint.gear {a, b, ra, rb}) couples two joints that turn. Joint 2 turns ra/rb as far as joint 1, the other way round; Internal gear (one of them is a ring gear) turns both the same way. Pick the round face of each gear, such as its pitch cylinder, or type the radii. Tooth counts work as well as radii, since only their proportion counts. Picking a gear’s face also chooses the joint that gear turns on.
  • Rack and Pinion (joint.rack_pinion {a, b, radius}) couples a joint that turns with one that slides: the rack travels the pinion’s pitch radius times its turn in radians (r·θ). Either joint may drive the other. In joint.list the ratio is given per degree, as for any link between an angle and a distance.
  • Screw (joint.screw {joint, pitch}, or {a, b, pitch} for a revolute joint and a slider) advances pitch per turn. A cylindrical joint is a screw on its own: its turn drives its travel. The thread is right-handed; Reverse makes it left-handed.

A radius or pitch may be an expression of the design’s parameters, and a picked face is found again whenever the design changes. Change the parameter or the gear’s diameter, and the ratio follows. The new link leaves the driven joint where it is, so teeth modelled in mesh stay in mesh. Reverse turns the driven joint the other way, for joints whose axes point opposite ways. Redefining a link (link: i, such as turning it the other way with Reverse) also leaves the driven joint where it is, so the gears stay in mesh at the pose they are in. These couplings are motion links, so they work in closed loops, with contact sets and in motion studies: a rack can push the piston of a slider-crank, or a pinion can steer through a rack and its tie rods. Drive the joint that drives the coupling (joint 1, the pinion, or the screw’s turn), not the driven one. A joint follows one link at most, and a coupling that would drive its own driver is refused. joint.list lists each coupling’s definition under links with an error when it can’t be worked out (the picked face is gone); the link then keeps its last ratio.

Cam (joint.cam {a, b, profile}, on the ASSEMBLE panel) makes a follower ride a cam. The cam turns on a revolute joint (a); the follower is a slider (b, a translating follower such as a valve tappet) or a revolute joint (b, an oscillating follower such as a rocker arm). The profile is the cam’s outline in a plane square to its axis: a closed profile of a sketch in the cam’s component, or the cam’s edges picked on its body (one click on an edge takes the closed loop it is on in that plane). The follower is:

  • a Knife edge: a point on the cam;
  • a Roller of a radius, typed or taken from the roller’s round face (picking that face also says where the roller is);
  • a Flat face square to a slider’s line, such as a bucket tappet.

A translating follower’s line runs along its slider’s axis, through its Tip when one is picked (its knife’s point or its roller’s centre), so a follower offset from the cam’s axis rides the right flank. An oscillating follower needs its tip, or its roller’s face, to know its arm. The follower rides the cam from the side it is on (Other side takes the other one). The follower’s travel over a turn of the cam is worked out from the profile and kept with the link, one value a degree with a smooth curve between them that never overshoots its samples. It is worked out again whenever the design changes: change the cam’s sketch, a parameter or the roller, and the follower follows. Like the gears, the new link leaves the follower where it is (model it touching the cam), and the cam is a motion link: it drives in Drive Joints, plays in motion studies, works in closed loops (a tappet can be the piston of a slider-crank) and stops at contact sets. The profile may also be on the grounded part, with the follower’s guide on a turret that the cam joint turns. joint.list gives a cam’s link lift (the follower’s lowest and highest values and its rise) instead of a ratio. A profile that is not closed, a line or an arm that misses the cam somewhere, a follower that would jump, and axes that are not square or parallel are refused.

A joint moves one component against another, so its two picks must be on different components. A STEP file with several parts often comes in as bodies of one component, and picks on two of those bodies make no joint. The Joint and As-built Joint dialogs say so under the picks and offer Create Components from Bodies: each picked body gets a component of its own and stays where it is, the picks are kept, and the joint previews. joint.create refuses such origins with the same advice.

Joints may close a loop, as in a four-bar linkage or a slider-crank. When one joint of the loop is driven, the other joints in the loop follow so that every joint still meets, and the mechanism stays in the assembly mode it started in (an open four-bar does not flip to the crossed one). If the motion would take a loop past the point where it can still close, for example driving a rocker beyond its swing, the motion stops at the last position where the loop closes, and the drive reports stopped_by_loop. A loop that cannot close at all is listed under conflicts and nothing in it moves. joint.list reports how many degrees of freedom each part still has with its loops closed: the moving parts of a four-bar have one between them, and a loop locked by a rigid joint has none. A joint a motion link drives adds no freedom of its own: two meshed gears on a fixed housing have one between them, each turning with the driving gear. The Drive Joints dialog says when a drive stops short and why. While it previews, a row under the values gives the value the joint reached and the reason (the loop that can’t close further, or the two parts a contact set keeps apart), and after OK the status line repeats it. The value box keeps what you typed. The dialog opens on the joint picked in the browser, or on the first joint that moves when none is picked.

Drag a part that joints place and it moves as far as its joints allow: the point you grabbed follows the pointer in the plane through it that faces the view, the joints on the part’s chain take the values that bring it nearest, within their limits, through motion links, and with closed loops kept closed, and a four-bar’s rocker stops at the end of its swing. The whole drag is one undo step, and Escape puts the part back. A grounded part, or one its joints hold fixed, is not moved; a drag on it draws a selection box. While you drag, the part is only shown moving (the design, and what depends on where parts are, follow when you let go). With contact sets on, each step of the drag changes the design instead, so that the drag stops where two parts of a set touch, and Escape leaves the part where it is. The release runs joint.reach once, which scripts and agents use directly to put a part’s point somewhere: joint.reach {occurrence, point} moves the joints on its chain from where they are to the nearest pose (the arm keeps its elbow up or down, and a linkage stays on its branch). at picks the part’s point (the centre of its bodies by default), z with axis also turns one of its axes, and joints names the only joints to move (the other joints of a closed loop they are in follow). The answer says whether it reached the point and how close it got (error_mm, error_deg), and when it falls short, the limits it rests on (stopped_by_limit) or the loop that stopped it (stopped_by_loop). Contact sets are not checked by a reach; drive the joints for that.

The solver places what it reaches from the root and from grounded components. A chain of joints that is joined to nothing grounded is never placed, so driving one of its joints moves nothing. The drive says so: joint.drive answers moved: false with a reason and the unconnected part (“Pedestal:1 is not connected to anything grounded”), the Drive Joints dialog shows the same row, motion.play lists such joints under unmoved, and joint.list names every such chain under floating. Ground a part of the chain, or join it to a grounded part (a rigid as-built joint keeps it where it is), and it moves.

An imported assembly holds each of its parts with a rigid joint, so joint.list on it can run to hundreds of rows. Filters keep only the rows asked for: moving_only leaves out rigid and suppressed joints, exclude_rigid every rigid joint, exclude_rigid_groups only the rigid joints that hold a component’s contents together (the ones Unlock Contents removes), kinds keeps the listed joint types, and occurrences keeps the joints with an end at those parts or at a part inside them. dof_free_only lists only the parts that can still move under dof, and joint.solve takes it too. The reply’s omitted counts what was left out, by type, and summary: true adds every joint counted by type, with one row per component for the rigid joints that hold its contents (the 20 largest; more_rigid_groups counts the rest). joint.inspect takes the same filters.

Driving a joint turns the side that is held by no grounded part, with everything joined to it rigidly. A rigid joint whose origin is lost (its face was deleted) still holds its two parts as they are, so the parts beyond it move with the side that turns. A joint between two grounded parts has nothing to turn: the reason says “both sides are held by grounded parts” and names them.

joint.drive answers the joint’s values as joint.list gives them, in degrees and millimetres with their units and limits, and moved says whether any part moved. A joint’s origins are mated by default: B’s z axis is turned against A’s, as two faces meet. flip: true lines them up instead, so two origins given at one point with the same z and x stay as they are. A point origin without x takes its x from z alone, so a part turned about z turns back when it is joined: give x on both origins, or use joint.as_built, to keep it where it is. Without an angle, a new joint (other than a relation, which starts where its parts are) takes no turn or a half turn about its axis, whichever turns B less: two faces that already meet, a plate under a panel, stay as they are instead of B spinning about their shared normal. For scripts that drive many steps, quiet: true leaves the per-part degrees of freedom out of joint answers, and motion.play with quiet: true gives the poses of only the parts that moved.

Motion Trace (motion.trace, on the ASSEMBLE panel) draws the path a point of a part takes while a joint is driven or a motion study plays, such as the coupler curve of a four-bar. Pick the point on the part (a face centre, a circle centre, an edge midpoint or a vertex), then either a joint with the values to drive it from and to (a turn of the joint from where it is, at first) or a motion study. The path previews in the viewport as the mechanism would move: closed loops follow, and the path ends where a loop can no longer close or a contact set stops the motion, which the dialog says under the values. OK keeps the path as a 3D sketch spline in a new sketch of the root component (Motion Trace1, …), where no joint moves it, and it can serve as a sweep or pipe path. New traces retain their source and update when the mechanism’s joint origins, limits, motion links or driving conditions change. Playing or dragging the mechanism does not redefine the trace: it keeps the assembly branch from when it was made. Unrelated parameter and display changes do not resample it. A path that comes back to where it started is kept as a closed, smooth spline. motion.trace {occurrence, point, joint, from, to, index?, samples?} (or {occurrence, point, study, samples?}) answers the world points without changing the design, and motion.trace.keep with the same parameters (and name?) keeps them. point_ref can retain a joint-origin snap (such as {occurrence, face: [x,y,z]}), so the point follows its resized face; without it, the point is fixed in the part’s coordinates. The dialog retains its face or circle snap. motion.trace.edit {sketch, from?, to?, samples?} changes a joint trace’s driving conditions; joint with from and to, or study, replaces its motion source. Expressions in from and to follow parameter edits. Study traces follow edits to the referenced study, including its step count when Samples was left at the default. auto_update: false in motion.trace.keep makes a fixed curve; in motion.trace.edit it detaches an existing association, preserving the curve. Curves saved by earlier versions remain fixed. motion.list includes the associations and their errors. If a source is lost, the sketch warns and keeps its last successful curve until the source is restored or the association is detached. Changes and their generated curves undo and redo together. A trace takes 2 to 500 samples: 100 by default for a joint, one per step for a study.

The Chebyshev linkage demo builds a complete four-joint mechanism, plays a saved study and demonstrates the same retained trajectory updating after a link-length or driving-range edit.

Export Animation… in the Motion Study dialog saves the study as an animated GIF, drawn from the viewport’s camera as the study plays (the keys in the dialog count, even before OK). motion.export_animation does the same for scripts, the CLI and agents, without a window: give a study, or a joint with from and to (and index?) to animate a drive, and a path. A path ending in .gif gets an animated GIF that loops; any other path is a folder that gets the frames as frame-0001.png, frame-0002.png, and so on (made if missing; frames of a longer earlier export there are removed), for a video tool. The web app writes GIFs only. samples is the number of frames (one per step for a study by default, 100 for a joint), width and height their size in pixels (800 × 500 by default, at most 4096 a side), and fps the GIF’s speed (20 by default); grid: false and axes: false leave out the ground grid and the origin’s axes. camera takes the reply of the control channel’s ui.camera (or any of its fields; the rest come from the view view.apply chose, or the home view framing the model). The frames are drawn by the same renderer as solidcraft-cli snapshot, on a copy of the design, which is not changed. A GIF keeps one palette for all its frames, so colours don’t flicker, and stores only what changed from one frame to the next. Frames are capped: at most 1000, and a GIF holds at most 2^26 pixels of frames (about 160 frames of 800 × 500). An automatic exploded view moves the occupied sibling groups immediately below their common enclosing occurrence. If all the parts are inside one subassembly, the view separates those parts rather than moving the enclosing subassembly as a whole. Each group’s centre moves away from the mean of their centres by the chosen scale times its offset. At least two occupied groups are needed.

An exploded view animates the same way: give its name or id as view (instead of a study or a joint) and the parts come apart at a steady pace, from the assembled placement to where the view shows them; back: true brings them back together, exploded at the middle frame. That takes 41 frames by default, or 81 with back, and the home view frames the parts both assembled and exploded. As with explode.show, the design keeps its placements.

Motion analysis. The Motion Study dialog’s Study box opens a saved study to edit, and by its timeline the dialog charts what the study does. Plot picks a moving joint value (a joint picked in the Browser is picked here too), or Picked point once a point is picked in the dialog’s Point box, and Quantity whether to show its value, velocity or acceleration; the chart runs over the study’s steps with a cursor at the step shown, and a click or a drag on it moves to that step. Values are in degrees and millimetres; rates are per step, or per second once Duration says how many seconds the whole study takes. A picked point charts its distance from where it starts, its speed and the size of its acceleration. Check collisions plays the study and lists the pairs of parts that pass through each other, with the steps where they do (a click on one shows the first of them); those steps are shaded on the chart. It checks the parts picked in Components (against the ones picked in Against, when there are any), else every component, or the pairs of the design’s contact sets (a choice beside the button once it has any).

motion.plot {study, joints?, occurrence?, point?, samples?, duration?} answers the same numbers: for each joint value its value, velocity and acceleration per sample (with their units), and for a point its position, velocity and acceleration vectors, speed and acceleration_norm. The study plays as motion.play places it (closed loops follow, contact sets stop it), each sample from the one before, on a copy: the design is not changed. Velocities and accelerations are finite differences between samples, central inside and one-sided at the ends, so they are as smooth as the samples are dense (up to 1000, one per step by default). Angles are unwrapped, so a joint that turns on past half a turn keeps counting. motion.interference {study, occurrences?, against?, contact_sets?, samples?, budget_s?} answers each colliding pair with its first_step, last_step, the steps ranges where they overlap, the most volume they share at a sample (volume_mm3, worked out exactly from the bodies), the first sample sharing that much (deepest_step) and how far into each other they reach (depth_mm, an estimate from points of the bodies’ contact meshes). When the volume could not be worked out at every sample they overlap (more than 16 colliding pairs, or past the check’s 256 body intersections), volume_mm3 and deepest_step are null and not_measured says why. It plays the study as motion.play does, but contact sets don’t stop it, and parts are tested at the samples only: a part that passes right through another between two samples is missed. Parts are told apart by occurrence, as contact sets tell them apart: an occurrence inside a sub-assembly placed twice is one part, so its two copies are not checked against each other. A check takes at most 256 bodies; on a large design, list the occurrences to check (an arm, with against the parts it must miss). When the work runs out it says truncated and the step it checked_to, and it is not clear, even when nothing collided in the steps it checked. A mechanism with detailed parts, such as a gear train, can need more than that fixed work budget: give it budget_s (seconds, at most 86400) and the check runs until that time instead, looked at between samples. joint.sweep {joint, from, to, index?, step?, refine?, occurrences?, against?, contact_sets?, report_gaps?, apply?} drives one joint value from from toward to and answers how far it gets before parts touch: stopped_at (the last value clear of contact), stopped_by (the two parts and the point at which they touch, or "loop" where a closed loop can no longer close, or "limit"), and with report_gaps the nearest gap at every sample and the nearest each part came to another (min_gap). The samples are fine enough that no part passes through another between two (or step apart), and the first contact is bisected until no part moves more than refine (0.01 mm by default) across it. Gaps are distances between the parts’ tessellations (gap_method: "mesh"): exact for flat faces, within gap_tolerance_mm for curved ones. Pairs already touching at from, such as parts joined face to face or a door resting on its frame, are listed in touching_at_start and stop the sweep only once they pass into each other, deeper than they start. The sweep runs on a copy (closed loops follow, contact sets don’t stop it) and leaves the design as it was unless apply is true.

Find Limits. In Edit Joint, the Limits section’s Find Limits button fills in each value’s Minimum and Maximum from where the parts the joint moves first touch another part, turning or sliding each way from where the joint is now, and ticks its limits. It searches the joint as the dialog has it (a type, flip or offset changed but not yet applied included), on a copy: nothing changes until OK, so the values can still be rounded or edited. They are rounded toward the joint’s value (a tenth of a degree, a hundredth of the length unit) so they stay clear, and a line under each value says what stopped each side. An angle is searched a turn each way: a side that meets nothing is set a turn from the other side, or half a turn each way when nothing is met at all. A distance is searched as far as the parts reach; a side that meets nothing there keeps what it had, and the limits stay off until both sides are found. Parts already in each other where the joint is now are named, and stop the search only once they go deeper. The search runs while the window goes on (Cancel drops it). joint.find_limits {joint, index?, refine?, step?, occurrences?, against?, contact_sets?} answers the same: for each value its min and max (null where a distance meets nothing), what stopped each side (min_by, max_by: the two parts and where they touch, or "loop", "limit" (the limit of another of its values, or of another joint through a motion link), "turn" or "range"), the range searched, and the parts touching_at_start and overlapping_at_start (with depth_mm). The joint’s own limits are left out of the search, closed loops follow, and each side is bisected to refine as joint.sweep does.

Insert Design (component.insert_design {path, translate?}, on the ASSEMBLE panel and in the File menu) adds a component linked to another saved design, so each part can live in its own document. When other designs are open in tabs, the button first lists them under Open designs. One click inserts that design; a design not saved yet is greyed out, as it has no file to link; one with unsaved changes inserts its saved file, and the status line says so. Browse… at the end opens the file picker, as the button does when no other design is open. Preferences › Design › Insert Design lists the designs open in other tabs first turns the list off. A STEP or mesh file picked there is inserted as Insert STEP or Insert Mesh would. The part’s solid bodies come in as they sit in that design, and they are kept in the assembly, so it opens even without the part file. Its mesh bodies, such as the parts of a KiCad board, come in too, in the same linked component, and Update Links follows them as well. A design with mesh bodies only can’t be linked yet. The link is stored relative to the assembly’s folder once the assembly is saved. For scripts, translate: [x,y,z] places the design’s origin in millimetres from the destination parent’s origin (the active component unless parent is supplied). It defaults to [0,0,0]. With reuse: true, insertion reuses the existing linked component but uses the same coordinates; it does not inherit another occurrence’s position or rotation. For example, inserts at [20,0,0] and [40,0,0] place the two origins at 20 and 40 mm, even when the second reuses the link. After the part file changes, Update Links (component.update_links) reads it again. An assembly that opens, or whose tab comes back to the front, does that by itself for the parts whose files changed since it last read them, whether the part was saved in another tab, another window or by a checkout. The parts it reads come in as one step, so one Undo takes them all back. A part that cannot be read keeps its bodies, is tried again the next time, and holds up no other. Update changed linked designs when a tab comes back (Preferences, Design, update_changed_links) turns this off.

Insert STEP also links .step and .stp files on disk. Its component shows the same link in the Browser, and Update Links and Break Link (Insert › Links) work on it. Saving the assembly stores the source path relative to its folder. Updates replace the imported bodies in one undo step; references that still resolve are kept, and references that no longer resolve are reported. Missing or corrupt sources keep their previous bodies and are retried next time, without holding up other links. The same Update changed linked designs when a tab comes back preference controls automatic STEP refresh. Use Break Link on the component to keep an independent copy, or pass link: false to file.insert_step. Older designs keep their unlinked imports. The web app keeps independent copies because uploaded files have no disk source path.

A file that an installed importer plugin reads links the same way: Insert Design takes it (component.insert_design with path, and format and options to choose the importer). The link remembers which plugin and version read the file, with its options. Update Links asks that plugin to read the file again when it changed, and keeps placements, names and joints as for any linked part. If the plugin is not installed or is turned off, the link says which plugin and version it needs and the component keeps its last bodies. A file read by a plugin is not read again by itself when a tab comes back; use Update Links. Break Link keeps the bodies and forgets both the file and the plugin.

An assembly can be saved without the bodies of its linked parts: file.save {linked_bodies: false} (or file.save_as). The file then keeps each link, with its placements, joints and face names, and no copy of the part’s bodies, so it stays small and a change to a part does not rewrite the assembly’s file. This suits designs kept in git as .json. Opening such an assembly reads the bodies from the part files again, so the part files have to be there: a part that cannot be read has no bodies, its feature says so, and Update Links reads it once the file is back. The assembly keeps the choice: later saves, Save As included, leave the bodies out until a save with linked_bodies: true puts them back. A link whose part file cannot be read when the assembly is saved keeps its bodies in the file, and the save says which. So does a link whose part file changed since the assembly read it, and a link from an older SolidCraft that kept no record of the file it read: run Update Links, then save again. A .sc assembly saved this way has no saved model, so it is evaluated when it opens. A part that is a plain .json design is evaluated the first time it is read this way, and that evaluation is kept on this computer with the reused imports (Clear Reused Imports removes them), so later opens read an unchanged part without building it again. A linked STEP file (Insert STEP) is left out the same way and read again from the STEP file when the assembly opens; if the STEP file changed meanwhile, its new bodies come in and List Links shows it as changed. A STEP file inserted with reader: "cadmpeg" keeps its bodies in the file, because reading it again gives STEP text, not the records it was read into. Each save without linked bodies names it in its warnings. The mesh bodies a linked part brings (an STL or 3MF inserted in the part) are left out with its solids and read back with them. An STL, 3MF or OBJ inserted straight into the assembly is not linked, so it stays in the file. There is no button for this yet: run the command from a script, the command line or an agent.

Linked files from other folders load after you allow them. When an assembly opens, the parts in its own folder, or below it, are read again by themselves as above. If a changed part is in another folder, SolidCraft asks once, naming the folders: Load reads those parts now and remembers the folders, so designs that link files from them load them as they open from then on; Not now leaves them out of date, and Update Links reads them whenever you choose. An assembly saved without the bodies of its linked parts follows the same rule: parts in another folder have no bodies until you answer Load. So does one you recover after a crash, for the parts it had not read when it was autosaved. A script or agent that opens it with doc.open reads every linked part it may read; linked_bodies: "folder" keeps to the assembly’s own folder. A linked part that was itself saved without the bodies of its own linked parts follows the rule too: read by itself, it reads them only from the assembly’s folder or its own. One that reaches further is not read in part; its feature says so, and Update Links reads all of it. The folders you allowed are kept in your own settings, never in a design, and are listed under Preferences › General › Files, where you can remove one or forget them all. A design opened by a program (the command line, an MCP client, the control channel or the assistant) never asks: its parts in other folders stay out of date, also in folders you allowed, and running component.update_links (all links, or components: [ids]) reads them. The command line and a headless MCP session don’t read links by themselves when a design opens, so there component.update_links is the way to bring in changed parts.

To edit the source, right-click a linked component or occurrence in the Browser and choose Open Linked Design. It opens the part in another tab and reports if its file is missing. Break Link (component.break_link) brings the linked design’s history in: its features, sketches, subcomponents, joints, looks and the user parameters they use become the component’s own (a parameter whose name the assembly already has comes in as w_2), and the file is forgotten. The component keeps its name, every placement, the joints on it and the looks given in the assembly; links inside the linked design are broken the same way, so nothing stays linked. When the file can’t be read, the component keeps its bodies without history and a warning names the file. A link that keeps a design’s components is the exception: they are already components here, so they stay as ordinary components with the bodies the link read and the design’s history is not brought in (it would add its components a second time; the reply’s notices say so). One undo step. component.links lists the links, whether their files are found, and whether they changed since the assembly last read them (changed). When a file can’t be reached it also gives a state (missing, unreadable or not_allowed) and a reason. A linked component holds the part’s bodies only: its timeline, parameters and sheet-metal data (flat pattern, bend table) stay in the part’s own design.

When a part changes, the designs that link it, and the ones that link those, are out of date. inspect.where_used (path, root, max_depth?) lists them: it reads the link information of every .sc design under root (no geometry is opened), and answers each design that links path directly or through others once, with its depth, and the order that puts children before parents. assembly.propagate (same keys, and dry_run?, true by default) follows that order: a dry run opens each design in memory and reports what updating it would do (changes, joint conflicts, features that would fail), writing nothing; with dry_run: false each design is opened on its own, its links updated as component.update_links does, and saved, so the master reads the subassembly after the subassembly has read the part. The design open in the session is never replaced or changed; it is skipped when it is one of those to update, as is a design another tab or app has open or a newer SolidCraft saved (a dry run shows both as skipped). A design with a link read by an importer plugin is skipped too: the plugin’s code runs only with your go, so update its links in the app (component.update_links). A design with a link it can’t read, or whose update makes a feature fail that did not fail before, is not saved and is reported as failed; the designs that link a failed or skipped design are not updated either (they are reported as skipped and named in a warning). A dry run evaluates each parent against its children as they are on disk, not as the run would update them, so above the first level its updated list can be shorter than a real run’s. Designs under root whose links can’t be read are listed (unreadable, unreadable_count), since one of them may link the changed design. A cancelled run may already have saved the first designs, which go in bottom-up order: a dry run shows what is left. A scan reads at most 10000 designs (those that don’t read count too), 20000 folders, 32 folder levels, 10000 links a design and 100000 links in all, inside the folders the caller may use, and says when a cap cut it short. It skips folders whose name starts with a dot, and reads only the component links of .sc designs: a drawing’s sources, plain .json designs and drawings are not scanned.

A linked design that has components of its own can come in as a linked subassembly. As shipped, Insert Design puts all its bodies into the one linked component. Tick Keep its components in Insert Design’s options to link it as a subassembly, or choose Keep Its Components in the linked component’s menu. The components of the linked design then become components inside the linked component. Each keeps its name and its part properties. A component that the linked design places several times is one component here, with one occurrence for each place. The Browser shows these components under the linked component and marks them with a lock. The bill of materials counts them at any depth. An assembly with two occurrences of a linked subassembly lists each of its components twice. assembly.mass_properties lists the components inside a subassembly at its first occurrence only, with a warning, as it does for any subassembly that is placed more than once. With every_placement: true it lists and weighs them in each occurrence. A further occurrence is in the rigid groups as the first one is: what a joint moves there is a group of its own. A design with 100,000 placements or more is refused with every_placement: true, because its list would not be complete.

The linked design decides what is inside a linked subassembly. In this design you cannot do these things to one of its components:

  • move, copy, ground, delete or unlock it on its own;
  • rename it or change its part properties;
  • make a component, a sketch or a feature inside it;
  • move a body or a sketch into it or out of it.

To change something, open the linked design (Open Linked Design in the component’s menu), save it, and use Update Links here. Update Links adds the components that the linked design has gained. It removes the components that the linked design has lost. A joint that was made to a removed component is removed too, and the reply names it. The other components keep their occurrences and the joints made to them. An occurrence that the linked design has moved into another of its components keeps the joints and joint origins made to it too, also those on one of its origin planes or axes. A gear or a cam of this design keeps the round face or the tip picked on it. Break Link keeps the components and makes them ordinary components of this design, with the bodies the link read; it does not bring the linked design’s history in, since its components are already here (a notice says so). A flexible occurrence becomes rigid first, so it shows the design as it was saved.

Each occurrence of a linked subassembly is rigid or flexible. The menu of the occurrence changes this at any time. The saved pose is where the linked design was saved with its components.

  • A rigid occurrence shows the saved pose and moves as one body. The joints of the linked design are not joints of this design. A joint from this design to one of its components moves the whole occurrence. You cannot join two components of one rigid occurrence.
  • A flexible occurrence (Make Flexible, component.link_mode {component, occurrence, flexible: true}) has the joints of the linked design as joints of this design. Drive Joints and motion studies then move its components. Each flexible occurrence has its own pose. For example, two occurrences of one gas strut can have different lengths. Make Rigid removes the joints and shows the saved pose again. It does not need the file of the linked design.

A new occurrence is rigid. It is flexible when you ask for that: Flexible in Insert Design’s options, or flexible: true on component.insert_design, component.relink or component.link_mode. A linked design without joints always gives rigid occurrences.

The joints of a flexible occurrence:

  • Names. A joint has the name that it has in the linked design. When a joint here already has that name, the name of the occurrence comes first (hinge:2: Hinge).
  • Owner. The joints belong to the linked design. You cannot delete them or edit them here, and you cannot add or remove a motion link between two of them. Update Links writes them again and keeps their values.
  • Joints from this design. A joint to a component that the linked design’s joints move is on that component. A joint to any other component of the occurrence moves the whole occurrence. You cannot join two components that those joints do not move.
  • A component in several places. When the linked design places a moved component in more than one place, a joint from this design can go to its first place only.
  • Move. Move and a drag in the view act on the occurrence that you picked. The Move handles go when you pick the component in another occurrence: start Move again there. joint.reach takes path for that: the occurrence ids from the top of the assembly down.

More about flexible occurrences:

  • Copies. Copy and Paste of a flexible occurrence make a flexible copy in the same pose, with its own joints. Paste New makes ordinary components at the saved pose. A pattern makes rigid occurrences.
  • Ground. Joints move only what is grounded or joined to something grounded. Ground the occurrence, or join it to a grounded component, before you drive its joints. Drive Joints names the occurrence when it is not connected.
  • Repeated parent. When the occurrence is inside a component that has several occurrences, it shows the same pose in each of them.
  • Features read the saved pose. A feature that reads another component reads a flexible occurrence at the saved pose. You cannot put a sketch on a face of a flexible occurrence, or mirror, pattern or copy one of its bodies, while its pose differs from the saved pose. The same holds for the other picks that a feature keeps on a component standing in a pose: an edge for a construction axis, an edge projected into a sketch, the face an extrude runs to. The command says so. Make the occurrence rigid before you pick there.
  • Levels. A flexible occurrence also has the joints that its linked design has for the flexible occurrences inside it, at every level. Each of those has its own pose here too. For example, a machine with two units of two hinges each can have its four hinges at four angles. A rigid occurrence on the way shows everything below it in the saved pose. To move a mechanism two levels down, make each level flexible: the lower levels in their linked designs, and the top level here.
  • Gears and cams. The motion links between the joints of the linked design come with them. A gear, a rack and pinion or a screw keeps its ratio, and a cam keeps the follower travel that the linked design worked out. You change them in the linked design. Update Links then reads the new ratio or travel.
  • Whole occurrences. An exploded view moves a linked subassembly as one occurrence, rigid or flexible. It has no steps for the components inside it. URDF export writes the pose that is shown, without the joints of the linked design.
  • Break Link makes every occurrence rigid first, then keeps the components as ordinary components with the bodies the link read.

Keep Its Components changes a link that puts all bodies into the one linked component. The menu offers it on every such link. A joint that was picked on a face of that component then stays where it is, as a fixed frame, and the reply names it. Pick its face again to make it follow the face.

When the linked design has no components of its own, Keep Its Components says so in the status line. Nothing else changes until the design has some: Update Links keeps them from then on.

Once a design is picked, Insert Design shows its options on the right, and OK inserts it. Keep its components makes a linked subassembly. It starts off: all bodies go into the one linked component, as in earlier versions. Flexible makes the new occurrence flexible. It starts off too, and it needs the first one: the panel greys it until that one is ticked. A paste of a copied linked component keeps its components as the last Insert Design did, and comes in rigid. In scripts, use structure and flexible on component.insert_design (both default to false, and flexible keeps the components as structure does), component.relink and component.link_mode. component.link_mode takes occurrence for one occurrence. Without occurrence, the command changes every occurrence. component.links reports structure and the flexible occurrences of each link. A linked design with more than 5,000 components or 20,000 occurrences is too large for a link to keep. With structure: true it is refused. With flexible alone it goes into one component, and the reply says so.

Extract to File and Replace with Link still make links of the earlier kind. Replace with Link and component.copies compare a component body for body with such a link. They refuse a link that keeps its design’s components, and the message says how to go on: component.link_mode with structure: false, replace, then structure: true again. Given a design file (path), Replace with Link uses a link of the earlier kind to that file when this design has one.

To edit a linked part where it sits, double-click it, in the Browser or on one of its faces in the view, or choose Edit in Place from its menu. Its design opens in a tab of its own with the rest of the assembly drawn faded around it, at the placement you picked, and the part’s own history, Browser and commands work as usual. Update Links there also reads the assembly’s links again and redraws it. Finish Edit (component.finish_edit), at the right end of the MODEL tab, or the mouse’s back button, saves the part and goes back to the assembly, which takes up the change; the part’s tab closes again when the edit opened it. Run as a command (by an agent, for example), it does not save: the part must be saved first. Activate still makes a linked component the active one without opening it, and a double-click on a component that is not linked activates it. Double-click a component to activate it, or to edit a linked one in place (Preferences, Design, double_click_components) turns this off: a double-click in the Browser then activates every component, and one in the view does nothing.

If a source file moves or is renamed, right-click its linked component or occurrence in the Browser and choose Component → Relink Source (All Instances)…. Choose the saved .sc design to use. Relinking updates that component’s stored path and solid bodies for all its instances, keeping their identities and placements. Cancelling or choosing a missing, invalid, empty or self-referencing design leaves the assembly unchanged. The operation is one undo step and the new path is saved relative to the assembly when possible.

To swap only one occurrence of a component placed several times, right-click that occurrence and choose Component → Relink Source…. Only that occurrence shows the chosen design. It keeps its position, grounding and joints, which move to the same faces of the new design where it has them. It becomes an occurrence of the component already linked to that design, or of a new linked component; the other occurrences keep the old source. Scripts pass the occurrence: component.relink {component, occurrence, path}, and the reply’s component is then the one the occurrence shows and previous_component the one it showed.

Relink Source leaves the linked bodies’ names as they are, unless the new source has another number of bodies, when they take the source’s names. Relink Source and Use Its Names… (in the same menu) gives the bodies the new source’s names instead: what the design keeps under the old names (materials, appearances, later features that name the body) follows each body to its new name, and the linked feature takes the source design’s name when it still had its component’s. The component’s own name stays yours, and a body whose new name another body already has keeps its name and is reported in the warnings. Scripts pass names: "keep" (the default) or names: "sync"; it applies when the whole component is relinked, not to one placement shown by occurrence, which shows a component made from the new source.

Scripts use component.relink {component, path}. The reply includes previous_path, path, warnings, joint_errors and joint_conflicts. Changed geometry can invalidate a joint’s face reference: relinking reports those joints in the reply and UI status/message history; repair the joint or undo the relink. Relink does not repair or verify the intended meaning of existing joints. When linked geometry changes and the component has joints, a reminder to check those joints is also shown even if the solver reports no error: a successful solve does not prove that a joint still describes the intended connection.

STEP export writes the component tree as an assembly.

Right-click a component in the Browser and choose Component → Properties, or use Inspect → Measure → Properties for the selected placement or the active component, to inspect material-aware mass, volume, surface area, centre of mass, first moments, moment of inertia and world bounds. While the window is open, the view marks the centre of mass with the three principal axes standing out of it. Descendants and repeated instances contribute to assembly totals; pending moves are included. A component uses its first placement; occurrence.properties selects a specific instance. Root Properties measures the complete assembly. A placement that counts as a reference (a bill of materials type, below) adds nothing, nor does anything inside it; the component or occurrence measured counts whatever its type. Volumes are summed, including overlapping bodies, rather than measuring their union. A placement’s Properties also shows where it sits: Position and Rotation (angle, then axis), with Frame choosing between In parent and World, and Copy matrix for the matrix occurrence.move takes. The same workflow is available through component.properties and occurrence.properties; see placement and measurement details.

Part properties and the bill of materials

A component definition carries its own part properties: a part number, a description and a revision, other tools’ data under a reverse-DNS key (the same rules as the design’s own properties), and free text properties such as a material grade or a finish. Every occurrence of the component shares them, Paste New copies them, and they are saved with the component. component.metadata {component} reads them and component.metadata.set {component, part_number?, description?, revision?, bom_type?, material?, finish?, bom_quantity?, virtual?, values?, properties?} changes them in one undo step (an empty value removes a field). The root component is the design itself: its properties are document.metadata’s.

A part’s material is what it is ordered as (“5052-H32, 0.090 in”, “CRS, 16 ga”) and its finish is free text (“powder coat, RAL 9005, matt”, “zinc plate, clear”, “#4 brushed, grain along length”); masking and no-coat notes stay ordinary notes. Both are text of your own: the windows offer common finishes to pick from and never hold you to them. A design that is one part has no component to hold them, so the design carries them itself: document.metadata.set {values: {material, finish}} (Design Properties in the window). They are in the bill of materials (a finish column in the rows and the CSV), in a drawing’s parts list (a FINISH column you add with the table’s columns; a new list keeps its columns) and in its title block, whose Material and Finish cells read them with nothing typed over. A part that has only a free property named finish (as parts did before) shows that one wherever a finish is shown. Standard parts (parts.insert) get a part number from their standard and size (ISO 4762 M6x20, GOST 7798-70 M12x60, or a bearing’s designation) and a description; Change Part Size renumbers them, keeping a field you changed yourself.

Bill of Materials (assembly.bom, on the INSPECT panel) counts the placed components:

  • levels: "flat" (the default) lists the parts at any depth, each counted through its subassemblies: a part placed once in a subassembly that is placed twice counts 2. A subassembly is listed through its parts, unless it has bodies of its own.
  • levels: "top" lists the direct children, a subassembly as one row.
  • levels: "all" lists the direct children as top does, and under each subassembly its own rows, to any depth: items 1.1, 1.1.1, with each per row above and count in all. Subassemblies with one part number share a row only when what they hold is the same all the way down. As JSON the rows come one after another, each followed by the rows under it, as in the CSV.
  • show_purchased_contents: true, with levels: "all", lists what a purchased part holds under its row too. The part is still one row, weighed whole.
  • A part a configuration switches off (it has no bodies and a suppressed feature of its own) is left out of every list, parts list and balloon; show_suppressed_parts: true lists it as placed.
  • group_by: ["part_number"] (the default) puts definitions with the same part number in one row; a definition without a part number gets a row of its own. ["definition"] gives every definition its own row.
  • group_children: true keeps what is placed inside a part with a part number in that part’s row: a bolt with a washer and a nut placed inside it is one row, the washer and the nut listed under it as children (items 1.1, 1.2…, with each per bolt and count in all) instead of rows of their own. Bolts with different contents (one with a nut, one without) are different rows. total_occurrences counts the children too, so it is the same either way. For an inseparable part, only its purchased descendants become children; a purchased part still has no children listed. Parts without a part number are not grouped this way.
  • component lists one subassembly’s parts instead of the design’s.

A list walks at most 64 levels and 100,000 placements in all, the children of folded parts included; a larger assembly is refused rather than listed in part.

A component’s bill of materials type (bom_type, a part property set with component.metadata.set {component, bom_type}) decides how it counts in the assemblies it is placed in. Without one it is normal.

TypeForIn the assembly it is placed in
normalSomething you makeA row of its own; every occurrence adds to its quantity
phantomSomething just to group (a fastener set)No row: what it holds counts as if it were placed there directly, in the same rows as the same parts placed there. Its own bodies, if it has any, are a row of their own
referenceSomething to use as a reference (a fixture shown for context)Counted nowhere, and nothing inside it is counted either
purchasedSomething you buy (a gearbox)One row; nothing inside it is counted or listed
inseparableSomething made as one piece: welded, glued, riveted and so on (a welded frame)One row; in parts only, the purchased parts inside it are listed too, and the rest of what it holds is listed in its own bill of materials

Two components with the same part number share a row only when their types agree. A component’s own bill of materials (component) lists what it holds whatever its type.

One occurrence can count as another type than its component: occurrence.bom_type {occurrence, bom_type} sets it for that occurrence only (one bracket of four kept for reference, or one bought instead of made), and same_as_component (or null) clears it. Occurrences of one component that count as different types are different rows. An occurrence inside a subassembly belongs to the subassembly’s definition, so its type holds wherever the subassembly is placed. Paste New keeps the types of the occurrences it copies; Paste (Instance) places one that counts as its component.

Rows are sorted by part number (rows without one come last) and hold item, part_number, description, revision, bom_type, count, definition (the component names), material, components (their ids) and properties, with total_occurrences beside them. material names the physical materials of the definition’s own bodies (Physical Material, the ones mass is worked out from; an unassigned body’s is Default), with ; between several. A row that stands for an assembly (a subassembly at the top level, a purchased or inseparable part with parts inside it, a folded part) names a material only when everything it weighs shares it, so a frame of steel and aluminium parts is blank and a bought bearing of steel parts reads Steel. A physical material is set on bodies. A static material (component.metadata.set {component, material}, any text) is what a component’s rows say instead, at every level and in every view, and those rows carry static: ["material"]. It also stands for the part in the one material an assembly around it shares, so two parts typed in as S355 make their frame read S355. Where several definitions share a row, the first one’s static material wins. It doesn’t change the mass, which still comes from the bodies, and clearing it (empty or null) brings the worked-out material back. Each row also has finish: the part’s finish, else a free property named finish. A free property such as a material grade stays in properties. mass: true adds mass_g: what one of the row’s parts weighs in grams, with what is placed inside it except what the list shows as rows of their own beside it, so the rows of any list add up to the assembly. It adds total_mass_g beside the rows too: what the assembly weighs, measured from the design rather than added up from the rows. At the top level a row weighs all it holds. In parts only a part’s contents are rows of their own, so it weighs its own bodies, except a folded part (its row is the kit), a purchased one (all it holds) and an inseparable one (all but its purchased parts). A reference placement adds nothing. Every part is measured for it, once per definition, so it takes longer. It is null when nothing in the part has a body, a body can’t be measured, or the definitions sharing the row’s part number weigh differently (by more than the measurement can tell apart: one part modelled two ways weighs the same). path writes them to a .csv file (the columns item, part_number, description, revision, count, definition, material, quantity and finish (a column added later goes last, so the others keep their places), every field quoted, and a field that a spreadsheet would run as a formula written with a ' before it so the spreadsheet shows it as text; children follow their row) or a .json file. A formula field is one that starts with =, +, - or @, their full-width forms, a tab or a line break, after any spaces and '; a plain number such as -5 is not one. A script that reads the CSV sees the ' too: a part number =1+1 is '=1+1 in the file, and '=1+1 is ''=1+1. To get the value back, take off one leading ' when what follows starts a formula, as solidcraft_doc::csv::unguard does, or read the .json file, which holds the values unchanged. The ' holds only while the file is as SolidCraft wrote it: a spreadsheet that saves the file again as CSV can drop it (Excel does), and the formula then runs the next time that file opens. Export again from SolidCraft instead of passing on a CSV a spreadsheet has saved. The window lists the same rows, switches between the levels and groupings and shows children under their part, edits a picked row’s part number, description and revision, and exports them. Changing part properties or a bill of materials type changes no geometry, so it doesn’t evaluate the model or re-seat joints again.

Item numbers. Until a view is numbered, a row’s item is its place in the list, and it can change as parts come and go. Numbering a view saves its numbers in the design, one numbering for each assembly (the design, or a component) and each levels, with the list options it was numbered with:

  • assembly.bom.renumber {component?, levels?, start?, step?, order?} numbers every row from start by step (both 1 by default), each level on its own: in all, the rows under a row are numbered within it (2.1, 2.2). order: "list" (the default) goes by part number, as an unnumbered list does; order: "item" keeps the current order and closes the gaps.
  • assembly.bom.item.set {component?, levels?, row, item?, locked?} changes one row, named by the item it shows now ("3", or "2.1" under row 2). A number another row already has is allowed, and both rows say duplicate. A locked number stays through a renumber, which skips it, so no two rows get one number.

Once a view is numbered, a part added takes the highest number at its level + 1, saved in the same undo step as the change that added it. A part removed leaves a gap until the next renumber, and if it comes back it gets its old number, so a number on a printed drawing never comes to mean another part. The number follows the row through part-number edits. A numbered view lists each level by item number, and assembly.bom says numbered: true; a row says provisional when its number isn’t saved yet (a list made with other options), and locked and duplicate when they apply. Saved numbers are plain numbers: how they are padded (007) is up to the table that shows them. Numbering changes no geometry, so it doesn’t evaluate the model.

Quantities. A component’s quantity (bom_quantity, a part property) says what one placement of it means: a number of pieces (4, a pack of four) or a length (2.5 m). It is an expression evaluated with the design’s parameters, so cable_length or 2 * span + 50 mm follows the design. A row of such components gives quantity, what its placements add up to, with quantity_unit pieces or mm (lengths are given in millimetres, as masses are in grams): a 2.5 m cable placed three times reads 7500 mm. A placement without a quantity counts one piece. Pieces and a length in one row can’t be added, so its quantity is null with quantity_unknown: "mixed"; a quantity that doesn’t evaluate (a parameter it names is in error) gives "invalid", and the rest of the list still works. A quantity uses its parameters as any expression does: renaming one renames it in the quantity, and one in use can’t be deleted. Rows without quantities read as before. Masses and volumes (50 g of grease) and areas are not supported yet: they need expression units.

Virtual components. component.create {virtual: true, bom_quantity?} makes a component with no geometry, such as grease, paint, a label or packaging: it is listed in every view with its quantity and weighs nothing. It holds nothing: it can’t be the active component, and any command that would put a body, a sketch or a component into it is refused. An empty component can be made virtual with component.metadata.set {component, virtual: true}.

Hole stacks

Parts held together by rivets, bolts or pins have holes that line up through two or more touching layers. Find Hole Stacks (inspect.hole_stacks) lists them:

{"command": "inspect.hole_stacks", "params": {"diameters": [[4, 6.5]], "touching": 0.05}}

Each stack has its axis (a unit vector pointing from start into the stack: down for a vertical stack, so start is on the top face), its start and end points on that axis, grip_mm (the clamped thickness from start to end) and its layers, outermost first: the body, the hole’s diameter d_mm and its extent t: [t0, t1] in mm from start. A layer through an obround slot carries slot: {length_mm, along}, the slot’s overall length and the direction of its length. Holes in no stack are listed under lone with their body, diameter, entry point at, axis and depth_mm.

A layer reaches from face to face of its body: a countersink or chamfer that opens out from a hole counts in its extent, so it adds to the grip and closes the gap it would leave against the next layer, while d_mm stays the narrowest opening. Holes are on one axis when their axes are at most axis_tolerance apart (default 0.1 mm), either way round; a round hole lines up with a slot when its axis passes through the slot’s centre line. Slots that no round hole passes through line up when they share a centre line, and their stack’s axis runs through the middle of the length they share. Layers belong to one stack when the gap between them is at most touching (default 0.05 mm). bodies limits the search to some bodies, diameters to holes and slot widths in the given ranges, and slots: false leaves slots out. Standard parts already placed (a washer’s hole) are left out unless named in bodies. Walls that are not one cylinder or cone — a hole another feature has cut into, or a tapped hole with its threads modelled — are not found.

Finding things in the browser

The magnifier in the Browser panel’s header (or Ctrl+F with the pointer over the browser, unless you gave Ctrl+F to a command) opens a search box in the header, in place of the panel’s title. The box holds the magnifier, the field, a filter and ×. It finds components, bodies, sketches, joints, and construction planes, axes and points by name. It finds the text anywhere in a name, ignoring case. With * (any text) or ? (any one character) in it, the whole name must match: *:1 finds every first instance. Each placement of a component is found on its own, so a bolt placed six times is listed six times, each under the components that hold it.

Only the matches and their parents stay in the tree, opened for the search; closing a row there leaves the tree’s own folds as they were. The filter narrows the search to the kinds you tick, each with how many it matches, or with nothing typed lists everything of those kinds; All kinds clears them. Select all selects what was found, and Hide others hides every body it didn’t find; the line under the field then says how many it hid, with Undo. Esc, × or the magnifier in the box ends the search and closes the box. Scripts and agents search the same way with browser.find.

Secondary joint alignment

Joint creation and editing offer optional Alignment 1 and Alignment 2 inputs. Pick a planar face, a straight or circular edge, a cylindrical face’s axis, a sketch line, or an axis/plane of construction geometry on the same occurrence as that side’s primary face, circle, plane or axis origin. Planes supply their normal, straight lines their direction, and cylindrical faces their axis. Circular rims selected in the UI align by centre; the API also accepts their axis. The direction is projected square to the primary joint axis. The root origin widget can reference a root-side joint origin; it cannot silently stand for a different part’s frame. Scripts may explicitly name an origin axis/plane in that side’s component frame.

Each alignment picker only offers references on its primary origin’s exact occurrence. Hovering or clicking the other component leaves the confirmed reference and pose unchanged. A circular hole rim shows the Circle center alignment marker; cylindrical face and construction-axis references show their direction. An exact circular edge with a unique adjacent cylinder and end face supplies the persistent identity. Multiple possible cylinders are refused rather than choosing one arbitrarily.

The UI orders the references by the solved motion: Alignment 1 is on the moving component and Alignment 2 on the fixed component, independently of primary pick order. With both references empty, hovering only highlights geometry and shows snap markers. Click the first reference before hovering the second to preview its temporary solution; leaving restores the confirmed solution. Wrong-component and degenerate picks are ignored.

Circular rim references automatically use their center. The reference stores the cylindrical face and the adjacent face naming the picked rim. Its clocking direction is the vector from the primary origin to that circle centre, projected into the joint plane. Thus another hole can orient two plates even when the hole axes are parallel. The centre is recomputed when geometry changes; a lost/ambiguous rim or a centre on the primary axis is refused. Construction axes and cylindrical face directions retain direction semantics and refuse parallel axes. Previously saved directional references remain compatible without being reinterpreted. Assembly motion displays the solved body as solid and its original placement as the ghost; it never treats display-mesh volume drift as material removal.

One Invert alignment checkbox reverses the relative secondary orientation. The authored Angle expression, component Flip, motion values, limits and degrees of freedom keep their meaning. After choosing the primary origins, picking and highlighting continue on the solved placement. An incomplete or invalid secondary input keeps the last valid pose while explaining the error. Once its counterpart is confirmed, hovering a valid reference previews that candidate temporarily; leaving it restores the authored pose, and only a click fills the selection. Cancel discards the operation; accepted edits can be undone.

Preferences > Design offers Invert joint selection order, off by default. Its visible help explains moving-then-fixed selection when enabled. The primary fields retain their original Component 1 and Component 2 labels in either mode. Off preserves the fixed-then-moving primary pick order; on reverses the two primary input rows while the backend keeps the same fixed/moving origins. The preference is captured when a new Joint command opens: changing it never reorders a dialog in progress or an existing joint. Secondary alignment always starts with the actual moving component, independently of this preference. A hovered circular rim stays selectable across preview updates and small pointer movements within that hole’s projected footprint; leaving that region restores the confirmed pose.

References keep persistent geometry names or feature/curve identities through save/reopen, geometry changes and independent component copies. Missing, ambiguous, wrong-component, unsupported curve or parallel-axis references are errors. They never silently attach to nearby geometry. Clear removes the reference and keeps the current turn as a direction without following the cleared geometry. An invalid reference can also be cleared.

Picking a circular hole rim as a primary origin keeps the unique cylindrical face and rim-end names, just like picking its cylindrical wall. The displayed hole center therefore remains a round origin when the first secondary alignment is added. A generic primary point/edge or an ambiguous/unnamed rim can still define a basic joint, but the dialog explains the limitation and disables secondary picking until compatible primary origins are selected. Nonzero Offset X/Y and nested occurrence paths still need a supported origin; no secondary reference is converted to a static frame. Offset Z remains available. Existing joints without secondary alignment keep their previous behavior.

Scripts use a_alignment and b_alignment on joint.create or joint.edit: {"face": "<persistent planar face name>", "occurrence": "<occurrence name>", "reverse": true}, or a typed reference, for example {"reference": {"type": "edge", "name": "<persistent edge name>"}, "occurrence": "<occurrence name>"}. The other reference types are circle_center (name of the cylindrical face and end naming the adjacent rim face), cylinder (name), construction (feature id), sketch_line (sketch id and curve id), construction_plane (feature id), origin_axis (axis: X/Y/Z), and origin_plane (plane: XY/XZ/YZ). Omit a field to leave that side unchanged; pass null to clear it. Supplying occurrence also checks the exact picked instance of a shared definition.

Alignment preview in the Joint dialog

In the right-hand Joint or Edit Joint panel, Options > Preview alignment on hover controls temporary secondary-alignment previews, including hole rims. It starts enabled each time a dialog opens. The checkbox belongs to that dialog and is not saved in Preferences or in the design. Turn it off to keep the confirmed pose while hovering. Click a reference to apply its alignment in either mode. Toggling it does not change primary origins, saved joints, reference validation or the command API.

Associative construction-axis references

A construction axis can supply the secondary X direction of a face, circle, plane or axis origin. Use its feature ID, returned by the construction command:

{"occurrence": 0, "plane": "XY", "x": {"reference": {"type": "construction", "feature": 17}}}

The same X object is accepted by joint.origin and inline origins in joint.create and joint.edit. The Joint dialog can pick the construction axis through its alignment fields. A string in x retains its legacy meaning: a persistent face name. Construction axes use the typed object above. Renaming the feature keeps its identity.

For positional clocking, create two construction points attached to the selected hole centres, then a two-point construction axis from the primary centre to the other centre. The joint resolves that axis again and projects its direction square to primary Z; the primary origin and Z retain their references. Construction-only edits invalidate the resolved frame even when no body changes. An axis parallel to Z is refused. Point origins continue to accept only numeric X directions.