GuiCommand model: Difference between revisions
Renatorivo (talk | contribs) No edit summary |
mNo edit summary |
||
Line 46: | Line 46: | ||
<!--T:9--> |
<!--T:9--> |
||
The ExampleCommandModel tool can |
The ExampleCommandModel tool can be used in [[macros]] and from the python console by using the following function: |
||
</translate> |
</translate> |
||
'''makeExampleCommandModel |
'''makeExampleCommandModel(Data, Data)''' |
||
<translate> |
<translate> |
||
<!--T:10--> |
<!--T:10--> |
||
Line 60: | Line 60: | ||
Base.makeExampleCommandModel(FreeCAD.Data,FreeCAD.Data) |
Base.makeExampleCommandModel(FreeCAD.Data,FreeCAD.Data) |
||
<translate> |
<translate> |
||
==Other== <!--T:12--> |
==Other== <!--T:12--> |
||
Optional |
Optional |
Revision as of 04:43, 10 November 2018
Base ExampleCommandModel |
Menu location |
---|
Sample → Command |
Workbenches |
Default shortcut |
None |
Introduced in version |
- |
See also |
None |
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 be 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