Modèle GuiCommand
Modèle_ExempleDeLaCommande |
Emplacement du menu |
---|
Menu → Commande |
Ateliers |
Wb1,Wb2 |
Raccourci par défaut |
Aucun |
Introduit dans la version |
- |
Voir aussi |
Atelier Commande |
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
Insert here a short description of what the command does.
- Utilisation
Options
{{TitreTache|[[Image:Icon.png|24]] + Texte}} : (code du titre principal Tâches)
- TÂCHES Tâches : Onglet Tâches
{{OngletTache|Texte}} : code pour l'onglet Tâche
- Options
Propriétés
{{TitreProprietes|Base}} : code pour le titre principal Propriétés
- VUEPropriétés: Propriétés Vue
{{ProprieteVue|Texte}} : code pour le titre Propriété Vue
- DONNÉESPropriétés: Propriétés Données
{{ProprieteDonnees|Texte}} : code pour le titre Propriété Donnée
Exemple
!
Script
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.
Exemple:
import FreeCAD, Base Base.makeExampleCommandModel(FreeCAD.Data,FreeCAD.Data)