GuiCommand model: Difference between revisions

From FreeCAD Documentation
(Stack GuiCommand template on multiple lines to make it easier to read and edit.)
No edit summary
Line 1: Line 1:
<languages/>
<translate>
<translate>
<!--T:1-->
<!--T:1-->
Line 64: Line 65:
</translate>
</translate>
{{clear}}
{{clear}}
<languages/>

Revision as of 13:11, 4 August 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.

image

How to use

  1. Press the File:Std Close.png Command name button.
  2. Detailed steps as needed.
  3. 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