Modèle GuiCommand

From FreeCAD Documentation
Revision as of 19:03, 23 August 2014 by Renatorivo (talk | contribs) (Created page with "Description <br /> image:FreeCAD05.png image <br /><br /> ==Utilisation==")

Modèle_ExempleDeLaCommande

Emplacement du menu
[[ ]]
Ateliers
Wb1,Wb2
Raccourci par défaut
X
Introduit dans la version
-
Voir aussi
[[ ]]

Détail du code de la fenêtre

{{GuiCommand/fr|Name=FreeCAD05|Name/fr=Modèle_ExempleDeLaCommande|Workbenches=Wb1,Wb2|MenuLocation=[[ ]]|Shortcut=X|SeeAlso=[[ ]]}}

Tous les codes ne sont pas obligatoires, (exemple d'un menu existant)

{{ = Début du code de la fenêtre GuiCommand.
GuiCommand/fr = Sans "/fr" le menu est en anglais, la balise "/fr" converti le menu en français.
|Name= FreeCAD05 = Le titre original de la page NE PEUT PAS ÊTRE MODIFIE, donne le titre à la fenêtre, s'il y a une image (.png) qui porte le même nom, elle sera affichée (ne pas mettre d'extension).
|Name/fr= Modèle_ExempleDeLaCommande = Titre traduit en français, se substitue au titre ci dessus.
|Workbenches= [[Sketcher Workbench/fr|Sketcher]], [[PartDesign Workbench/fr|PartDesign]] = Cette commande se trouve ... on peut créer des liens.
|MenuLocation= Sketch → Contraintes d'esquisse → contrainte coïncidence = Position de la commande.
|Shortcut= C = Raccourci du clavier
|SeeAlso= [[Constraint Lock/fr|fConstraint Lock]], [[Constraint PointOnObject/fr|Constraint Point on to Object]] = Allez voir aussi ...
}} = Fin du code de la fenêtre GuiCommand

Ce modèle est le principal ancrage sur la documentation GuiCommands :


Description

Description
image

Utilisation

  1. How to use
  2. 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)
  • DonnéesProperties: Properties
{{PropertyData|Properties}} (Code of title Data)
  • VueProperties: 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