Assemblies
An assembly places instances of parts, from this document’s Part Studios or from other documents, and holds them together with mates. An instance stays live: change the part in its Part Studio and the assembly shows the change at once.
Insert (I) opens Insert parts and assemblies. Its tabs are Current document (with Part Studios, Assemblies and Boards below), Other documents (see Using one document in another) and Standard content (screws, nuts and other standard parts). Click a part, or a Part Studio’s row for all its parts, then click in the view to drop an instance there; each click drops another. Inserted: counts what the dialog added, and Undo to remove instances takes them out again one by one. ✕ removes all of them.
To move an instance, click one of its faces, edges or corners to show the triad there, then drag an arrow to slide it, a ring to turn it, or the triad’s centre to move the triad itself (right-click it for Move to origin). You can also drag an instance directly: it moves as far as its mates and limits allow, and the instances mated to it follow.
Right-click an instance and choose Fix to hold it in place; Unfix frees it. A new assembly has nothing fixed, so fix one instance (or mate it to the assembly’s origin) to give the rest something to hang on.
Mates aren’t solved continuously while their dialog is open: picking, flipping and changing an offset place the moving instance for that mate only. Solve in the mate dialog solves every mate, and ✓ solves everything and adds the mate as one undo step.
Mates, groups and relations are listed under Mate Features in the panel on the left. Double-click one to edit it, or right-click it for Edit…, Reset (back to where the mate was made), Apply limit position, Suppress, Animate… and more. The Instances list shows how many degrees of freedom each instance has left.
Insert parts and assemblies
Insert parts and assemblies (I) adds instances to the assembly: parts and whole Part Studios, other assemblies as subassemblies, boards, and standard parts such as screws and nuts.
- The tabs choose the source: Current document (Part Studios, Assemblies or Boards), Other documents or Standard content.
- Click a part, or a Part Studio’s row for all of its parts.
- Click in the view to drop an instance there; each click drops another.
- ✓ keeps the instances, and ✕ removes every one the dialog inserted.
The search field narrows the list. An item you clicked but didn’t drop in the view goes in where it is in its Part Studio when you click ✓ or another item. Inserted: counts the instances the dialog has added, and Undo to remove instances takes the last one out again. Each insert is an undo step of its own.
Beside the document’s name, the first button makes a Part Studio’s row insert all its parts as one rigid instance. The last button opens the version graph, to insert from a version instead of the document as it is now (see Using one document in another). Under the search field, two buttons show or hide parts and surfaces.
On the Other documents tab, Import file… brings a file from outside into your library and opens it to insert from: a supplier’s STEP of a bought-in part, say. See A library of components.
On the Assemblies tab, an assembly comes in as a subassembly instance. Assemblies that contain this one aren’t listed. On the Boards tab, a PCB Studio board comes in as one rigid instance, with its components.
Standard content
The Standard content tab makes standard parts. Choose the Standard, Category, Class and Component, then its Size and other options. The button beside Size sizes the part to a hole or shaft you pick.
Insert puts one part on every hole selected, each held by a Fastened mate. With nothing selected it waits for you to click hole edges one at a time: A flips the part and Esc stops. Where standard parts are already stacked on a hole, Insert closest to selection puts the new one against the face and moves the others out, and Insert furthest from selection puts it on top of them.
Mate
A mate joins two instances and sets how they may still move relative to each other. The toolbar has a button for each type; M starts a Fastened mate. Once the dialog is open, you can switch type from its dropdown without picking again.
| Type | Allows |
|---|---|
| Fastened | No motion. |
| Revolute | Turning about Z. |
| Slider | Sliding along Z. |
| Cylindrical | Sliding along and turning about Z. |
| Pin slot | Turning about Z and sliding along X. The first connector is the slot’s, with X along the slot. |
| Planar | Sliding along X and Y and turning about Z. |
| Ball | Turning about X, Y and Z. |
| Parallel | Sliding along X, Y and Z and turning about Z: the Z axes stay parallel. |
| Tangent | Two faces, edges or corners stay touching. |
| Width | Tabs stay centred between two faces. |
X, Y and Z are the axes of the mate connectors: the mate puts the first connector onto the second.
The dialog’s choices:
- Mate connectors: pick two. Hovering a face, edge or corner of an instance shows its connector points as dots, with the nearest one drawn as a small triad; a click takes it. Hold Shift to stay on the hovered face or edge, so you can reach a point in a tight spot. Explicit mate connectors can be picked too. After the second pick, the first instance that is free to move jumps into place.
- Entities (Tangent only, instead of connectors): two faces, straight edges or corners. Tangent propagation (on by default) carries the contact on to faces tangent to the picked one.
- Tab mate connectors and Width mate connectors (Width only): one or two connectors on the tab, and exactly two on the faces it sits between. Click a field to make it the one picks go to. An instance can’t be in both.
- Offset (every type but Tangent and Width): X, Y and Z distances, and a Rotation angle about the axis chosen in Rotate about X, Rotate about Y or Rotate about Z.
- Limits (Revolute, Slider, Cylindrical, Pin slot and Planar): a minimum and maximum for each of the type’s motions. Dragging and animation stop there.
- Simulation connection: bonds the two parts in a simulation.
Values take units and expressions (0.5 in, 90 deg, #gap); without a unit, lengths are in
mm and angles in degrees.
Along the bottom: Flip primary axis turns the mate over (for Tangent, it puts the entities on each other’s other side), Reorient secondary axis turns it a quarter turn about Z, Animate mate DOF plays the mate’s first motion once, and Solve solves all the assembly’s mates.
Mate connector
A mate connector is a coordinate system on an instance (an origin and X, Y, Z axes) that mates can use. Parts carry the mate connectors made in their Part Studio, and you can make more in the assembly with Mate connector (Ctrl+M). K shows or hides them all.
The dialog’s choices:
- The origin type: On entity puts the connector at the point of the face, edge or corner you pick; Between entities puts it midway between that point and a second pick, the Between entity (on the same instance).
- Origin entity: the point the connector sits on.
- Realign: sets the Primary axis (Z) and Secondary axis (X) from picked edges’ directions or faces’ normals.
- Move: moves the connector by X translation, Y translation and Z translation, and turns it by Rotation about its Z.
- Owner entity: the instance the connector belongs to and moves with.
- Flip primary axis and Reorient secondary axis (90°) at the bottom.
A mate’s own connectors can be adjusted the same way: expand the mate in Mate Features, right-click a connector and choose Edit. The mate’s instance follows the change.
Relation
A relation ties the motion of one mate to another’s. Choose it from the toolbar, or from the Relations button’s menu.
| Type | Mates | Field |
|---|---|---|
| Gear | Two turning mates (Revolute, Cylindrical or Pin slot), the driver first. | Ratio as two numbers: the first mate turns by the first while the second turns by the second, the opposite way, as meshing gears do. |
| Rack and pinion | The pinion’s turning mate (Revolute, Cylindrical or Pin slot), then the rack’s sliding mate (Slider, Cylindrical or Pin slot). | Distance per revolution: how far the rack moves for one turn of the pinion. |
| Screw | One Cylindrical mate: its turn drives its slide. | Pitch: the travel per turn. |
| Linear | Two sliding mates (Slider, Cylindrical or Pin slot). | Ratio: how far the second slides for each mm the first does. |
Fill the Mates field by clicking mates in the Mate Features list or their glyphs in the view. A mate of the wrong type is refused with a message saying why. Reverse direction turns the relation the other way (for Screw, a left-hand thread).
Once added, the related mates move together when you drag, animate, Reset or Apply limit position.
Group
A group holds instances together as one rigid body, keeping their positions relative to each other, without mating each pair.
The dialog has a single Instances field: click instances in the view or in the Instances list. Instances already selected when you open it are included. ✓ adds the group to Mate Features.
A group isn’t fixed in space: it still needs Fix or a mate, like a single instance.
Replicate
Replicate copies an instance onto the matching places of the part it is mated to, each copy held by a copy of the instance’s mate. A screw mated into one hole becomes a screw in every hole like it.
- Instance to replicate: click the instance to copy. The mate that will be copied is named under the field.
- Select matching holes: click the rims or faces of the other holes on the part the instance is mated to.
- All matching on the part takes every matching place at once.
- The copies are previewed, translucent, where they will go. ✓ adds them as one feature, “Replicate 1”.
A place matches a hole’s rim when it is a circular edge of the same size, on a parallel axis and at the same height along it. It matches a cylinder when it is a cylinder of the same radius on a parallel axis. An instance with no mate to another instance can’t be replicated.
“Replicate 1” is listed under Mate Features, and its copies under a row of their own in the Instances list. To change it, right-click it and choose Edit…: click a copy to take it out (it is drawn as a ghost), click the ghost to bring it back, or pick more holes.
Linear pattern
Linear pattern is on the assembly toolbar but not available yet: its button stays greyed out. To put an instance in each of a row of holes, use Replicate.
Circular pattern
Circular pattern is on the assembly toolbar but not available yet: its button stays greyed out. To put an instance in each of a ring of holes, use Replicate.
Animate
Animate plays a mate’s motion. Right-click a mate that can move in Mate Features and choose Animate…. (The ▶ button in the mate dialog plays the mate’s first motion once, through its range and back.)
The dialog’s choices:
- Mate: the mate being animated.
- Which motion to drive, when the mate has more than one: X translation, Y translation, Z translation or Z rotation.
- Start and End: the range to play. They begin at the mate’s limits when it has them, otherwise 0 to 25.4 mm, or 0 to 360°.
- Steps: how many steps from Start to End (25 to begin with). The animation takes one step per frame, so fewer steps play faster.
- The playback type: Single plays once, Reciprocate goes back and forth until stopped, Loop plays Start to End over and over.
- Reverse direction: plays from End to Start.
- Current value: where the mate is now, with the direction it’s moving in.
- Play and Stop.
Each step moves the mate and solves the whole assembly, so mated instances and relations follow. Animating changes nothing in the document: closing the dialog puts the assembly back as it was.
Named positions
Named positions keeps the positions of the assembly’s mates under names, so the assembly can go back to each one later: a lid open and closed, a slide in and out.
- Click Named positions to open its panel beside the view.
- Move the assembly to the position to keep, click Add position and type its name.
- Apply on a row, or a double-click on the row, moves the assembly to that position.
- Each motion of a mate has a column with the value kept for it. Click a value, type another and press Enter to change it.
- Right-click a row for Apply, Update to current position, Rename and Delete.
A check marks the position the assembly is in now. Applying a position solves the assembly to the values it holds, as one undo step. A mate deleted since the position was added is skipped.
A subassembly can show one of its named positions in the assembly it is inserted in: right-click its instance and choose Lock / follow position to, then Current position or a named position. The subassembly’s own tab stays as it is.
Explode
Explode opens the Exploded views panel, for views that show the assembly with its instances moved apart in steps. Mates and positions stay as they are.
- Add exploded view makes “Exploded view 1” and opens it for editing.
- For a step, select instances, choose move or rotate and X, Y or Z, type the Distance or Angle and click Add step.
- Or drag an arrow of the triad at the selected instances.
- Done ends the editing; click a view’s row to show it, and again to put the assembly back.
- The slider plays the steps from Assembled to Exploded, and Trail lines draws each moved instance’s path.
An exploded view only changes what is shown. X, Y and Z are the assembly’s axes, and releasing a dragged arrow adds the step. The steps play one after another, each starting where the steps before it left its instances. In the step list, the arrows reorder the steps, ✕ deletes one, and a click on a step loads it into the editor, where Update step saves the change.
Edit steps opens a view for editing again. Right-click a view’s row for Edit…, Rename and Delete. Export image… saves a picture of the view as shown.
Display states
Display states is in the toolbar button’s menu but not available yet: cadrs has no named display states. The menu’s other item, Create Part Studio in context, works.
Create Part Studio in context
Create Part Studio in context makes a new Part Studio tab with the whole assembly shown around it, to design a part where it has to fit. It is in the Display states button’s menu.
- The Origin of new Part Studio dialog takes the new origin: the assembly’s Origin, or a mate connector or a point of an instance that you click.
- ✓ makes the Part Studio and switches to it, with the assembly drawn translucent around it.
- Sketch on the context’s faces and Use its edges as you would a part’s.
- Go to assembly in the bar above the view goes back; its Insert and go to assembly also inserts the parts you pick.
The translucent assembly is the Part Studio’s context. Go to assembly opens a menu: Go to assembly switches back, and Insert and go to assembly lists the parts you pick in the Part Studio and, with ✓, inserts them into the assembly where the Part Studio has them.
The context is the assembly as it was when the Part Studio was made. When the assembly changes, the bar says Assembly changed, and Update context takes the assembly as it is now. The features that use the context follow. Done in the bar leaves the context, to edit the Part Studio without it.
Assembly properties
Assembly properties opens the properties of the assembly itself: its name, part number and the other values that describe it, in a bill of materials or when it is used as a subassembly.
- Name, Part number, Description, Revision, Vendor, Unit of measure and Category describe the assembly.
- The button beside Part number fills in the document’s next part number.
- Mass is computed; tick Override the computed mass to type one.
- Subassembly BOM behavior sets how it is listed in the bill of materials of an assembly that uses it.
- Add property adds a custom property: a name and a kind.
Subassembly BOM behavior is Show assembly and components (the assembly’s row with its parts under it), Show assembly only (one row, as for a bought assembly) or Show components only (its parts listed as if they were inserted in the assembly that uses it). A custom property’s kind is Text, Number or Boolean, and every part and assembly of the document gets the property.
A text property can combine other values: write another property’s name or a configuration
input’s name in braces. A Description of M{Size}x{Length}-A4 reads M8x40-A4 for the part
configured as size 8, length 40, and each configuration of the part reads its own, in the BOM,
the drawing’s BOM table and the title block alike, so a configured fastener needs no per
configuration column. {Part number} {Material} names properties (any case), by their English
names whatever language cadrs is in, so a value reads the same for everyone. A name that is
neither stays as typed, a checked Checkbox reads as its name (unchecked, nothing), a Value input
as its number in mm, {{ and }} write braces, and the Properties dialog shows the value as
typed so it can be edited.
Save writes every changed value as one undo step. Parts have the same dialog: right-click an instance and choose Properties….
Bill of materials
Bill of materials opens a table of the assembly’s parts with their quantities and properties, in a panel beside the view. It follows the assembly and the parts’ properties as they change.
- Structured lists a subassembly with its parts under it; Flattened lists every part once, with its total quantity.
- Hover a row to highlight its instances in the view; click it to select them.
- Double-click a cell to edit it: the value is saved as the part’s property.
- Add column adds a property as a column; double-click a header to sort by it.
- The ⋯ menu has Copy table, Export to CSV and Save as template….
The table starts with the item number, the quantity, Part number, Name, Description and Material. In the structured view, double-click a subassembly’s item number to open or close it. Double-clicking a Material cell opens the material picker. Right-click a column’s header for Remove column, Move left and Move right. Apply template uses a saved template’s columns.
Right-click a row for Suppress from this BOM (the row gets no item number and counts in no total), Properties…, Assign material… and Generate next part number. The ⋯ menu also has Show excluded/suppressed, Show top-level assembly row (the assembly itself, with the total quantity and mass), Reset sort and Generate missing part numbers.
Large assemblies
An assembly of a million instances stays workable by showing less where less can be seen, and by doing for a change only what the change touches. Nothing about the model changes: every instance keeps its exact geometry, and mates, measurements and exports use it.
- The Instances list builds the rows near what it shows. Scroll, or type in Filter by name, to reach the others; Find in instance list on a part in the view scrolls to its row wherever it is.
- In an assembly of more than 2,000 parts, a part has its edges when it is about 14 pixels across or larger. They fade out as it gets smaller and are gone below about 11 pixels, so in a perspective view the parts near you are outlined and those far away are not. Zoom in and the edges are back. A view of very many parts that size shows the edges of the largest: the size they begin at goes up for every part alike, and a part that is large on screen always has its own. A part that is hovered, selected or failing keeps its outline at any size (with more than a hundred parts selected, or under the pointer by a row of the Bill of materials, those large enough on screen).
- In an assembly of more than 2,000 parts, a part is drawn as finely as its size on screen needs: in full when it fills the view, coarser as it gets smaller (its holes with fewer sides, its curves with fewer steps), and as its box below about 6 pixels. When the view falls under 25 frames a second it draws coarser still until it keeps up, and a view keeps to twelve million triangles while it can: beyond that the parts smallest on screen and furthest from its middle give way first, down to boxes (a box is the least a part is drawn as, so more than a million parts in view are more than that). Preferences › Interface › Display quality sets one quality for every part instead (Draft, Low, Medium or Full), whatever it costs. An exported image is always drawn in full.
- The Mate Features list builds the rows near what it shows, as the Instances list does.
- Building a big assembly from subassemblies keeps the document small: a module placed a hundred times is stored once.
- A document with more than 5,000 instances is stored with each instance on a line of its own, about half the size.
tools/benchmark in the source tree measures how far this goes on a given computer.