FreeCADGui API/it: Difference between revisions

From FreeCAD Documentation
(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
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")
import FreeCADGui
}}
doc = FreeCADGui.activeDocument()


{{APIFunction|activateWorkbench|string|Activates a workbench by name|nothing}}
{{APIFunction|activeDocument| | |the active document or None if no one exists}}
{{APIFunction|activeWorkbench| | |the active workbench object}}
{{APIFunction|addCommand|string, object|Adds a FreeCAD command. String is the name of the command and object is a classname defining the command| }}
{{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|createDialog|string|Opens a UI file| }}
{{APIFunction|getDocument|string|Gets a document by its name|the document}}
{{APIFunction|getWorkbench|string|Gets a workbench by its name|the workbench}}
{{APIFunction|insert|string|Open a macro, Inventor or VRML file|the document}}
{{APIFunction|listWorkbenches| |Shows a list of all workbenches|a list}}
{{APIFunction|open|string|Opens a macro, Inventor or VRML file|the openend document}}
{{APIFunction|removeWorkbench|string|Removes a workbench by name| }}
{{APIFunction|runCommand|string|Runs a FreeCAD command by name| }}
{{APIFunction|updateGui| |Updates the main window and all its windows| }}


{{APIFunction|activateWorkbench|string|Attiva un ambiente di lavoro per nome|nulla}}
{{languages/it | {{en|FreeCADGui_API}} {{es|FreeCADGui_API/es}} }}
{{APIFunction|activeDocument| | |il documento attivo o Nulla se non esiste}}
{{APIFunction|activeWorkbench| | |l'oggetto workbench attivo}}
{{APIFunction|addCommand|string, object|Aggiunge un comando di FreeCAD. String è il nome del comando e object è il nome della classe che definisce il comando| }}
{{APIFunction|addIcon|string, string or list|Aggiunge al sistema un'icona come nome del file o in formato XPM| }}
{{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|createDialog|string|Apre un file UI, Interfaccia Utente| }}
{{APIFunction|getDocument|string|Ottiene un documento con il suo nome|il documento}}
{{APIFunction|getWorkbench|string|Ottiene un ambiente di lavoro con il suo nome |l'ambiente}}
{{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|open|string|Apre un file macro, Inventor o VRML|il documento aperto}}
{{APIFunction|removeWorkbench|string|Rimuove un ambiente di lavoro per nome| }}
{{APIFunction|runCommand|string|Esegue un comando di FreeCAD per nome| }}
{{APIFunction|updateGui| |Aggiorna la finestra principale e tutte le sue finestre| }}


{{Userdocnavi{{#translation:}}}}
[[Category:API/it]]
[[Category:API{{#translation:}}]]
[[Category:Poweruser Documentation{{#translation:}}]]
{{clear}}

Latest revision as of 20:59, 27 February 2020

Other languages:
(Ottobre 2019) Non modificare queste pagine. Le informazioni sono incomplete e obsolete. Per l'API più recente, consultare la documentazione API autogenerata o generare la documentazione autonomamente. Vedere Documentazione del codice sorgente.

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")


activateWorkbench(string)

Description: Attiva un ambiente di lavoro per nome

Returns: nulla

activeDocument( )

Description:

Returns: il documento attivo o Nulla se non esiste

activeWorkbench( )

Description:

Returns: l'oggetto workbench attivo

addCommand(string, object)

Description: Aggiunge un comando di FreeCAD. String è il nome del comando e object è il nome della classe che definisce il comando

Returns:

addIcon(string, string or list)

Description: Aggiunge al sistema un'icona come nome del file o in formato XPM

Returns:

addIconPath(string)

Description: Aggiunge al sistema un nuovo percorso per trovare i file di icone

Returns:

addPreferencePage(string,string)

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:

addWorkbench(string, object)

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:

createDialog(string)

Description: Apre un file UI, Interfaccia Utente

Returns:

getDocument(string)

Description: Ottiene un documento con il suo nome

Returns: il documento

getWorkbench(string)

Description: Ottiene un ambiente di lavoro con il suo nome

Returns: l'ambiente

insert(string)

Description: Apre una macro, un file Inventor o VRML

Returns: il documento

listWorkbenches( )

Description: Mostra un elenco di tutti gli ambienti di lavoro

Returns: una lista

open(string)

Description: Apre un file macro, Inventor o VRML

Returns: il documento aperto

removeWorkbench(string)

Description: Rimuove un ambiente di lavoro per nome

Returns:

runCommand(string)

Description: Esegue un comando di FreeCAD per nome

Returns:

updateGui( )

Description: Aggiorna la finestra principale e tutte le sue finestre

Returns: