Visualizza: Commutare la visibilità
Mostra/Nascondi |
Posizione nel menu |
---|
Visualizza → Mostra/Nascondi |
Ambiente |
Tutti |
Avvio veloce |
Spazio |
Introdotto nella versione |
- |
Vedere anche |
Mostra la selezione, Nascondi la selezione, Commuta tutti gli oggetti, Mostra tutti gli oggetti, Nascondi tutti gli oggetti |
Descrizione
The Std ToggleVisibility command toggles the visibility of selected objects in 3D views.
Utilizzo
Utilizzo
Questo comando serve a rendere visibili o a nascondere nella vista i componenti del documento.
Esso è accessibile in diversi modi:
- La barra spaziatrice.
- La console Python.
- La struttura del progetto.
- La scheda Vista.
- Il menu Visualizza.
- La vista dell'area di lavoro.
Esempio di elementi visibili e di elementi nascosti:
Nella struttura ad albero gli elementi nascosti sono in grigio, quelli visibili in nero e quelli selezionati sono evidenziati.
Nell'area di lavoro appaiono solo gli elementi che nella struttura sono indicati in nero.
Nella console Python l'elemento ("Revolution006") prima è nascosto (Visibility=False), poi è visibile (Visibility=True).
Nella scheda Vista l'elemento ("Revolution006") è visibile (Visibility true).
Barra spaziatrice
Selezionare un elemento e premere Spazio sia per mostrarlo che per nasconderlo.
Console Python
Inserire il comando ( in questo caso: Gui.getDocument("test_ok_3p").getObject("Revolution006").Visibility=False), poi premere Invio
- Direttamente con Visualizza → Nascondi, oppure
- dal menu Visualizza → Visibilità → Sottomenu e scegliendo nel sottomenu l'azione desiderata.
Il secondo modo permette anche di stabilire se l'elemento può essere selezionato.
Nella struttura del progetto
Selezionare gli elementi con il tasto destro del mouse,
oppure selezionare e poi aprire il menu contestuale da tastiera (tasto in basso a destra, a fianco di Ctrl).
Nella scheda Vista
Si può operare su un solo elemento per volta. Selezionare un elemento, aprire la scheda delle sue Proprietà Vista e modificare il valore.
Nell'area di lavoro
Selezionare gli elementi con il tasto destro del mouse e scegliere la voce che interessa tra quelle del menu che viene aperto.
Note
Quando si applica Nascondi a un elemento già nascosto l'elemento diventa visibile.
Per selezionare più elementi tenere premuto il tasto Crtl durante l'operazione.
Casi particolari
Nei documenti con molti oggetti, dove è difficile individuare un elemento nella struttura, può essere utile nascondere un oggetto nella vista grafica e poi utilizzare Visualizza → Visibilità → Attiva/disattiva tutti gli oggetti per rendere visibile solo l'oggetto desiderato. Questa procedura usata in combinazione con gli altri comandi di selezione globale, Mostra tutti gli oggetti e Visualizza tutti gli oggetti, evita noiose operazioni di selezione.
Esempi
Console Python:
Menu principale:
Struttura del progetto:
Scheda Vista:
Area di lavoro:
Note
- Invisible objects are displayed with a greyed out label and a greyed out icon in the Tree view.
- Objects nested in a Std Part, or a Std Link to a Std Group, or a LinkGroup, and features of a PartDesign Body will only be visible in 3D views if their parent is visible as well. This means that a feature in PartDesign Body that is nested in a Std Part will only be visible in 3D views if the feature itself, the PartDesign Body, and the Std Part are all visible. And if the Std Part is in turn nested in another Std Part, then that last object must also be visible.
- If the visibility of a Std Group (or an object derived from it such as an Arch BuildingPart) is changed, the visibility of its nested objects will change accordingly. But their visibility can be changed independently as well.
- The action of this command cannot be undone with Std Undo.
- The visibility of an object can also be changed through its related DataVisibility property in the Property editor or the Combo view.
Script
Vedere anche: Script di base per FreeCAD
Use the show
and hide
methods of an object to change its visibility.
import FreeCADGui
obj = FreeCADGui.ActiveDocument.myObjectName
if obj.Visibility == True:
obj.hide()
else:
obj.show()
- Standard menu: File, Edit, View, Tools, Macro, Windows, Help
- Structure: Std Part, Std Group, Std LinkMake, Std LinkActions
- 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, Placement, Alignment, Toggle Edit mode, Preferences
- View: Create new view, Orthographic view, Perspective view, Fullscreen, Standard views (Fit all, Fit selection, Isometric, Dimetric, Trimetric, Front, Top, Right, Rear, Bottom, Left, Rotate left, Rotate right), Freeze display (Save views, Load views, Freeze view, Clear views), Draw style (As is, Flat lines, Shaded, Wireframe, Points, Hidden line, No shading), Bounding box, Stereo (red/cyan, quad buffer, interleaved rows, interleaved columns, Stereo off, Issue camera position), Zoom (Zoom In, Zoom Out, Box zoom), Document window (Docked, Undocked, Full screen), Toggle axis cross, Clipping plane, Texture mapping, 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), Toggle navigation/edit mode, Appearance, Random color, Workbench, Toolbars (File, Workbench, Macro, View, Structure, Navigation), Pannelli (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), Status bar

- Installazione: Windows, Linux, Mac; Getting started
- Base: About FreeCAD, Workbenches, Preferences, Document structure, Interface Customization, Properties, Mouse Model; Tutorials
- Ambienti: Menu di base; Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Plot, Points, Raytracing, Reverse Engineering, Robot, Ship, Sketcher, Spreadsheet, Start, Surface workbench, TechDraw, Test Framework, Web
- Scripting: Introduction to Python, FreeCAD scripting tutorial, FreeCAD Scripting Basics, How to install macros, Gui Command, Units Modules: Builtin modules, Workbench creation, Installing more workbenches Meshes: Mesh Scripting, Mesh Module Parts: The Part Module, Topological data scripting, PythonOCC, Mesh to Part Coin scenegraph: The Coin/Inventor scenegraph, Pivy Qt interface: PySide, Using the FreeCAD GUI, Dialog creation Parametric objects: Scripted objects Other: Code snippets, Line drawing function, Embedding FreeCAD, FreeCAD vector math library, Power users hub, Python, Macros, FreeCAD Scripting Basics, Topological data scripting