GuiCommand model/it: Difference between revisions

From FreeCAD Documentation
(Created page with "Aggiungere un'immagine se possibile, e per favore seguire le linee guida di WikiPages#Graphics. Esempio tratto da Draft Linea:")
(Created page with "''Facoltativo: aggiungere una didascalia in corsivo sotto l'immagine.''")
Line 19: Line 19:
Aggiungere un'immagine se possibile, e per favore seguire le linee guida di [[WikiPages#Graphics]]. Esempio tratto da Draft Linea:
Aggiungere un'immagine se possibile, e per favore seguire le linee guida di [[WikiPages#Graphics]]. Esempio tratto da Draft Linea:
[[File:Draft_Line_example.jpg|none|400px]]
[[File:Draft_Line_example.jpg|none|400px]]
''Optional: add a caption in italics below the image.''
''Facoltativo: aggiungere una didascalia in corsivo sotto l'immagine.''


==Utilizzo==
==Utilizzo==

Revision as of 16:39, 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

  1. Premere il pulsante File:Std Close.png Nome del comando.
  2. Descrivere i passaggi necessari.
  3. Impostare le opzioni e premere OK.

Opzioni

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