GuiCommand model: Difference between revisions
(Added fields to template:GuiCommand, description, usage) |
(Marked this version for translation) |
||
Line 5: | Line 5: | ||
==Description== <!--T:2--> |
==Description== <!--T:2--> |
||
<!--T:13--> |
|||
Insert here a short description of what the command does. |
Insert here a short description of what the command does. |
||
<!--T:14--> |
|||
[[image:FreeCAD05.png]] image |
[[image:FreeCAD05.png]] image |
||
Revision as of 04:02, 22 February 2018
Base ExampleCommandModel |
Menu location |
---|
Sample → Command |
Workbenches |
Wb1,Wb2 |
Default shortcut |
None |
Introduced in version |
- |
See also |
Wb Command |
Description
Insert here a short description of what the command does.
How to use
- Press the File:Std Close.png Command name button.
- Detailed steps as needed.
- Set options and press OK.
Options
Create Geometry
{{TitleTasks|[[Image:Icon.png|24]] + Text}} (Code for the main title Tasks)
- TASK Tasks : Tasks
{{PropertyTasks|Tasks}} (Code of title Tasks)
- Options
Properties
Base
{{TitleProperty|Base}} (Code for the main title Properties)
- DataProperties: Properties
{{PropertyData|Properties}} (Code of title Data)
- ViewProperties: Properties
{{PropertyView|Properties}} (Code of title View)
Example
Optional
Scripting
The ExampleCommandModel tool can by used in macros and from the python console by using the following function:
makeExampleCommandModel (Data, Data)
- Creates a CommandModel using Data.
- Returns the newly created object.
Example:
import FreeCAD, Base Base.makeExampleCommandModel(FreeCAD.Data,FreeCAD.Data)
Other
Optional