The tree view appears in the Model tab of the combo view, one of the most important panels in the interface; it shows all user defined objects that are part of a FreeCAD document. The tree view is a representation of the document's structure, and indicates what information is saved to disk.
These objects don't necessarily have to be geometrical shapes visible in the 3D view, but can also be supporting data objects created with any of the workbenches.
The tree view showing various elements in the document.
Working with the tree view
By default, whenever a new object is created, it is added to the end of the list in the tree view. The tree view allows managing the objects to keep them organized; it permits creating groups, moving objects inside groups, moving groups inside other groups, renaming objects, copying objects, deleting objects, and other operations in the context menu (right click) which depend on the currently selected object and the currently active workbench.
Many operations create objects that are dependent on a previously existing object. In this case, the tree view shows this relationship by absorbing the older object inside the new object. Expanding and collapsing the objects in the tree view shows the parametric history of that object. Objects that are deeper inside others are older, while objects that are outside are newer, and are derived from the older objects. By modifying the interior objects, the parametric operations propagate all the way to the top, generating a new result.
The topmost object is created by doing parametric operations on objects which themselves were created by previous operations. Expanding the tree many levels reveals the original elements that were used to create the partial solids.
Labels & Attributes
In the Labels & Attributes column the labels and icons of the objects are displayed.
Selecting an object in this column and pressing F2 (on Windows and Linux), or Enter (on macOS), allows to edit the object's DataLabel property in situ without detour via the context menu action described below or the Property editor.
The Description column displays further information about objects, if available.
This information is stored in an object's DataLabel2 property which can be edited in situ by selecting the object in this column and pressing F2 (on Windows and Linux), or Enter (on macOS), or via the Property editor.
Since the tree view lists objects that may be visible in the 3D view, many of the actions are the same as those that can be executed from the 3D view. The actions can be started from a Context menu that can be accessed by right clicking either the background or an object.
When the application starts, the default Start Workbench is active, and no document has been created, the context menu of the tree view has only one entry:
- Expression actions. When the cursor is moved onto it, a sub-menu opens containing four commands:
These allow working with various documents, but are disabled if no document is present.
Once a new document has been created right clicking the background opens the context menu now containing two entries:
- Expression actions as above but with these two entries activated:
- Link actions - a sub-menu with two entries:
- Make Link group - another sub-menu containing three commands:
- Make Link
Selecting the document
If you select the document and right click, in addition to Expression actions and Link actions, the context menu contains the following commands:
- Show items hidden in tree view: if active, the tree view will show hidden items.
- Search: shows an input field to search objects inside the selected document.
- Close document: closes the selected document.
- Add dependent objects to selection: all dependent objects will be added to the selection. This way one can see the dependencies and e.g. delete all dependent objects at once. Only available for objects with links and for documents.
- Skip recomputes: if active, the document's objects will not recompute automatically.
- Allow partial recomputes: if active, the document will allow recompute of only some objects. Only available if Skip recomputes is activated.
- Mark to recompute: marks all objects of the document as touched, and ready for recompute.
- Create group: creates a group in the selected document.
Once objects are added to the document right clicking them will show additional commands. These depend on the number of selected objects, their type and also on the active workbench. In most cases and with most workbenches (except the Start Workbench) the following commands are then available:
- Appearance: launches a dialog to change the visual properties of the whole object.
- Random color: assigns a random color to the object.
- Cut: disabled.
- Copy: copies an object into memory.
- Paste: pastes the copied object into the document; the copy is added to the end of the tree view.
- Delete: removes the object from the document.
- Toggle visibility in tree view: toggles the Tree view visibility of objects.
- Mark to recompute: marks the selected object as touched, and ready for recompute.
- Recompute object: recomputes the selected object.
- Rename: starts editing the label of the selected object, not the name which is read-only. This option is only available if a single object is selected.
As an example of context menu extension, if a Part Box is right clicked while the Part Workbench is active the following additional commands are available:
- Edit: activates the edit mode of the object.
- Transform: launches the transform widget to move or rotate the object.
- Attachment editor: launches a dialog to attach the object to one or more other objects.
- Set colors: sets the color of selected faces of the object.
- Toggle visibility: makes the object visible or invisible in the 3D view.
- Show selection: makes the selected object visible.
- Hide selection: makes the selected object invisible.
- Toggle selectability: toggles the selectability of the object in the 3D view.
- Select all instances: selects all instances of this object in the tree view.
- Send to Python Console: creates a variable in the Python console referencing the object
The following keyboard actions are available when the focus is on the Tree view:
- Ctrl+F: opens a search box at the bottom of the tree, allowing to search and reach objects using their names or labels.
- Expand and collapse actions using Alt+Arrow combinations: introduced in version 0.20
- Alt+Left: collapses selected item(s).
- Alt+Right: expands selected item(s).
- Alt+Up: expands selected item(s) with all their tier-1 children collapsed (deeper children remain unchanged).
- Alt+Down: expands selected item(s) with all their tier-1 children expanded as well (deeper children remain unchanged).
One or more smaller overlay icons can be displayed on top of an object's default icon in the tree view. The available overlay icons and their meaning are listed below.
White check mark on blue background
This indicates that the object has to be recomputed, due to changes made to the model or because the user marked the object in the tree view context menu to be recomputed. In most cases recomputes are triggered automatically, but sometimes they are delayed for performance reasons.
White arrow on green background
This indicates the so called Tip of a body. It is usually the last feature in a PartDesign Body and represents the whole body to the world outside of the body, e.g. when the body is exported or used in Part boolean operations. The tip can be changed by the user.
Purple chain link on white background
This is typically shown for sketches, geometric primitives, such as box, cylinder, etc. and Datum geometry. It indicates that the object is not attached to anything. It has no Attachment Offset and gets its position and alignment solely from its Placement property.
There is a Basic Attachment Tutorial explaining how to handle such objects.
This is only used for sketches and indicates that the sketch is not fully constrained. Inside of Sketcher the number of remaining degrees of freedom is shown in the solver messages.
White exclamation mark on red background
This indicates that the object has an error that needs to be fixed. After recomputing the whole document a tooltip describing the error is shown when you hover the mouse over the object in the tree view. Note: All other objects depending on an object in such an error state will not be properly recomputed, thus they may still show some old state.
This indicates that the object will be hidden in the Tree view if the Show items hidden in tree view context menu option is unchecked.
- Preferences Editor, Interface Customization
- Main window: Standard menu, Main view area, 3D view, Combo view (Tree view, Task panel, Property editor), Selection view, Report view, Python console, Status bar, DAG view, Workbench Selector
- Auxiliary windows: Scene inspector, Dependency graph
- File: New, Open, Close, Close All, Save, Save As, Save a Copy, Save All, Revert, Import, Export,Merge project, Project information, Print, Print preview, Export PDF, Recent files, Exit
- Edit: Undo, Redo, Cut, Copy, Paste, Duplicate selection, Refresh, Box selection, Box element selection, Select All, Delete, Send to Python Console, Placement, Transform, Alignment, Toggle Edit mode, Edit mode, Preferences
- Miscellaneous: Create new view, Orthographic view, Perspective view, Fullscreen, Bounding box, Toggle axis cross, Clipping plane, Texture mapping, Toggle navigation/Edit mode, Appearance, Random color, Workbench, Status bar
- Standard views: Fit all, Fit selection, Isometric, Dimetric, Trimetric, Home, Front, Top, Right, Rear, Bottom, Left, Rotate Left, Rotate Right
- Freeze display: Save views, Load views, Freeze view, Clear views
- Draw style: As is, Points, Wireframe, Hidden line, No shading, Shaded, Flat lines
- Stereo: Stereo red/cyan, Stereo quad buffer, Stereo Interleaved Rows, Stereo Interleaved Columns, Stereo Off, Issue camera position
- Zoom: Zoom In, Zoom Out, Box zoom
- Document window: Docked, Undocked, Fullscreen
- Visibility: Toggle visibility, Show selection, Hide selection, Select visible objects, Toggle all objects, Show all objects, Hide all objects, Toggle selectability, Toggle measurement, Clear measurement
- Toolbars: File, Workbench, Macro, View, Structure
- Panels: Report view, Tree view, Property view, Selection view, Combo view, Python console, DAG view
- Tree view actions: Sync view, Sync selection, Sync placement, Pre-selection, Record selection, Single document, Multi document, Collapse/Expand, Initiate dragging, Go to selection
- Tools: Edit parameters, Save image, Load image, Scene inspector, Dependency graph, Project utility, Measure distance, Add text document, View turntable, Units calculator, Customize, Addon manager
- Macro: Macro recording, Stop macro recording, Macros, Recent macros, Execute macro, Attach to remote debugger, Debug macro, Stop debugging, Step over, Step into, Toggle breakpoint
- Help: Help, FreeCAD Website, Donate, Users documentation, Python scripting documentation, Automatic Python modules documentation, FreeCAD Forum, FreeCAD FAQ, Report a bug, About FreeCAD, What's This
- Structure and Link: Std Part, Std Group, Make link, Make sub-link, Replace with link, Unlink, Import links, Import all links, Go to linked object, Go to deepest linked object, Select all links
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub