Tree view/es: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
(One intermediate revision by the same user not shown)
Line 5: Line 5:
== Introducción ==
== Introducción ==


<div class="mw-translate-fuzzy">
La [[Tree_view/es|vista de árbol]] aparece en la pestaña {{MenuCommand|Modelo}} de la [[Combo_view/es|vista combo]], uno de los paneles más importantes de la [[Interface/es|interfaz]]; muestra todos los objetos definidos por el usuario que forman parte de un documento de FreeCAD. La vista de árbol es una representación de la [[document structure/es|estructura del documento]], e indica qué información se guarda en el disco.
La [[Tree_view/es|vista de árbol]] aparece en la pestaña {{MenuCommand|Modelo}} de la [[Combo_view/es|vista combo]], uno de los paneles más importantes de la [[Interface/es|interfaz]]; muestra todos los objetos definidos por el usuario que forman parte de un documento de FreeCAD. La vista de árbol es una representación de la [[document structure/es|estructura del documento]], e indica qué información se guarda en el disco.
</div>


Estos objetos no tienen que ser necesariamente formas geométricas visibles en la [[3D_view/es|Vista 3D]], sino que también pueden ser objetos de datos de apoyo creados con cualquiera de los [[Workbenches/es|Ambientes de trabajo]].
Estos objetos no tienen que ser necesariamente formas geométricas visibles en la [[3D_view/es|Vista 3D]], sino que también pueden ser objetos de datos de apoyo creados con cualquiera de los [[Workbenches/es|Ambientes de trabajo]].
Line 16: Line 18:
== Trabajando con la vista de árbol ==
== Trabajando con la vista de árbol ==


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 [[Std_Group|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.
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 [[Std_Group|groups]], moving objects inside groups, moving groups inside other groups, relabeling objects, copying objects, deleting objects, and using options from its [[#Context_menu|context menu]].


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.
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.
Line 34: Line 36:
=== Edit object label ===
=== Edit object label ===


Select an object in the first column and press {{KEY|F2}} (on Windows and Linux), or {{KEY|Enter}} (on macOS), to edit its {{PropertyData|Label}} property. This property can also be edited via the context menu action described below or in the [[Property_editor|Property editor]].
Select an object in the first column and press {{KEY|F2}} (on Windows and Linux), or {{KEY|Enter}} (on macOS), to edit its {{PropertyData|Label}} property. This property can also be edited via the context menu option {{MenuCommand|Rename}} or in the [[Property_editor|Property editor]].


=== Edit object description ===
=== Edit object description ===
Line 40: Line 42:
An object can optionally have a description. This information is stored in its {{PropertyData|Label2}} property. If the description column is displayed you can edit this property by selecting an object in that column and pressing {{KEY|F2}} (on Windows and Linux), or {{KEY|Enter}} (on macOS). The property can also be changed in the [[Property_editor|Property editor]].
An object can optionally have a description. This information is stored in its {{PropertyData|Label2}} property. If the description column is displayed you can edit this property by selecting an object in that column and pressing {{KEY|F2}} (on Windows and Linux), or {{KEY|Enter}} (on macOS). The property can also be changed in the [[Property_editor|Property editor]].


=== Context menu ===
<span id="Actions"></span>
== Acciones ==


The options in the context menu of the tree view depend on the selected object(s) and the currently active workbench. To display this menu right-click the background of the list, right-click an object in the list, or select multiple objects in the list and then right-click one of them.
Since the tree view lists objects that may be visible in the [[3D_view|3D view]], many of the actions are the same as those that can be executed from the [[3D_view|3D view]]. The actions can be started from a {{MenuCommand|Context menu}} that can be accessed by right clicking either the background or an object.


=== Keyboard shortcuts ===
===Application start===


The following keyboard shortcuts are available when the focus is on the tree view:
When the application starts, the default [[Start_Workbench|Start Workbench]] is active, and no document has been created, the context menu of the [[Tree_view|tree view]] has only one entry:
* {{MenuCommand|Expression actions}}. When the cursor is moved onto it, a sub-menu opens containing four commands:
** [[Std_Expressions|Copy selected]]
** [[Std_Expressions|Copy active document]]
** [[Std_Expressions|Copy all documents]]
** [[Std_Paste|Paste]]
These allow working with various documents, but are disabled if no document is present.

===New document===

Once a new document has been created right clicking the background opens the context menu now containing two entries:
* {{MenuCommand|Expression actions}} as above but with these two entries activated:
** [[Std_Expressions|Copy active document]]
** [[Std_Expressions|Copy all documents]]
* {{MenuCommand|Link actions}} - a sub-menu with two entries:
** {{MenuCommand|Make Link group}} - another sub-menu containing three commands:
*** [[Std_LinkMakeGroup|Simple group]]
*** [[Std_LinkMakeGroup|Group with links]]
***[[Std_LinkMakeGroup|Group with transform links]]
** [[Std_LinkMake|Make Link]]

<span id="Selecting_the_document"></span>
=== Seleccionar el documento ===

If you select the document and right click, in addition to {{MenuCommand|Expression actions}} and {{MenuCommand|Link actions}}, the context menu contains the following commands:
* {{MenuCommand|Show items hidden in tree view}}: if active, the tree view will show hidden items.
* {{MenuCommand|Search}}: shows an input field to search objects inside the selected document.
* {{MenuCommand|Close document}}: closes the selected document.
* {{MenuCommand|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.
* {{MenuCommand|Skip recomputes}}: if active, the document's objects will not [[Std_Refresh|recompute]] automatically.
* {{MenuCommand|Allow partial recomputes}}: if active, the document will allow [[Std_Refresh|recompute]] of only some objects. Only available if {{MenuCommand|Skip recomputes}} is activated.
* {{MenuCommand|Mark to recompute}}: marks all objects of the document as touched, and ready for [[Std_Refresh|recompute]].
* {{MenuCommand|[[Std_Group|Create group]]}}: creates a [[Std_Group|group]] in the selected document.

<span id="Selecting_objects"></span>
=== 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|Start Workbench]]) the following commands are then available:
* {{MenuCommand|[[Std_SetAppearance|Appearance]]}}: launches a dialog to change the visual properties of the whole object.
* {{MenuCommand|[[Std_RandomColor|Random color]]}}: assigns a random color to the object.
* {{MenuCommand|[[Std_Cut|Cut]]}}: disabled.
* {{MenuCommand|[[Std_Copy|Copy]]}}: copies an object into memory.
* {{MenuCommand|[[Std_Paste|Paste]]}}: pastes the copied object into the document; the copy is added to the end of the tree view.
* {{MenuCommand|[[Std_Delete|Delete]]}}: removes the object from the document.
* {{MenuCommand|[[#Eye_symbol|Toggle visibility in tree view]]}}: toggles the Tree view visibility of objects.
* {{MenuCommand|Mark to recompute}}: marks the selected object as touched, and ready for [[Std_Refresh|recompute]].
* {{MenuCommand|Recompute object}}: recomputes the selected object.
* {{MenuCommand|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|Part Box]] is right clicked while the [[Part_Workbench|Part Workbench]] is active the following additional commands are available:
* {{MenuCommand|[[Std_Edit|Edit]]}}: activates the edit mode of the object.
* {{MenuCommand|[[Std_TransformManip|Transform]]}}: launches the transform widget to move or rotate the object.
* {{MenuCommand|[[Part_EditAttachment|Attachment editor]]}}: launches a dialog to attach the object to one or more other objects.
* {{MenuCommand|[[Part_FaceColors|Set colors]]}}: sets the color of selected faces of the object.
* {{MenuCommand|[[Std_ToggleVisibility|Toggle visibility]]}}: makes the object visible or invisible in the [[3D_view|3D view]].
* {{MenuCommand|[[Std_ShowSelection|Show selection]]}}: makes the selected object visible.
* {{MenuCommand|[[Std_HideSelection|Hide selection]]}}: makes the selected object invisible.
* {{MenuCommand|[[Std_ToggleSelectability|Toggle selectability]]}}: toggles the selectability of the object in the [[3D_view|3D view]].
* {{MenuCommand|[[Std_TreeSelectAllInstances|Select all instances]]}}: selects all instances of this object in the tree view.
* {{MenuCommand|[[Std_SendToPythonConsole|Send to Python Console]]}}: creates a variable in the [[Python_console|Python console]] referencing the object

=== Keyboard actions ===

The following keyboard actions are available when the focus is on the Tree view:
* {{KEY|Ctrl}}+{{KEY|F}}: opens a search box at the bottom of the tree, allowing to search and reach objects using their names or labels.
* {{KEY|Ctrl}}+{{KEY|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 {{KEY|Alt}}+{{KEY|Arrow}} combinations: {{Version|0.20}}
* Expand and collapse actions using {{KEY|Alt}}+{{KEY|Arrow}} combinations: {{Version|0.20}}
Line 129: Line 67:


Esto indica que el objeto tiene que ser [[Std_Refresh/es|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.
Esto indica que el objeto tiene que ser [[Std_Refresh/es|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.

<span id="File:FreeCAD_Tree_view_error.png_White_exclamation_mark_on_red_background"></span>
=== [[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.


<span id="File:FreeCAD_Tree_view_tip.png_White_arrow_on_green_background"></span>
<span id="File:FreeCAD_Tree_view_tip.png_White_arrow_on_green_background"></span>
Line 135: Line 78:
Indica la llamada [[PartDesign_Body/es#punta|Punta]] de un cuerpo. Suele ser la última característica de un [[PartDesign_Body/es|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 [[Part_Boolean/es|Pieza booleano]]. La punta puede ser cambiada por el usuario.
Indica la llamada [[PartDesign_Body/es#punta|Punta]] de un cuerpo. Suele ser la última característica de un [[PartDesign_Body/es|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 [[Part_Boolean/es|Pieza booleano]]. La punta puede ser cambiada por el usuario.


<span id="File:FreeCAD_Tree_view_unattached.png_Purple_chain_link_on_white_background"></span>
<span id="File:FreeCAD_Tree_view_unattached.png_Purple_chain_link"></span>
<div class="mw-translate-fuzzy">
=== [[File:FreeCAD_Tree_view_unattached.png]] Cadena de eslabones púrpura sobre fondo blanco ===
=== [[File:FreeCAD_Tree_view_unattached.png]] Cadena de eslabones púrpura sobre fondo blanco ===
</div>


Se muestra normalmente para [[Sketch/es|bocetos]], primitivas geométricas, como caja, cilindro, etc. y geometría [[Datum/es|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 [[Placement/es|Colocación]].
Se muestra normalmente para [[Sketch/es|bocetos]], primitivas geométricas, como caja, cilindro, etc. y geometría [[Datum/es|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 [[Placement/es|Colocación]].
Line 145: Line 90:
=== [[File:FreeCAD_Tree_view_notfullyconstrained.png]] Amarillo X ===
=== [[File:FreeCAD_Tree_view_notfullyconstrained.png]] Amarillo X ===


<div class="mw-translate-fuzzy">
Esto sólo se utiliza para [[Sketch/es|bocetos]] e indica que el sketch no está completamente restringido. Dentro de [[Sketcher_Workbench/es|Croquizador]] el número de grados de libertad restantes se muestra en los mensajes del solucionador.
Esto sólo se utiliza para [[Sketch/es|bocetos]] e indica que el sketch no está completamente restringido. Dentro de [[Sketcher_Workbench/es|Croquizador]] el número de grados de libertad restantes se muestra en los mensajes del solucionador.
</div>

<span id="File:FreeCAD_Tree_view_error.png_White_exclamation_mark_on_red_background"></span>
=== [[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 ===
=== [[File:FreeCAD_Tree_view_hidden.png]] Eye symbol ===


This indicates that the object will be hidden in the Tree view if the {{MenuCommand|Show items hidden in tree view}} context menu option is unchecked.
This indicates that the object will be hidden in the Tree view if the {{MenuCommand|Show items hidden in tree view}} context menu option is unchecked.

=== [[File:FreeCAD_Tree_view_frozen.png]] Cyan ice crystal ===

{{Version|0.22}}

This indicates a frozen object that is not recomputed when its parents change.

=== [[File:FreeCAD_Tree_view_suppressed.png]] Red backslash ===

{{Version|0.22}}

This indicates a suppressed [[PartDesign_Workbench|PartDesign]] feature.





Revision as of 14:11, 14 April 2024

Introducción

La vista de árbol aparece en la pestaña Modelo 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 de á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.

La vista de árbol que muestra varios elementos del documento.

Trabajando con la vista de árbol

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 using options from its context menu.

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.
Fully expanding the tree reveals the original elements that were used to create the partial solids.

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:
Tree settings → Show description column introduced in version 0.21

Edit object label

Select an object in the first column and press F2 (on Windows and Linux), or Enter (on macOS), to edit its DatosLabel property. This property can also be edited via the context menu option Rename or in the Property editor.

Edit object description

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

Context menu

The options in the context menu of the tree view depend on the selected object(s) and the currently active workbench. To display this menu right-click the background of the list, right-click an object in the list, or select multiple objects in the list and then right-click one of them.

Keyboard shortcuts

The following keyboard shortcuts 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).

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. introducido en la versión 0.19

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.

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.

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.

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.

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.

Eye symbol

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.

Cyan ice crystal

introduced in version 0.22

This indicates a frozen object that is not recomputed when its parents change.

Red backslash

introduced in version 0.22

This indicates a suppressed PartDesign feature.