The Model window is where you open your project's 3-D model, look round it, rig it and watch any show play on it. This chapter is a tour of the window: its layout, how to move round the model, the Rig tree and the Parts list, choosing and ticking parts, the menus, Undo, playing a show and jogging, and the model in the chart area's pane. Rigging itself (bodies, joints, drives, mates, several models and cables) is chapter 20, and the window's AI card is chapter 21. For what a model and a rig are, and which files Contours opens, see chapter 18.
Nothing in the Model window moves a motor. Playing a show, jogging a joint or jogging an axis moves only the model on screen.
Opening the Model window
The Model window has no menu item. It opens from the chart area, on the Shows or Test tab:
-
Choose a Layout that shows the second pane: Path (the pane alone; it reads Model once the pane holds the model), Side by side or Stacked (chapter 17).
-
Under Pane, choose Model.
-
Click Set up the model: the button under No model yet in the pane while the project has no model, or the cube icon (Set up the model) at the end of the layout bar's 3-D view section, which shows while the pane holds the model.
The first time, the window opens over Contours' main window at the same size. After that it opens where you last closed it, at the size you left it. Its title is Model · and the project's name. You can go on working in the main window while it is open; the model's view moves into the window, and the pane says The model is open in its own window. Close the Model window with its own close button, and the model goes back to the pane.
The rig and the link to the model file are part of the project. Save the project to keep them: Ctrl+S works in the Model window as it does in the main window.
Opening a model
In a project with no model, the view says No model yet.
-
Click Open... in the middle of the view, or the cube button (Open a model...) on the bar over the tree.
-
Choose a STEP (
.step,.stp) or GLB (.glb) file. The file box starts in the folder you last opened a model from.
You can also drag a STEP or GLB file from File Explorer and drop it anywhere on the window (dropped on the AI card, a file goes with your next AI request instead: chapter 21). While the model opens, the view says what Contours is doing: Converting the STEP file... (the first time a STEP is opened), Reading the model..., Reading the mates... (when a SolidWorks mates file is beside it).
Once a model is open, the cube button reads Add model... and adds another model to the rig (chapter 20). To use a different file for the first model and keep the rig, use Change file... on its card (Rig tree, Models).
Figure 19.1. The Model window before a model is opened.
The window's layout
The window has three columns, each with a bar over it:
-
On the left, the tree: the Rig tree or the Parts list.
-
In the middle, the card for the row you have chosen (Properties), or the AI card.
-
On the right, the 3-D view, with the window's own show row under it.
Figure 19.2. The Model window: (1) the tree's bar, (2) the card's bar, (3) the view's bar, (4) the Rig tree, (5) the chosen row's card, (6) the XYZ reference, (7) the show row.
The bar over the tree
-
Model and the model's name. Its (i) gives the file's full path, how many parts and triangles it has, and how to export it. A warning icon beside it means the STEP is AP203, which holds no colours (chapter 18).
-
Open a model... or Add model... (the cube).
-
Reload: reads the model file again, after you have exported a new version.
-
Undo and Redo (see "Undo and Redo" below).
-
Fold the tree away (the chevron at the right).
The bar over the card
-
Properties and AI: rig the model: the card column shows the chosen row's card, or the AI card (chapter 21).
-
Fold the card away and Fold the tree and card away.
The bar over the view
-
View: the camera list, Fit the model in the view, and Background colour.
-
Colours: Bodies or Model.
-
Lengths: mm or in, with the rig's size beside it and its (i).
-
Up: Y or Z.
When the window is narrow, the sections that don't fit go into the bar's ⋮ menu, Up and Lengths first.
Resizing and folding the columns
-
Drag the edge between two columns to make the tree or the card wider or narrower. Double-click the edge to put its default width back.
-
Drag a column narrower than it can go and it folds away to a narrow rail where it was. The rail has an arrow (Show the tree or Show the card) and the column's name: RIG or PARTS, PROPERTIES or AI. Click the arrow, or drag the rail's edge out, to open it again.
-
The fold buttons on the bars do the same. Fold the tree and card away gives the view the whole window, with one rail holding an arrow for each column.
The widths and folds are kept between runs. In a narrow tree, New body shows only its +, and the Parts list shows each part's body as its colour dot alone.
Figure 19.3. The tree and card folded away, leaving the view the whole window.
Looking round the model
|
To |
Do this |
|---|---|
|
Turn the model |
Drag with the left mouse button. The view turns like a turntable about the model's up axis, so the model stays upright. |
|
Move the view sideways (pan) |
Drag with the right or middle mouse button. |
|
Zoom |
Turn the mouse wheel. The view zooms towards whatever is under the pointer, so point at the part you want a closer look at. Zooming in stops short of going through the part. |
|
Zoom to one part |
Double-click it. The view keeps its turn. |
|
See the whole model |
Double-click off the model, or click Fit the model in the view. |
Fit the model in the view fits the parts that are shown, so with parts hidden it frames the ones you can see. It keeps the way the model is turned.
The camera list holds 3-D, Top, Front and Side. Choose one to look from there. To put a view back after turning it, choose the same camera again.
The view is saved with the project. Reopening the project, reloading the model, or moving the model between the window and the pane keeps it as you left it. Changing the model's units or up axis puts the camera's preset back.
The XYZ reference
The box at the top right of the view shows the model's own X (red), Y (green) and Z (blue) axes, the directions the Joint cards and the AI use. An axis pointing straight at you is a short stub with a dot; one pointing away is faded. Click a letter to look along that axis from its positive side, fitted to the model.
The X, Y and Z planes
The eye in the reference box's top-left corner (Show the X, Y and Z planes) shows the planes through the model's origin, as SolidWorks shows its Front, Top and Right planes. Each plane is tinted in the colour of the axis square to it and has a grid, with the axes drawn through 0 in their colours. The planes help you see how parts and models sit against each other. They take no clicks, so you can still turn the view and click parts through them. Click the eye again to hide them; your choice is kept between runs, and applies in the chart area's pane too.
Figure 19.4. The XYZ reference, and the X, Y and Z planes through the model's origin.
The background colour
The model can have a background of its own, whatever Light or Dark theme Contours uses. Click Background colour (the palette) on the view's bar, then pick a colour or type one as #RRGGBB in Colour. Default puts back the theme's page colour. The same background is used in the window and in the chart area's pane, and it is kept between runs. Notes and boxes over the view sit on their own background, so they stay readable on any colour.
Figure 19.5. Choosing the model's own background colour.
Colours, Lengths and Up
Colours sets how the parts are coloured in the window:
-
Bodies: each body's parts are tinted in the body's own colour, the colour of its dot in the Rig tree, and the ground's parts are grey. This shows at a glance which parts move together.
-
Model: every part in its own colour from the file.
Either way, the row you choose is lit in the theme colour (green), and when it is a body or a joint, the parts that don't belong to it are faded so it stands out. The chart area's pane always shows the model's own colours.
Figure 19.6. Colours: Bodies (left) tints each body; Model (right) shows the file's own colours.
Lengths (mm or in) is how the window shows every length, and beside it is the rig's size, width × depth × height. Up (Y or Z) says which of the file's axes points up. Neither changes the model itself; a model's own units are on its card. Chapter 18 explains units and the up axis, and the note that appears beside the size when a model's units look wrong.
The Rig tree
Click Rig at the top of the tree column to see the rig. Its rows, top to bottom:
-
Models: a row for each model in the rig, with its card (name, file, units, place).
-
Mates (only with a SolidWorks mates file beside the model): the assembly's drives, and All mates, every mate in the file.
-
The bodies, each under the body it hangs from. Under each body come its joints (its own joint first, then any extra joints) and then the bodies hanging from it.
-
Cables.
-
Ground: the parts in no body, with how many there are.
Each row is one line: an icon or the body's colour dot, the name, and a short detail in grey, such as "4 parts", "frame" (a body with no parts), what drives a joint ("Motor L", "passive", "not driven"), or which axis drives a mate drive. An alert icon on a row means its card has something to tell you, such as a joint no axis drives yet. A body's or the ground's eye shows and hides all its parts; it appears when you point at the row, on the chosen row, and wherever something is hidden. The chevrons open and fold rows; bodies and the Mates folder start open, and All mates and Cables start folded. Right-click the tree for Expand all and Collapse all.
Choose a row to see its card. The Body, Joint, Drive, Mates, Mate, Cables, Cable and Model cards are for rigging, in chapter 20. The Ground card says how many parts are on the ground, and while you have no bodies yet it gives the first step: tick the parts that move together, then New body. Its Show all parts shows every hidden part again.
New body at the top right of the tree makes a body of the ticked parts; its second line says where the new body will hang ("under arm_L", or "on the ground"). Chapter 20 explains it. The (i) beside Rig and Parts sums up the tree and the view.
Figure 19.7. The Rig tree: the models, each body with its joints and the bodies that hang from it, cables and the ground. A model with a SolidWorks mates file also has a Mates row.
The Parts list
Click Parts at the top of the tree column to list every part of the model. Each row has a tick, the part's name, the body it moves with (its colour dot and name, Ground, or the mate drive that moves it) and its eye. A part that one of the assembly's mates moves has no tick, as it can't go in a body of your own while the mates move it.
The parts are listed under headers:
-
Your own groups first, each with a folder icon.
-
Each model in the rig, with a cube icon in the theme colour.
-
Under it, each subassembly in the model file, indented under the subassembly that holds it.
A header's chevron folds it. Click the rest of a header to choose it and see its card. Each header shows how many parts it holds and has an eye for all of them.
Searching and sorting
-
Type in Search parts to list only the parts whose name, file name or body matches. The line under it says how many it found, such as "12 of 89 parts".
-
File, Name and Body sort the list: in the file's order under its subassemblies, by name, or by body with the ground last. Searching, or sorting by name or body, gives one flat list with no headers.
Figure 19.8. The Parts list, with a group of your own, the model's subassemblies and each part's body.
Showing and hiding parts
Click a part's eye to hide it, and again to show it. The eye on a header, a body's row or the Ground row hides or shows all its parts at once; when only some of them are hidden, that eye shows a minus, and a click shows them all. Hidden parts are saved with the project and stay hidden in the chart area's pane. Show all parts (on the Ground card and in the menus) shows every part again.
Hide a part that is in the way, such as a frame or a cover, so you can see and click what is behind it.
Show only these
To look at one body, group or subassembly on its own, click Show only these on its card (or Show only this in a part's menu). Every other part is hidden, and a bar at the top of the view says what you are looking at, for example "Showing only Plate · 2 of 19 parts". Click Show the rest again on that bar, or the same button on the card, to go back to what was shown before.
Show only is a way of looking, not a change to the rig: it isn't saved, isn't an Undo step, and ends when you close the window or open another project. The eyes still work while it is on, and what you hide with them stays hidden afterwards.
Figure 19.9. Show only these, and the bar that takes you back.
The Part card
Choose a part in the Parts list to see its card:
-
Name: a name of your own for the part, saved in the project only, never in the model file. Until you type one, the box shows the file's name as its hint ("Name (file: leg_L)"); once you have typed one, the file's name is shown under the box ("In the file: leg_L"). Clear the box to go back to the file's name. Your names are used everywhere the window names the part, and the AI is told them.
-
A line saying where it moves: in a body, moved by a mate drive, or on the ground.
-
Body: the body it moves with, or Ground. Choosing a body here moves the part into it.
-
Group: one of your own groups, or none.
-
Make a cable from this part, for a cable or tube part, and MATES, the assembly's mates on the part: see chapter 20.
Your own groups
A group is a set of parts you choose, shown and hidden together, such as all the tubes or all the screws. A group never moves anything, and each part is in one group at most. Groups are saved in the project only.
-
Tick the parts, in the Parts list or with Ctrl+click in the view.
-
Click Group on the selection bar over the view (see "The selection bar" below).
-
The new group, "Group 1", is chosen and its card's Name box is ready for you to type its name.
The Group card lists its parts; the × on a part takes it out. Add ticked parts adds the ticked parts, Show only these shows the group alone, and New body from these parts makes a body of them. Ungroup (the icon in the card's title, or Delete) puts the parts back where the file lists them. You can also put a part in a group from the Group list on its Part card.
Subassemblies
Choose a subassembly's header to see its Subassembly card. Its parts come from the model file, so none can be added or taken out here; make a group of your own for that. You can give it a name of your own (saved in the project only), show it alone with Show only these, and make a body of all its parts with New body from these parts.
Figure 19.10. The Part card (left) and the card of a group of your own (right).
Hovering and clicking in the view
Hovering
As the pointer moves over the model, Contours outlines what a click there would choose: a whole body, the parts a mate drive moves, or a single part. The outline is in the theme colour. Rest the pointer for a moment and a label names the part and where it is ("in arm_L" or "on the ground"; for a part the assembly's mates move, "moved by" and the mate drive's name).
While parts are ticked, pointing at a body outlines it in a contrasting colour (magenta) instead: a click there would make it the body the ticked parts go to.
Figure 19.11. Pointing at a part outlines what a click would choose, and names the part.
Clicking
|
Click on |
What happens |
|---|---|
|
A part in a body |
Chooses the body: its row in the Rig tree and its card. The body is lit and the rest of the model faded. Click a part of the chosen body again to choose nothing. |
|
A part one of the assembly's mates moves |
Chooses that mate drive's row and card. |
|
A part on the ground |
Ticks it, or unticks it. |
|
Any part, with Ctrl held |
Ticks or unticks that part alone, even one in a body, so you can move it to another body. What is chosen stays chosen. |
|
Off the model |
Chooses nothing. |
A click in the Rig tree or the Parts list always chooses that row.
With nothing chosen, nothing is lit or faded, there is no joint axis and no JOG row, and the card column says Nothing chosen: choose a row in the tree, or click a part of the model. Esc does the same. Ticked parts stay ticked.
The selection bar
The box at the top left of the view is the selection bar. It shows the part you clicked last, and what you can do with the ticked parts.
-
The part clicked last: its name and where it is. Show in Parts opens the Parts list on it, clearing a search that hides it and opening its header. While the AI card is open, To request puts its name into the AI request (chapter 21).
-
The ticked parts: how many are ticked, then the list of where they go (Ground or a body, each with its colour). The body in the list is shown in magenta in the view, with the ticked parts in the theme colour. New body makes a body of them (its second line says where it will hang), Add to and the body's name adds them to that body, and Group makes a group of them.
When a button is greyed, point at it to see why, for example "Nothing ticked: click parts in the view, or tick them in Parts." The × closes the bar and unticks every part. Chapter 20 explains making bodies from the ticked parts.
Figure 19.12. The selection bar with two parts ticked, and the body they will go to shown in magenta.
Right-click menus
Right-click a part in the view, or a row in the tree or the Parts list, for its menu. Right-clicking a row chooses it first. In the view, a right-click that doesn't move opens the menu; a right drag pans.
|
Right-click on |
The menu |
|---|---|
|
A part (in the view or the Parts list) |
Show in Parts (in the view), Zoom to, New body from this part, Move to body (each body, and Ground), Make a cable from this part, Hide or Show, Show only this, Show all parts, Rename, Add to the AI request, and with several models Show its model. A part the mates move has no body items. |
|
A body |
Rename, Add joint, Zoom to, Hide or Show, Show only these, Show all parts, Delete body. |
|
A joint |
Zoom to its body; for an extra joint also Rename and Delete joint. |
|
A subassembly or a group of your own |
Rename, New body from these parts, Zoom to, Hide or Show, Show only these, Show all parts; for a group also Ungroup. |
|
A model |
Rename, Zoom to, Hide or Show, Show only these, Show all parts, Remove from the rig. |
|
The view, off the model |
Fit, Show all parts. |
Every menu in the Rig tree ends with Expand all and Collapse all, and right-clicking the empty space under the tree's rows gives those too. Rename puts the keyboard in the card's name box.
Figure 19.13. A part's right-click menu, with Move to body open.
Undo and Redo
Undo and Redo on the bar over the tree, or Ctrl+Z and Ctrl+Y, step back and forward through your changes to the rig: bodies, joints, drives and limits, mates switched off or changed, models added, placed or removed, cables, groups, names and hidden parts. A typed value counts as one change once you leave its box, and a drag as one change when you let go. Up to 50 changes are kept while the project is open; a new change after an Undo clears what Redo could bring back.
Undo doesn't cover the camera, the window's show and time, jogs, Show only, or the project's shows and axes. Undo and Redo are greyed while the AI card is working on a request. Undo doesn't save anything: save the project to keep your changes.
Playing a show in the window
The row under the view plays any of the project's shows on the model, at the window's own pace:
-
The show list: the project's first show until you choose another. Your choice is kept while the project is open.
-
Play and Pause. Play at the end of the show starts again from the beginning.
-
Stop: back to the start of the show.
-
The time, such as "3.20 s of 25.0 s", and a slider you can drag to any time.
The window's show has its own clock. It doesn't follow the Shows tab's time cursor, Simulate, Run show, Record or the motors, and moving it doesn't move them. Closing the window pauses it.
If the rig can't reach where the show sends it, the time is followed by what stopped it, such as "can't reach arm_L: the linkage locks", or the joint that stopped at one of its limits, and the parts stay where they last got to. Chapter 20 explains limits.
Jogging a joint: the JOG row
Choose a joint, or one of the assembly's mate drives, and the JOG row appears over the bottom of the view: the drive's colour dot and name, a slider and its value. Drag the slider to move that joint alone and see what it moves. Jogging a passive joint (one no axis drives) lets the rest of its linkage follow it.
Back to the show puts the joint back where the show has it. Playing the show, dragging its slider, Stop, choosing another show, or changing what drives the joint does the same.
Jogging an axis: the AXIS row
A show that holds an axis still leaves everything it drives still. The AXIS row lets you try an axis at any value instead. Choose the axis in its list (each with its colour), then drag the slider. Everything that axis drives moves together, joints that follow others included. The slider's range keeps every joint the axis drives inside its limits.
Each axis you jog keeps its value until you click Back to the show. Playing the show, dragging its slider, Stop, choosing another show, closing the window or opening another project also put the axes back. Changes to the rig keep the jog, so you can adjust a joint and watch the result.
Figure 19.14. The JOG and AXIS rows over the bottom of the view, and the show row under it.
A missing model file
If the project's model file has been moved, renamed or deleted, the rig is kept as it was: the file may come back. The view says The model file isn't there, gives the path where Contours looked, and says to put the file back and click Reload, or open the model's file where it is now with Open.... Each body counts the parts it can't find ("3 parts · 1 missing", or "2 parts, all missing") and shows an alert, with the same words on its card. The chart area's pane says The model file isn't there and the file's name.
If the first model's file is missing, the other models in the rig aren't shown either, as the first model is the rig's frame. If a file is there but can't be read, the view says The model couldn't be opened and why.
Figure 19.15. A model file that isn't where the project expects it.
The model in the chart area
With Pane set to Model on the layout bar, the chart area's second pane shows the model while the Model window is closed (chapter 17). Unlike the window, the pane follows the main window:
-
On the Shows tab, the model is posed at the time cursor. It follows Simulate and Run show as the cursor moves, shows where Live update is sending the motors, and follows your unsaved changes in the point editor.
-
During Record and a Test run, it follows the positions the motors report.
The pane shows the model's own colours. You can turn, pan and zoom it as in the window, but not choose or tick parts. The layout bar's 3-D view section has the pane's camera list, Fit, Background colour and Set up the model, which opens the Model window. The XYZ reference and its planes eye are in the pane too. The pane isn't shown on the Axes tab.
Figure 19.16. The model in the chart area's pane, and the layout bar's 3-D view section.
Keys
|
Key |
What it does |
|---|---|
|
Esc |
Ends picking an axis or moving a model, else chooses nothing. |
|
Delete |
Deletes the chosen body or extra joint, or ungroups the chosen group of your own, without asking (Undo brings it back). For a chosen model it asks first. |
|
F2 |
Puts the keyboard in the chosen card's name box. |
|
Ctrl+Z, Ctrl+Y |
Undo and Redo. |
|
Ctrl+S, Ctrl+Shift+S, Ctrl+B |
Save, Save As and Save Backup, as in the main window. |
|
Enter |
In a box on a card, keeps what you typed. |
|
Ctrl+click |
Ticks or unticks a part in the view. |
While you type in a box, the keys are the box's own: Esc, Delete, F2 and Ctrl+Z work on the text. Chapter 25 lists every key in Contours.