GuiCommand model/it: Difference between revisions
(Updating to match new version of source page) |
Renatorivo (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
⚫ | |||
<div class="mw-translate-fuzzy"> |
|||
⚫ | |||
</div> |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
Revision as of 17:27, 6 February 2019
Questa pagina mostra un modello di una pagina per documentare un Comando GUI. 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
While the page is under construction, add the {{UnfinishedDocu}} template at the top of the page.
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.
Closing and opening translate tags should surround images, and other fixed elements, if they don't need to be translated. The caption should always be translated.
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
- DatiNome della proprietà 1: descrizione della proprietà
Vista
- VistaNome della proprietà 2: descrizione della proprietà
Esempio
Optionale
Script
See also: Category:API and FreeCAD Scripting Basics.
Lo strumento ExampleCommandModel può essere utilizzato nelle macro e dalla console Python tramite la seguente funzione:
Object = makeExampleCommandModel(Data1, Data2)
- Crea un CommandModel utilizzando i dati.
- Restituisce l'oggetto appena creato.
Esempio:
import FreeCAD, Base
Model = Base.makeExampleCommandModel(FreeCAD.Data1, FreeCAD.Data2)
Limitazioni
- Facoltativo, utilizzare l'elenco puntato se ci sono più elementi
Ulteriori informazioni
Optionale
Selectable block
{{UnfinishedDocu}} {{GuiCommand |Name=Base ExampleCommandModel |Icon=<!--filename of icon with extension (e.g. svg, png) if not the same name as command; delete this row if not used--> |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== While the page is under construction, add the {{UnfinishedDocu}} template at the top of the page. Insert here a short description of what the command does. </translate> [[File:Draft_Line_example.jpg|none|400px]] <translate> {{Caption|Optional: add a caption below the image to explain what the tool is doing.}} Closing and opening translate tags should surround images, and other fixed elements, if they don't need to be translated. The caption should always be translated. ==How to use== # Press the {{Button|[[File:Std Close.png|16px]] [[GuiCommand model|Command name]]}} button. The button must be a link to this command. # Detailed steps as needed. # Set options and press {{Button|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== {{Emphasis|See also:}} [[:Category:API]] and [[FreeCAD Scripting Basics]]. The ExampleCommandModel tool can be used in [[macros]] and from the [[Python]] console by using the following function: </translate> {{Code|code= Object = makeExampleCommandModel(Data1, Data2) }} <translate> * Creates an {{incode|Object}} using {{incode|Data1}} and {{incode|Data2}}. Example: </translate> {{Code|code= import FreeCAD, Base Model = Base.makeExampleCommandModel(FreeCAD.Data1, FreeCAD.Data2) }} <translate> ==Limitations== * Optional, use bullet list if multiple items ==Other== Optional