FreeCADGui API/it: Difference between revisions
(Updating to match new version of source page) |
Renatorivo (talk | contribs) No edit summary |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
This module is the counterpart of the FreeCAD module. It contains everything related to the User interface and the 3D views. Example: |
|||
{{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]].}} |
|||
⚫ | |||
doc = FreeCADGui.activeDocument() |
|||
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 |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{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| }} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
# get the visual representation model document |
|||
⚫ | |||
gui_doc = Gui.ActiveDocument |
|||
gui_doc.activateWorkbench("myWorkbench") |
|||
}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{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| }} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{clear}} |
{{clear}} |
||
⚫ |
Revision as of 20:49, 8 October 2019
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: