FreeCADGui API/it: Difference between revisions
Renatorivo (talk | contribs) (Created page with "=API del modulo FreeCADGui= Questo modulo è la controparte del modulo FreeCAD. Contiene tutto ciò che riguarda l'interfaccia utente e le viste 3D. Esempio: import FreeCADG...") |
(Updating to match new version of source page) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
|||
=API del modulo FreeCADGui= |
|||
{{VeryImportantMessage|(Ottobre 2019) Non modificare queste pagine. Le informazioni sono incomplete e obsolete. Per l'API più recente, consultare la [https://www.freecadweb.org/api documentazione API autogenerata] o generare la documentazione autonomamente. Vedere [[Source documentation/it|Documentazione del codice sorgente]].}} |
|||
Questo modulo è la controparte del modulo FreeCAD. Contiene tutto ciò che riguarda l'interfaccia utente e le viste 3D. Esempio: |
Questo modulo è la controparte del modulo FreeCAD. Contiene tutto ciò che riguarda l'interfaccia utente e le viste 3D. Esempio: |
||
{{Code|code= |
|||
import FreeCAD as App |
|||
⚫ | |||
# get the 3D model document |
|||
doc = App.ActiveDocument |
|||
# get the visual representation model document |
|||
gui_doc = Gui.ActiveDocument |
|||
gui_doc.activateWorkbench("myWorkbench") |
|||
⚫ | |||
}} |
|||
doc = FreeCADGui.activeDocument() |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{APIFunction|addPreferencePage|string,string|Adds a UI form to the preferences dialog. The first argument specifies the file name and the second specifies the group name| }} |
|||
{{APIFunction|addWorkbench|string, object|Adds a workbench under a defined name. The string is the workbench name and the object is a classname defining the workbench| }} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{languages/it | {{en|FreeCADGui_API}} {{es|FreeCADGui_API/es}} }} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{APIFunction|addPreferencePage|string,string|Aggiunge un modulo di interfaccia utente per la finestra delle preferenze. Il primo argomento specifica il nome del file e il secondo indica il nome del gruppo| }} |
|||
{{APIFunction|addWorkbench|string, object|Aggiunge un ambiente di lavoro con un nome definito. La stringa è il nome del banco di lavoro e l'oggetto è il nome della classe che definisce l'ambiente| }} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{Userdocnavi{{#translation:}}}} |
|||
[[Category:API |
[[Category:API{{#translation:}}]] |
||
[[Category:Poweruser Documentation{{#translation:}}]] |
|||
{{clear}} |
Latest revision as of 20:59, 27 February 2020
Questo modulo è la controparte del modulo FreeCAD. Contiene tutto ciò che riguarda l'interfaccia utente e le viste 3D. Esempio:
import FreeCAD as App
import FreeCADGui as Gui
# get the 3D model document
doc = App.ActiveDocument
# get the visual representation model document
gui_doc = Gui.ActiveDocument
gui_doc.activateWorkbench("myWorkbench")
Description: Aggiunge un comando di FreeCAD. String è il nome del comando e object è il nome della classe che definisce il comando
Returns:
Description: Aggiunge al sistema un'icona come nome del file o in formato XPM
Returns:
Description: Aggiunge al sistema un nuovo percorso per trovare i file di icone
Returns:
Description: Aggiunge un modulo di interfaccia utente per la finestra delle preferenze. Il primo argomento specifica il nome del file e il secondo indica il nome del gruppo
Returns:
Description: Aggiunge un ambiente di lavoro con un nome definito. La stringa è il nome del banco di lavoro e l'oggetto è il nome della classe che definisce l'ambiente
Returns:
- 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, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub