GuiCommand model: Difference between revisions
Renatorivo (talk | contribs) (<translate>) |
Renatorivo (talk | contribs) (Marked this version for translation) |
||
Line 1: | Line 1: | ||
<translate> |
<translate> |
||
<!--T:1--> |
|||
{{GuiCommand|Name=Base ExampleCommandModel|MenuLocation=Sample -> Command|Workbenches=Wb1,Wb2}} |
{{GuiCommand|Name=Base ExampleCommandModel|MenuLocation=Sample -> Command|Workbenches=Wb1,Wb2}} |
||
==Description== |
==Description== <!--T:2--> |
||
Description |
Description |
||
Line 8: | Line 9: | ||
[[image:FreeCAD05.png]] image |
[[image:FreeCAD05.png]] image |
||
<br><br> |
<br><br> |
||
==How to use== |
==How to use== <!--T:3--> |
||
<!--T:4--> |
|||
# How to use |
# How to use |
||
# How to use |
# How to use |
||
==Options== |
==Options== <!--T:5--> |
||
{{TitleTasks|[[Image:Part_Box.png|24px]] Create Geometry }} |
{{TitleTasks|[[Image:Part_Box.png|24px]] Create Geometry }} |
||
<nowiki>{{TitleTasks|[[Image:Icon.png|24]] + Text}}</nowiki> (Code for the main title Tasks) |
<nowiki>{{TitleTasks|[[Image:Icon.png|24]] + Text}}</nowiki> (Code for the main title Tasks) |
||
Line 20: | Line 22: | ||
* Options |
* Options |
||
==Properties== |
==Properties== <!--T:6--> |
||
{{TitleProperty|Base}} |
{{TitleProperty|Base}} |
||
<nowiki>{{TitleProperty|Base}}</nowiki> (Code for the main title Properties) |
<nowiki>{{TitleProperty|Base}}</nowiki> (Code for the main title Properties) |
||
Line 28: | Line 30: | ||
<nowiki>{{PropertyView|Properties}}</nowiki> (Code of title View) |
<nowiki>{{PropertyView|Properties}}</nowiki> (Code of title View) |
||
==Example== |
==Example== <!--T:7--> |
||
Optional |
Optional |
||
==Scripting== |
==Scripting== <!--T:8--> |
||
<!--T:9--> |
|||
The ExampleCommandModel tool can by used in [[macros]] and from the python console by using the following function: |
The ExampleCommandModel tool can by used in [[macros]] and from the python console by using the following function: |
||
</translate> |
</translate> |
||
'''makeExampleCommandModel (Data, Data)''' |
'''makeExampleCommandModel (Data, Data)''' |
||
<translate> |
<translate> |
||
<!--T:10--> |
|||
* Creates a CommandModel using Data. |
* Creates a CommandModel using Data. |
||
* Returns the newly created object. |
* Returns the newly created object. |
||
<!--T:11--> |
|||
Example: |
Example: |
||
</translate> |
</translate> |
||
Line 45: | Line 50: | ||
Base.makeExampleCommandModel(FreeCAD.Data,FreeCAD.Data) |
Base.makeExampleCommandModel(FreeCAD.Data,FreeCAD.Data) |
||
<translate> |
<translate> |
||
==Other== |
==Other== <!--T:12--> |
||
Optional |
Optional |
||
Revision as of 18:39, 23 August 2014
Base ExampleCommandModel |
Menu location |
---|
Sample -> Command |
Workbenches |
Wb1,Wb2 |
Default shortcut |
None |
Introduced in version |
- |
See also |
None |
Description
How to use
- How to use
- How to use
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