Tree view/es

Introducción
La vista árbol aparece en la pestaña de la vista combo, uno de los paneles más importantes de la interfaz; muestra todos los objetos definidos por el usuario que forman parte de un documento de FreeCAD. La vista árbol es una representación de la estructura del documento, e indica qué información se guarda en el disco.

Estos objetos no tienen que ser necesariamente formas geométricas visibles en la Vista 3D, sino que también pueden ser objetos de datos de apoyo creados con cualquiera de los Ambientes de trabajo.





Trabajando con el vista arbol
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, relabeling 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.



Tree view columns
By default the tree view only displays a single column with the labels and icons of objects. A second column with descriptions can optionally be displayed as well, column headings are then also added.

To enable the description column right click the tree view and in the context menu select:

Edit object label
Select an object in the first column and press (on Windows and Linux), or  (on macOS), to edit its  property. This property can also be edited via the context menu action described below or in the Property editor.

Edit object description
An object can optionally have a description. This information is stored in its property. If the description column is displayed you can edit this property by selecting an object in that column and pressing (on Windows and Linux), or  (on macOS). The property can also be changed in the Property editor.

Acciones
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 that can be accessed by right clicking either the background or an object.

Application start
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: These allow working with various documents, but are disabled if no document is present.
 * . When the cursor is moved onto it, a sub-menu opens containing four commands:
 * Copy selected
 * Copy active document
 * Copy all documents
 * Paste

New document
Once a new document has been created right clicking the background opens the context menu now containing two entries:
 * as above but with these two entries activated:
 * Copy active document
 * Copy all documents
 * - a sub-menu with two entries:
 * - another sub-menu containing three commands:
 * Simple group
 * Group with links
 * Group with transform links
 * Make Link



Seleccionar el documento
If you select the document and right click, in addition to and, the context menu contains the following commands:
 * : if active, the tree view will show hidden items.
 * : shows an input field to search objects inside the selected document.
 * : closes the selected document.
 * : 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.
 * : if active, the document's objects will not recompute automatically.
 * : if active, the document will allow recompute of only some objects. Only available if is activated.
 * : marks all objects of the document as touched, and ready for recompute.
 * : creates a group in the selected document.



Seleccionar de objetos
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:
 * : launches a dialog to change the visual properties of the whole object.
 * : assigns a random color to the object.
 * : disabled.
 * : copies an object into memory.
 * : pastes the copied object into the document; the copy is added to the end of the tree view.
 * : removes the object from the document.
 * : toggles the Tree view visibility of objects.
 * : marks the selected object as touched, and ready for recompute.
 * : recomputes the selected object.
 * : 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:
 * : activates the edit mode of the object.
 * : launches the transform widget to move or rotate the object.
 * : launches a dialog to attach the object to one or more other objects.
 * : sets the color of selected faces of the object.
 * : makes the object visible or invisible in the 3D view.
 * : makes the selected object visible.
 * : makes the selected object invisible.
 * : toggles the selectability of the object in the 3D view.
 * : selects all instances of this object in the tree view.
 * : creates a variable in the Python console referencing the object

Keyboard actions
The following keyboard actions are available when the focus is on the Tree view:
 * +: 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 + combinations:
 * +: collapses selected item(s).
 * +: expands selected item(s).
 * +: expands selected item(s) with all their tier-1 children collapsed (deeper children remain unchanged).
 * +: expands selected item(s) with all their tier-1 children expanded as well (deeper children remain unchanged).



Iconos superpuestos
Se pueden mostrar uno o varios iconos superpuestos más pequeños sobre el icono por defecto de un objeto en la vista de árbol. Los iconos superpuestos disponibles y su significado se enumeran a continuación.



[[File:FreeCAD_Tree_view_recompute.png]] Marca de verificación blanca sobre fondo azul
Esto indica que el objeto tiene que ser recalculado, debido a los cambios realizados en el modelo o porque el usuario marcó el objeto en el menú contextual de la vista de árbol para ser recalculado. En la mayoría de los casos los recálculos se activan automáticamente, pero a veces se retrasan por razones de rendimiento.



[[File:FreeCAD_Tree_view_tip.png]] Flecha blanca sobre fondo verde
Indica la llamada Punta de un cuerpo. Suele ser la última característica de un DiseñoPieza Cuerpo y representa todo el cuerpo para el mundo exterior al cuerpo, por ejemplo, cuando el cuerpo se exporta o se utiliza en operaciones Pieza booleano. La punta puede ser cambiada por el usuario.



[[File:FreeCAD_Tree_view_unattached.png]] Cadena de eslabones púrpura sobre fondo blanco
Se muestra normalmente para bocetos, primitivas geométricas, como caja, cilindro, etc. y geometría Referencia. Indica que el objeto no está unido a nada. No tiene desplazamiento de fijación y obtiene su posición y alineación únicamente de su propiedad Colocación.

Hay un Tutorial Básico de Adjuntos que explica cómo manejar tales objetos.



[[File:FreeCAD_Tree_view_notfullyconstrained.png]] Amarillo X
Esto sólo se utiliza para bocetos e indica que el sketch no está completamente restringido. Dentro de Croquizador el número de grados de libertad restantes se muestra en los mensajes del solucionador.



[[File:FreeCAD_Tree_view_error.png]] Signo de exclamación blanco sobre fondo rojo
Esto indica que el objeto tiene un error que debe ser corregido. Después de volver a calcular todo el documento, se muestra un punto herramienta que describe el error cuando se pasa el ratón por encima del objeto en la vista de árbol. Nota: Todos los demás objetos que dependan de un objeto en ese estado de error no se volverán a calcular correctamente, por lo que pueden seguir mostrando algún estado antiguo.

[[File:FreeCAD_Tree_view_hidden.png]] Eye symbol
This indicates that the object will be hidden in the Tree view if the context menu option is unchecked.