FreeCADGui API/it: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Category:API/it") |
Renatorivo (talk | contribs) No edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
{{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 |
|||
doc = FreeCADGui.activeDocument() |
|||
⚫ | |||
# get the 3D model document |
|||
doc = App.ActiveDocument |
|||
# get the visual representation model document |
|||
⚫ | |||
gui_doc = Gui.ActiveDocument |
|||
{{APIFunction|activeDocument| | |the active document or None if no one exists}} |
|||
{{APIFunction|activeWorkbench| | |the active workbench object}} |
|||
gui_doc.activateWorkbench("myWorkbench") |
|||
⚫ | |||
}} |
|||
{{APIFunction|addIcon|string, string or list|Adds an icon as file name or in XPM format to the system| }} |
|||
{{APIFunction|addIconPath|string|Add a new path to the system where to find icon files| }} |
|||
{{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| }} |
|||
{{APIFunction| |
{{APIFunction|activeDocument| | |il documento attivo o Nulla se non esiste}} |
||
{{APIFunction| |
{{APIFunction|activeWorkbench| | |l'oggetto workbench attivo}} |
||
⚫ | |||
⚫ | |||
{{APIFunction| |
{{APIFunction|addIcon|string, string or list|Aggiunge al sistema un'icona come nome del file o in formato XPM| }} |
||
{{APIFunction| |
{{APIFunction|addIconPath|string|Aggiunge al sistema un nuovo percorso per trovare i file di icone| }} |
||
{{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| }} |
|||
⚫ | |||
{{APIFunction| |
{{APIFunction|createDialog|string|Apre un file UI, Interfaccia Utente| }} |
||
{{APIFunction| |
{{APIFunction|getDocument|string|Ottiene un documento con il suo nome|il documento}} |
||
⚫ | |||
{{APIFunction|insert|string|Apre una macro, un file Inventor o VRML|il documento}} |
|||
{{APIFunction|listWorkbenches| |Mostra un elenco di tutti gli ambienti di lavoro|una lista}} |
|||
⚫ | |||
⚫ | |||
{{APIFunction|runCommand|string|Esegue un comando di FreeCAD per nome| }} |
|||
{{APIFunction|updateGui| |Aggiorna la finestra principale e tutte le sue finestre| }} |
|||
[[Category:API/it]] |
[[Category:API/it]] |
||
{{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: