GuiCommand model/ro: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 15: Line 15:


==Descriere==
==Descriere==

While the page is under construction, add the <nowiki>{{UnfinishedDocu}}</nowiki> template at the top of the page.


Insert here a short description of what the command does.
Insert here a short description of what the command does.
Line 20: Line 22:
Add an image if possible, and please follow the guidelines in [[WikiPages#Graphics]]. Example taken from Draft Line:
Add an image if possible, and please follow the guidelines in [[WikiPages#Graphics]]. Example taken from Draft Line:
[[File:Draft_Line_example.jpg|none|400px]]
[[File:Draft_Line_example.jpg|none|400px]]
''Optional: add a caption in italics below the image.''
{{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.


== Cum se folosește ==
== Cum se folosește ==


<div class="mw-translate-fuzzy">
# Apăsați butonul {{KEY|[[File:Std Close.png|24px]] '''Command name'''}}.
# Apăsați butonul {{KEY|[[File:Std Close.png|24px]] '''Command name'''}}.
# Detalierea pașilor este necesară.
# Detalierea pașilor este necesară.
# Definiți opțiunile și apăsați {{KEY|OK}}.
# Definiți opțiunile și apăsați {{KEY|OK}}.
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 61: Line 67:


== Scrip-Programare ==
== Scrip-Programare ==

{{Emphasis|See also:}} [[:Category:API]] and [[FreeCAD Scripting Basics]].


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Instrumentul ExampleCommandModel poate fi utilizat în [[macros]] și din consola python utilizând următoarea funcție:
Instrumentul ExampleCommandModel poate fi utilizat în [[macros]] și din consola python utilizând următoarea funcție:
</div>
</div>
{{Code|code=
'''makeExampleCommandModel(Data, Data)'''
Object = makeExampleCommandModel(Data1, Data2)
}}
<div class="mw-translate-fuzzy">
* Creează un CommandModel folosind Data.
* Creează un CommandModel folosind Data.
* Returnează obiectul nou creat.
* Returnează obiectul nou creat.
</div>


Exempluː
Exempluː
{{Code|code=
import FreeCAD, Base
import FreeCAD, Base
Base.makeExampleCommandModel(FreeCAD.Data,FreeCAD.Data)

Model = Base.makeExampleCommandModel(FreeCAD.Data1, FreeCAD.Data2)
}}


==Limitations==
==Limitations==
Line 84: Line 99:


<nowiki>
<nowiki>
{{UnfinishedDocu}}
{{GuiCommand
{{GuiCommand
|Name=Base ExampleCommandModel
|Name=Base ExampleCommandModel
|Icon=<!--filename of icon with extension (e.g. svg, png) if not the same name as command / delete row if unused-->
|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
|MenuLocation=Menu → Submenu → Command
|Workbenches=[[Workbench Name|Workbench]]
|Workbenches=[[Workbench Name|Workbench]]
|Shortcut=<!--delete this row if not used-->
|Shortcut=<!--delete this row if not used-->
|SeeAlso=<!--add links to similar commands, delete this row if not used-->
|SeeAlso=<!--add links to similar commands; delete this row if not used-->
|Version=0.17
|Version=0.17
}}
}}


==Description==
==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.
Insert here a short description of what the command does.
Line 101: Line 119:
[[File:Draft_Line_example.jpg|none|400px]]
[[File:Draft_Line_example.jpg|none|400px]]
<translate>
<translate>

''Optional: add a caption in italics.''
{{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==
==How to use==


# Press the {{KEY|[[File:Std Close.png|24px]] '''Command name'''}} button.
# 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.
# Detailed steps as needed.
# Set options and press {{KEY|OK}}.
# Set options and press {{Button|OK}}.


==Options==
==Options==
Line 128: Line 149:


==Scripting==
==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:
The ExampleCommandModel tool can be used in [[macros]] and from the [[Python]] console by using the following function:
</translate>
</translate>
{{Code|code=
'''makeExampleCommandModel(Data, Data)'''
Object = makeExampleCommandModel(Data1, Data2)
}}
<translate>
<translate>
* Creates a CommandModel using Data.
* Creates an {{incode|Object}} using {{incode|Data1}} and {{incode|Data2}}.
* Returns the newly created object.


Example:
Example:
</translate>
</translate>
{{Code|code=
import FreeCAD, Base
import FreeCAD, Base
Base.makeExampleCommandModel(FreeCAD.Data,FreeCAD.Data)

Model = Base.makeExampleCommandModel(FreeCAD.Data1, FreeCAD.Data2)
}}
<translate>
<translate>


Line 150: Line 176:
Optional
Optional
</nowiki>
</nowiki>

[[Category:Wiki:Example]]

Revision as of 22:58, 15 December 2018

This page shows a model of a recommended GuiCommand page. Under the Selectable block section below you will find the same content easily selectable for pasting in a new page.

Base ExampleCommandModel

poziția meniului
Sample → Command
Ateliere
scurtătură
nici unul
Prezentat în versiune
-
A se vedea, de asemenea,
nici unul

Descriere

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.

Add an image if possible, and please follow the guidelines in WikiPages#Graphics. Example taken from Draft Line:

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.

Cum se folosește

  1. Apăsați butonul File:Std Close.png Command name.
  2. Detalierea pașilor este necesară.
  3. Definiți opțiunile și apăsați OK.

Opțiuni

Create Geometry

{{TitleTasks|[[Image:Icon.png|24]] + Text}} (Code for the main title Tasks)
  • TASK Tasks : Tasks
{{PropertyTasks|Tasks}} (Code of title Tasks)
  • Options

Proprietăți

Base

{{TitleProperty|Base}}  (Code for the main title Properties)
  • DateProperties: Properties
{{PropertyData|Properties}} (Code of title Data)
  • VizualizareProperties: Properties
{{PropertyView|Properties}} (Code of title View)

Data

  • DatePropertyName1: Description of the property

View

  • VizualizarePropertyName2: Description of the property

Exemplu

Opțional

Scrip-Programare

See also: Category:API and FreeCAD Scripting Basics.

Instrumentul ExampleCommandModel poate fi utilizat în macros și din consola python utilizând următoarea funcție:

Object = makeExampleCommandModel(Data1, Data2)
  • Creează un CommandModel folosind Data.
  • Returnează obiectul nou creat.

Exempluː

import FreeCAD, Base

Model = Base.makeExampleCommandModel(FreeCAD.Data1, FreeCAD.Data2)

Limitations

  • Optional, use bullet list if multiple items

Other

Optional

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