Anpassung der Werkzeugleisten

From FreeCAD Documentation
Revision as of 14:41, 21 February 2017 by Holdi (talk | contribs) (Created page with "* Suche ein passendes Icon für das vorgesehene Makro-Werkzeug in der Icon-Sammlung von FreeCAD.")
Tutorium
Thema
{{{Topic}}}
Niveau
Beginner
Zeit zum Abschluss
5 minutes
Autoren
Mario52
FreeCAD-Version
All
Beispieldateien
None
Siehe auch
None

Zusammenfassung

Dieses Tutorial behandelt die Anpassung der Werkzeugleisten durch den Benutzer. Ein Werkzeug (inklusive ein Makro-Werkzeug) kann außer aus seiner angestammten, einem Arbeitsbereich zugeordneten Leiste auch aus anderen Werkzeugleisten heraus aufgerufen werden. Zuerst werden beispielsweise dem Makro "Camera" die zum Aufruf als Werkzeug benötigten Worte und ein Icon zugefügt. Anschließend wird eine zusätzliche Werkzeugleiste im Arbeitsbereich Körper (Part) erstellt und in sie das vervollständigte Makro-Werkzeug "Camera" eingetragen.

Vorgehen

1. Aufruf des Anpassungs-Menüs "Benutzerdefiniert"

  • Klicke Haupt-Menü → Werkzeuge → Benutzerdefiniert...,
Customize
Customize

oder mache einen Rechts-Klick (rechte Maustaste) in irgend eine Werkzeugleiste und klicke dort in "Benurtzerdefiniert".

Right mouse click
Right mouse click
  • Das Menü (Fenster) "Benutzerdefiniert" öffnet sich.
The Customize window appears
The Customize window appears

2. Erzeugen eines Makro-Werkzeuges für eine bestimmte, in den PC geladene Programm-Ergänzung (Makro-Text)

  • Klicke auf den Reiter "Makros".
  • To add an icon for the provided macro click the Pixmap button (labelled ... ).
Select a toolbar
Select a toolbar
  • Suche ein passendes Icon für das vorgesehene Makro-Werkzeug in der Icon-Sammlung von FreeCAD.

      [oder füge eines aus einem benutzerdefinierten "Icon-Ordner"ein.]                  (Ausklappen für Einzelheiten)

Add icon
Add icon

      [Der Ordner mit benutzerdefinierten Icons wird durch Klicken auf "Icon-Ordner" geöffnet. Eines anklicken und mit Klick auf "OK" annehmen.]                  ("Ausklappen" für ein Beispiel)

Get a file
Get a file
  • Select your icon and click OK.
Select your icon
Select your icon
  • The icon you selected is now displayed next to the Pixmap button labelled ....
Your icon is displayed
Your icon is displayed
  • Select the provided macro in line Macro:' and specify a Menu text: (which will appear as the text label in the menu); also fill in the Tool Tip': (which is the text that will appear when a mouse is over the button on the toolbar); further lines are optional.
  • Click the button Add.
Click the button
Click the button
  • The button of the macro-tool is now created.
Your button is created
Your button is created

3. Create a toolbar outside the workbench Macro which contains the created Macro-tool

  • Select the Toolbars tab and choose the workbench (for which the toolbar is provided) in the drop down on the right (Part in this example).

     [Since version 0.15 there is a   Global  toolbar. If this is selected, the provided toolbar will be in each workbench.]

Toolbars tab
Toolbars tab
  • In the dropdown on the left select Macros.
Macros
Macros
  • The macro-tool with its icon appears in the list.
Your icon is listed
Your icon is listed
  • Click the button New...
Click on "New"
Click on "New"
  • In the window "New Toolbar" enter the name of the provided extra toolbar for the Part Workbench and click OK
Enter the name for your toolbar
Enter the name for your toolbar
  • The toolbar is now created.
  • To add the creadet macro-tool to this toolbar, select it in the left window and then click the Button with the arrow pointing right.
Select your macro
Select your macro
  • You have created now a toolbar called "Camera" (with the Macro-tool Camera in it)
  • Click the Close button.
Close
Close
  • Your new toolbar is now contained in the toolbars' right-click menu. Its Icons (in our example only the camera) are visible, if the toolbar is activated (blue checkmark).
New Toolbar
New Toolbar