GuiCommand model/it: Difference between revisions
Renatorivo (talk | contribs) (Created page with "''Facoltativo: aggiungere una didascalia in corsivo sotto l'immagine.''") |
Renatorivo (talk | contribs) (Created page with "* Qui elencare le opzioni del comando. Dare un'occhiata a due esempi, Linea di Draft e Pad di PartDesign .") |
||
Line 29: | Line 29: | ||
== Opzioni == |
== Opzioni == |
||
* |
* Qui elencare le opzioni del comando. Dare un'occhiata a due esempi, [[Draft Line/it|Linea di Draft]] e [[PartDesign Pad/it|Pad di PartDesign ]]. |
||
== Proprietà == |
== Proprietà == |
Revision as of 16:40, 24 November 2018
Questa pagina mostra un modello di una pagina GuiCommand consigliata. Sotto il Selectable block nella sezione sottostante si trova lo stesso contenuto facilmente selezionabile per incollarlo in una nuova pagina.
Esempio di comando |
Posizione nel menu |
---|
Menu → Sottomenu → Comando |
Ambiente |
Ambiente |
Avvio veloce |
Nessuno |
Introdotto nella versione |
0.17 |
Vedere anche |
Nessuno |
Descrizione
Inserire qui una breve descrizione di cosa fa il comando.
Aggiungere un'immagine se possibile, e per favore seguire le linee guida di WikiPages#Graphics. Esempio tratto da Draft Linea:
Facoltativo: aggiungere una didascalia in corsivo sotto l'immagine.
Utilizzo
- Premere il pulsante File:Std Close.png Nome del comando.
- Descrivere i passaggi necessari.
- Impostare le opzioni e premere OK.
Opzioni
- Qui elencare le opzioni del comando. Dare un'occhiata a due esempi, Linea di Draft e Pad di PartDesign .
Proprietà
Dati
- DatiPropertyName1: Description of the property
View
- VistaPropertyName2: Description of the property
Esempio
Optionale
Script
Lo strumento ExampleCommandModel può essere utilizzato nelle macro e dalla console Python tramite la seguente funzione:
makeExampleCommandModel(Data, Data)
- Crea un CommandModel utilizzando i dati.
- Restituisce l'oggetto appena creato.
Esempio:
import FreeCAD, Base Base.makeExampleCommandModel(FreeCAD.Data,FreeCAD.Data)
Limitations
- Optional, use bullet list if multiple items
Ulteriori informazioni
Optionale
Selectable block
{{GuiCommand |Name=Base ExampleCommandModel |Icon=<!--filename of icon with extension (e.g. svg, png) if not the same name as command / delete row if unused--> |MenuLocation=Menu → Submenu → Command |Workbenches=[[Workbench Name|Workbench]] |Shortcut=<!--delete this row if not used--> |SeeAlso=<!--add links to similar commands, delete this row if not used--> |Version=0.17 }} ==Description== Insert here a short description of what the command does. </translate> [[File:Draft_Line_example.jpg|none|400px]] <translate> ''Optional: add a caption in italics.'' ==How to use== # Press the {{KEY|[[File:Std Close.png|24px]] '''Command name'''}} button. # Detailed steps as needed. # Set options and press {{KEY|OK}}. ==Options== * List the command options here. ==Properties== ===Data=== * {{PropertyData|PropertyName1}}: Description of the property ===View=== * {{PropertyView|PropertyName2}}: Description of the property ==Example== Optional ==Scripting== The ExampleCommandModel tool can be used in [[macros]] and from the python console by using the following function: </translate> '''makeExampleCommandModel(Data, Data)''' <translate> * Creates a CommandModel using Data. * Returns the newly created object. Example: </translate> import FreeCAD, Base Base.makeExampleCommandModel(FreeCAD.Data,FreeCAD.Data) <translate> ==Limitations== * Optional, use bullet list if multiple items ==Other== Optional