RazorCAD
Chapters

User manual / Assemblies

Assemblies

An assembly places parts and other assemblies as components and holds them together with mates. Assemblies are saved as .rasm files and open in a tab of their own.

Starting an assembly

File ▸ New Assembly, or New Assembly in the start window. Every assembly has the standard Front, Top and Right Planes and the Origin at the top of its tree. They show in the view as a part's do (the eye in the tree, View ▸ Show Planes), and mates can use them; they stay where they are.

Each component has its own planes too : open it in the tree (the arrow beside it) and its part's Front, Top and Right Planes and Origin are listed first (a sub-assembly's, for a sub-assembly). They move with the component. Click one to select it; while a mate is being made, a click on one (or on the assembly's own) puts it into the mate, so a component's Front Plane can be made coincident with the assembly's Front Plane, parallel to it or a distance from it. The eye beside a plane shows it in the view, where the component is, and a plane shown can be clicked there as well (right-click the component ▸ Show Its Planes shows all three). Mate to Origin (right-click the component, or one of its planes) makes its Front, Top and Right Planes coincident with the assembly's, each the way round it is nearest, and floats it: the usual way to hold the first component square at the origin by mates rather than by Fix.

The Assembly tab of the ribbon holds Insert Components, Standard Parts, Equations, Assembly Hole, Assembly Cut, Mate, Fix, Float, Hide Component, Suppress, Open Part, Edit in Context, Exploded View, Positions, Explode / Collapse, Motion Study, Bill of Materials, Interference Check, Collision Detection, Speed Mode and Zoom to Fit.

Inserting components

Insert Components lists the parts and assemblies open in other tabs, or Browse for a Part or Assembly… takes a .rcad or .rasm file.

  • The first component is fixed at the origin; the others are placed beside what is there.
  • New Part (Assembly tab, or Insert ▸ New Part) makes a part in place : an empty part, fixed at the assembly's origin (its coordinates are the assembly's), opened with the other parts in it as see-through context bodies (see Edit in Context), so you sketch on their faces, project their edges and extrude up to them. Select a flat face of a component first and a sketch starts on it. In an empty assembly the part opens on its own. Back to the Assembly on the banner brings it in. For a whole design laid out in one part first, see Bodies to Parts.
  • If the part has configurations, you choose which one to use. Right-click a component later to switch it to another configuration. The same part can be in the assembly several times in different configurations.
  • The assembly keeps a copy of each part, refreshed from its tab or file whenever you come back to the assembly, so edit a part and the assembly follows.
  • Several instances of one part share it: it is built once and drawn once.

Standard parts

Standard Parts (Assembly tab, or Insert ▸ Standard Parts…) adds parts made to size from their standards:

  • hex bolts (ISO 4017) and socket head cap screws (ISO 4762), M3–M24, in the standard lengths; hex nuts (ISO 4032) and washers (ISO 7089);
  • inch hex bolts (ASME B18.2.1), socket head cap screws (ASME B18.3), hex nuts (ASME B18.2.2) and SAE flat washers, 1/4" to 1", with UNC threads and inch lengths;
  • socket set screws (ISO 4026), dowel pins (ISO 8734), round head rivets (ISO 1051), circlips for shafts and bores (DIN 471 / 472), parallel keys (DIN 6885 A) and 6000 / 6200 series ball bearings.

Each is an ordinary part with its threads as cosmetic threads, so it builds fast. Choose its material: steel, stainless, brass or aluminium. The same type, size, length and material is one part however many times it is used, so the bill of materials counts them.

Select a hole first (its round face or edge) and the size is picked to fit it (a clearance or tapped hole for bolts, the bore for a bearing, the shaft for a key), the length to suit the hole, and the part goes into the hole at the end facing you, mated to it (Concentric, plus Coincident on the face round the hole). For a bolt or screw:

  • Washer under the head, and washer and nut on the far side: the whole set is mated, and the length is picked for it (a 10 mm plate: M8 × 25). When the hole lines up with holes in other components (plates bolted together), the far side is the far side of them all: the washer and nut go under the last plate, and the length is picked for the whole stack.
  • All matching holes: the same part or set goes into every hole of the same size parallel to the selected one, in one go.

A hole that ends on a curved face (a cross hole in a round bar) gets a seat plane of its own, which follows the hole when the part changes.

Mates

Click Mate (M), then two faces, edges or vertices on different components (or a standard plane), choose the type and click ✔. The panel stays open for the next mate; Esc closes it.

The panel lists the types the two entities can take under Standard Mates, Advanced Mates and Mechanical Mates. Mechanical mates make an assembly move as the real machine does: turn or drag one part and the others follow, and a motion study plays it.

MateHolds
CoincidentFaces, edges or points together
ConcentricAxes in line
Parallel / PerpendicularDirections
TangentA face touching a round face
Distance / AngleAt a set value
LockOne component fixed to another
GearTwo gears turning together: pick their cylinders (pitch circles)
Rack PinionA pinion turning as a rack slides: pick the pinion's cylinder and a straight edge or the flat face of the rack
ScrewOn one axis, the second component advancing the pitch along it per turn it makes relative to the first (a nut on a lead screw)
HingeConcentric and touching in one mate: pick the two round faces (or circular edges), then a flat face of the first component and the face of the second that sits on it. It can only turn about the axis; Limit the turn keeps it between a minimum and a maximum angle (0° where it is when made: a lid that opens −10° to 110°)
Universal JointTwo shafts joined by a cross at the point where their axes meet: pick the two shafts (round faces or their axes). Mate each shaft so it can only turn (Concentric or Hinge); turn one and the other follows. With the shafts at an angle the second turns unevenly, as a real universal (Cardan) joint does: at 30°, about 4° ahead or behind at a quarter turn, level again every half turn
Linear CouplerAs one component slides, another slides the Ratio of it, along its own axis, edge or face normal (two slides linked by a lever or a cable). Reverse makes it slide the other way
WidthThe second component centred between two faces of the first: pick a face of each, then the first component's other face, then the second's (two parallel faces each: a tongue in a slot)
SlotA pin (a cylinder's axis) or a point kept the set distance from a straight edge (0: on it; the slot's side edge with the pin's radius), free to slide between the edge's ends and stopped there
PathA point (a vertex, an edge's middle, a sphere's centre) kept on a curved or circular edge of another component, free to move along it
CamA follower kept touching a cam's curved edge (a plate cam's outline): a roller (a cylinder's axis) its radius from the edge, seen along the roller's axis, or a point at the set distance. Guide the follower with another mate (a Slot or a Concentric on a pivot) and turn the cam: the follower rides on it
SymmetricTwo faces, edges or vertices kept mirror images of each other about a plane: pick them, then the plane (or a flat face) between them
  • Flat faces count as planes; cylinders, cones and circular edges as axes; spheres and vertices as points.
  • Each mate is shown applied while you choose. Flip swaps Aligned / Anti-Aligned (or the side for Distance and Tangent). When the alignment chosen from how the faces sit can't be reached, the other one is used.
  • Limit (Distance, Angle and Hinge) : free between a Minimum and a Maximum instead of one value (a slide with end stops, a door that opens 0 to 110°). Inside the limits the component moves freely; dragged past one, it stays there exactly.
  • A mate that conflicts with the others is refused with a message.
  • A mate keeps its faces and edges by their geometry, not only by their number in the part. When a part gets a new feature or a dimension moves a face, the mate stays on the same face. A mate whose face or edge is gone gets a red ! in the tree ("1 mate lost a face"). Tools ▸ Fix Mates… lists them with Edit, Suppress and Delete.

Gear and rack-pinion mates

These relate one component's motion to another's, from where they are when the mate is made, so set the teeth in mesh first. Hold each gear on its axle with the usual mates (Concentric and Coincident); the gear mate then takes one more degree of freedom.

  • Gear: turn one gear and the other turns the other way, in the ratio of their radii. Ratio is how many turns entity 2 makes per turn of entity 1; change it to the teeth ratio if the cylinders are not the pitch circles. Reverse the direction is for an internal gear, or pulleys on a belt and sprockets on a chain, where both turn the same way. The tree shows it as for example "Gear1 1:2".
  • Rack Pinion: turning the pinion slides the rack along the edge (or face) picked, and sliding the rack turns the pinion. Rack travel per pinion turn starts as the pinion's circumference (π × diameter). Reverse changes the direction.
  • They follow turns of any size made step by step, as when you drag a gear. One jump of more than half a turn can't be told from a turn the other way.

Moving components

Left-drag a component to move it, Alt+drag to turn it. It moves only as its mates allow. The view turns, pans and zooms as in a part (see Navigating the 3D View).

Selecting works as in a part and follows the selection filter: with no filter a click picks the vertex, edge, face or plane under the cursor; with the Bodies filter it picks whole components. Ctrl+click adds or takes away. Right-click a face, edge or vertex for Mate… and the component's commands; whatever is selected goes into the mate. Dragging a component moves it, whatever is selected.

Fasten All Holes

Fasten All Holes (Assembly tab) finds every stack of lined-up round holes through two or more components (tick Also holes through one component only for single ones too) and puts a fastener in each: the type you choose (hex bolt, socket head cap screw, inch sizes…), its size fitted to the holes, its length to the whole stack, with a washer under the head and a washer and nut on the far side if ticked, each mated in place (concentric, seated on the stack's outer faces). Stacks that have a fastener already are left alone, so it can be run again after adding parts.

Component patterns and mirrors

Component Pattern, Circular Component Pattern and Mirror Components (Assembly tab) copy the selected component (or the components of the selected faces and edges) :

  • Component Pattern: along X, Y, Z or a selected straight edge or axis, a spacing and a number of instances, and optionally a second direction.
  • Circular Component Pattern: round X, Y, Z or a selected axis (a cylinder, a circular edge), a total angle (equal spacing) or the angle between copies.
  • Mirror Components: about the YZ, XZ or XY plane or a selected flat face. The copy is placed as the mirror image, the part itself the same way round (for parts that are the same both ways round, such as screws, pins and brackets symmetric about the plane).

The copies are components of their own (in the bill of materials, mateable), fixed, and follow their seed when it moves. The pattern is listed in the tree: double-click it to change it, or delete it with its copies.

Collision detection

Collision Detection on the Assembly tab (or Tools ▸ Collision Detection Off / Show Collisions While Dragging / Stop at Collisions While Dragging) checks for parts running into each other as you drag.

  • Show: the parts that collide turn red while you drag, and the status bar names them.
  • Stop: the dragged component (and what its mates carry along) stops where it meets the other part, right against it.
  • Faces that only touch (mated faces) are not collisions, nor is a shaft in a hole of its size, nor a screw in a nut or tapped hole (threads are cosmetic, so the screw is its full diameter in a bore of about its minor diameter). Parts that already overlap when the drag starts are left out.
  • It works from the parts' display meshes, so it keeps up with the mouse. Interference Check gives the exact overlap volumes.

The assembly tree

  • Each component shows (f) when fixed or (-) while still free to move, its configuration, and an eye to hide or show it.
  • The Mates folder lists the mates; right-click one for Edit, Flip, Suppress or Delete.
  • Right-click a component for Mate…, Open Part (or double-click it), Edit in Context…, Fix / Float, Hide / Show, Suppress / Unsuppress, Make Transparent / Make Opaque (kept in the assembly, undone with Undo), Isolate (the other components hidden while you work; Exit Isolate on the banner), Insert Another Instance, Rename and Delete.
  • Make Flexible (a sub-assembly component) : its parts move in this assembly as its own mates let them (a hinge opening, a slide moving), solved with this assembly's mates on them; where they end up is kept with this component, so the sub-assembly itself and its other uses do not change. Make Rigid puts it back as one piece. A component fixed inside it stays fixed only when the sub-assembly component is fixed.
  • Number Parts (Assembly tab) gives each part and sub-assembly a Part Number property in the order of the bill of materials: a prefix, a first number, a step and a number of digits (P-0001, P-0002…). Those with a part number keep it unless you ask to number them again. Save parts kept in files of their own to keep their numbers there.
  • Edit in Context opens the part with the other parts you tick brought into it as transparent context bodies (the features Context: …), where they are in the assembly from it. Design the part to fit them: sketch on their faces, convert their edges, extrude up to them. Context bodies are references only: they are left out of the part where it is used (in the assembly, drawings, the bill of materials and exports). The context stays up to date: each time the part comes to the front with the assembly open, context bodies whose parts changed, changed configuration or moved are brought in again (a part taken out of the assembly has its context feature suppressed). Right-click a context feature ▸ Update Context to bring them all in again. Delete or suppress the context features when they are no longer needed. Save the part to update the assembly.
  • Edit Part : right-click a part in the tree or the view ▸ Edit Part. It opens the part with every other part shown in the assembly brought in as context bodies (as Edit in Context, without asking which), and its feature tree is the one new features go into. A banner says which part you are editing in which assembly; Back to the Assembly returns to it.
  • Cross references and circular references : a part can take its shape from others (sketch on their context bodies, use their edges, extrude up to them), and it follows them when they change. It can't take its shape from a part that already takes its shape from it, directly or through others, nor from another instance of itself: that would be a circular reference. Edit Part and Edit in Context leave such parts out and say why in a warning; remove the reference in the other part first (its Context feature) to use it.
  • Parts expand in the tree : click ▶ by a part (or a part in a sub-assembly) to see its features under it; double-click one to edit the part.
  • Undo and redo work in the assembly.

Sub-assemblies

An assembly can hold other assemblies as components. Insert Components lists the assemblies open in other tabs (double-click one to put it in whole), Browse for a Part or Assembly… takes a .rasm file, and STEP assemblies keep their sub-assemblies when they open as an assembly. An assembly can't go inside itself.

  • A sub-assembly is kept whole, with its own parts, placements and configurations, and moves, hides, suppresses and explodes as one. Clicking any of its parts picks it.
  • Mates can use the faces, edges and vertices of the parts inside it.
  • In the tree, ▶ opens a sub-assembly to show its components. Double-click one, or right-click the sub-assembly ▸ Open Sub-assembly, to change it in its own tab; the changes come back to the assembly.

Equations shared with the parts

Assembly ▸ Equations… (also on the Assembly tab) holds the assembly's own variables, for example base = 6 and thickness = 2*base. A variable that drives the parts sets the variable of the same name in every part that has one, through the sub-assemblies, so related parts are sized together from the top.

  • The table shows each variable's value, the parts it drives and a Drives the parts check box (off for a variable used only to work out others).
  • The values go into the assembly's copies of the parts, so the assembly, its drawings, the BOM and exports use them. They are applied again when a part is read again from its file.
  • Update Open Parts writes them into the parts open in tabs too, to be saved there.

Assembly holes and cuts

Assembly Hole and Assembly Cut (Assembly tab, or the Insert menu) make holes and cuts in the assembly, through every component they pass.

  1. Click points on a flat face of a component. More points on the same face make more holes; clicking another face starts again.
  2. Set the hole: simple, counterbore, countersink or tapped, a standard size (ISO 273 close, normal or loose fit) or a custom one. The first component gets the hole as chosen, the ones behind it a plain hole of the drill size. Tap the last component makes the last one tapped for the size. A cut is a rectangle: width, length and angle.
  3. Choose Through all or a depth. Components cut lists the components it passes through; untick one to leave it out.
  4. Fasteners: hex bolts or socket head cap screws put into each hole as it is made, with washers and a nut on the far side if wanted, as long as the stack they hold (to a standard length) and mated in the hole. Into a tapped last component, a screw goes about one diameter into the thread, without a nut.

The parts' own files are not changed: each component cut gets the feature in its copy of the part, so the assembly's drawings (hole callouts too), BOM and exports have the holes. The holes stay with the component they were clicked on: move a component and its holes are worked out again. The tree's Assembly Features folder lists them; right-click one to edit, suppress, rename or delete it. Fasteners put in a hole are kept when the hole is deleted.

Exploded views

Exploded View on the ribbon (or Insert ▸ Exploded View…) spreads components apart for display; the model and its mates stay put.

  1. Click components to pick them (click again to drop one).
  2. Pick a direction: ±X, ±Y, ±Z, or along a face's normal.
  3. Drag the picked items along the direction, or type the distance, then click Add Step. Spread Out spaces the picked items out along the direction, one step each.
  4. Click a step to change it, ✕ to delete it. Explode lines (dashed, from each item's place to where it is shown, along each of its moves in turn, turning the corner where it changed direction) can be switched off.

The tree's Exploded Views folder lists them. Double-click one to explode or collapse it (animated); right-click for Explode / Collapse, Animate, Edit, Rename and Delete. The Explode / Collapse button on the ribbon does the same for the last one. Dragging a component, adding a mate or editing collapses the view first. Exploded views are saved with the file.

Motion studies

Motion Study (Assembly tab) shows how an assembly moves. Choose a driver:

  • turning a component about the axis of one of its mates (360°, for example);
  • sliding a component along one of its mates' axes or faces;
  • changing a Distance or Angle mate's value from where it is to a new one.

More Drivers ▸ + Add a driver turns or slides further components at the same time, each by its own amount over the same steps (two motors, a crank and a slide). A component can have only one driver.

The motion is worked out step by step and the mates carry the other components along, the mechanical mates (gear, rack-pinion, screw, hinge, universal joint, linear coupler, slot and cam) included. Play / Stop (Space), back to the start, a slider to go through the steps, the number of steps, the duration and Loop. Where the mates can't follow, the panel says at which step.

Detect collisions (on for new studies) checks every step: parts that collide show in red as the motion plays, and the panel names the first collision and its step. Stop at the first collision ends the motion at the step before it. Clearance between two components (choose them in the panel) works out, at every step, the least distance between them from their display meshes, and the panel gives the least of all and its step (in red when they touch).

✔ keeps the study in the assembly's Motion Studies folder: double-click one to play it; right-click to edit, rename or delete it. Closing the panel puts the assembly back as it was: a motion study never moves the assembly itself.

Interference Check

Digging in by the keyboard : View ▸ Hide, Show All, Make Transparent, Make Opaque, Isolate and Exit Isolate work on the components selected, or on the one under the cursor. Give them keys of your own (Help ▸ Customize Shortcuts) to hide, see through or isolate components as fast as you point at them; the same keys work on bodies in parts.

Interference Check (Assembly tab, or Tools ▸ Interference Check…) finds where components overlap. Each overlap shows in red and is listed with its two components (inside sub-assemblies as "Sub-assembly ▸ Part") and its volume. Faces that only touch, such as mated faces, are not counted, and nor are the bodies of one multi-body part against each other. An exploded assembly is collapsed first, so the check is of where the mates put the parts.

Measure in an assembly

Measure (Assembly tab, or Tools ▸ Measure…) works as it does in a part, on the components where they are assembled . Click up to two items: vertices, edges, faces of any component (inside sub-assemblies too) or the origin planes. One item gives its size: an edge's length (and a circle's diameter), a face's area (and a round face's diameter), a vertex's position. Two give the shortest distance between them, with dX, dY and dZ, the angle between flat faces or straight edges, and the centre-to-centre distance of two round faces.

  • Turn on Filter Solid Bodies above the view to pick whole components: one gives its volume and surface area, two the clearance between them.
  • The sizes come from the parts' own geometry, not the display meshes, so they are exact. A part measured for the first time is built first (only that part, not the rest of its sub-assembly), which can take a moment on a big part; while Measure is open, the part the cursor rests on is built ahead, so a click on it is usually answered at once.
  • Keep the first item and the list of distances measured work as in a part. An exploded assembly is collapsed first. Esc or ✗ ends it.

Bill of Materials

Bill of Materials lists the parts with their quantities and materials: one row per part and configuration used, with suppressed components left out. It is indented: a sub-assembly's parts are listed under it (1.1, 1.2…), with the quantities in one of it. Copy as CSV or Save CSV… takes it to a spreadsheet.

  • Columns: click a column heading to change what it shows (an item number, quantity, part, material, file, configuration, any custom property, mass, cost, or values typed in), insert a column left or right, move, rename or remove it. Typed values are edited right in the table. The columns are kept with the assembly and are part of undo; Default Columns goes back to the usual ones.
  • Mass and cost: Mass and Total mass come from each part's material and volume; Cost and Total cost from a part's Cost property (for example 12.50, $3 or R12,50). A TOTAL row adds up the quantity, mass and cost; a sub-assembly adds up its parts.

STEP assemblies

Opening a STEP file that holds an assembly asks whether to open it as an assembly or as one part (see Importing in the Working with Files chapter). As an assembly, each part of the file becomes a part, each sub-assembly a sub-assembly, and each component is placed, fixed, where the file places it, with the names and colours from the file.

File ▸ Export ▸ STEP… in an assembly saves the whole assembly as one STEP file with its structure: each part once, in the configuration used, every component placed where it is and named after it, sub-assemblies kept as assemblies, and the parts' colours (a body's own colour, from Appearances, over its material's). Suppressed components are left out.

Saving parts as separate files

When an assembly holds parts or sub-assemblies that are only inside it (as a STEP assembly does when it opens), Save asks how to save them:

  • Save Parts as Separate Files saves each part as a .rcad file and each sub-assembly as a .rasm file in the assembly's folder, named after them. The assembly (and each sub-assembly) then uses those files, so each part can be opened and changed on its own and the change shows in the assembly. A part used in several places is one file. If files of those names are already there, you are asked before they are replaced.
  • Save as One File keeps everything inside the assembly file. You are not asked again, except on Save As.

Collect Files

File ▸ Collect Files… (in an assembly) copies the assembly with everything in it into one folder: each part and sub-assembly a file of its own (as the assembly has it now), the assembly last, using those files. Names can be given something before and after them (e.g. P1-), to start a variant of the design or send it all to someone. The assembly open here is left as it is.

Big assemblies

Each part an assembly builds is kept in the model cache (%LOCALAPPDATA%\RazorCAD\modelcache). Opening the assembly again shows unchanged parts straight from there, and the kernel only builds parts that changed, so a large layout reopens in seconds. Parts are built side by side in several geometry kernels at once, as many as the PC's processor threads and memory allow, and each shows as soon as it is built. Each part is sent to the graphics card once and placed at every component that uses it, so moving, hiding or exploding components is instant.

Speed Mode (Assembly tab, or View ▸ Speed Mode) is for very large assemblies: the parts are shown from simplified display meshes, with far fewer triangles to draw and keep in memory. The faces and edges stay the same, so mates, measuring, picking and collision detection work as before. A component you select is loaded in full; turning speed mode off shows everything in full again. It is saved with the assembly, and a large assembly suggests it in the status bar. Drawings, exports and Interference Check always use the exact geometry.