Draft SetStyle: Difference between revisions

From FreeCAD Documentation
mNo edit summary
(Options)
Line 50: Line 50:
* From the dropdown list at the top of the task panel an exiting style preset can be selected.
* From the dropdown list at the top of the task panel an exiting style preset can be selected.
* Press the {{Button|[[Image:Document-save.svg|16px]]}} button to save the style settings as a preset.
* Press the {{Button|[[Image:Document-save.svg|16px]]}} button to save the style settings as a preset.
* In the {{MenuCommand|Lines and faces}} section the following settings can be specified:
* In the {{MenuCommand|Shapes}} section the following settings can be specified:
** {{MenuCommand|Line color}}. This is also used for annotations ({{Version|0.21}}) and for the {{PropertyView|Point Color}} of objects.
** {{MenuCommand|Line width}}. This is also used for annotations ({{Version|0.21}}) and for the {{PropertyView|Point Size}} of objects.
** {{MenuCommand|Draw style}}.
** {{MenuCommand|Display mode}}.
** {{MenuCommand|Shape color}}.
** {{MenuCommand|Shape color}}.
** {{MenuCommand|Transparency}}.
** {{MenuCommand|Transparency}}.
** {{MenuCommand|Line color}}.
** {{MenuCommand|Line width}}.
** {{MenuCommand|Point color}}. {{Version|0.22}}
** {{MenuCommand|Point size}}. {{Version|0.22}}
** {{MenuCommand|Draw style}}.
** {{MenuCommand|Display mode}}.
* The settings in the {{MenuCommand|Annotations}} section apply to [[Draft_Text|Draft Texts]], [[Draft_Dimension|Draft Dimensions]] and [[Draft_Label|Draft Labels]]. The following settings can be specified (see [[Draft_Text#View|Draft Text]] for details):
* The settings in the {{MenuCommand|Annotations}} section apply to [[Draft_Text|Draft Texts]], [[Draft_Dimension|Draft Dimensions]] and [[Draft_Label|Draft Labels]]. The following settings can be specified (see [[Draft_Text#View|Draft Text]] for details):
** {{MenuCommand|Text font}}.
** {{MenuCommand|Text size}}. This is in fact the default line height, the letters are smaller.
** {{MenuCommand|Text color}}.
** {{MenuCommand|Text color}}.
** {{MenuCommand|Font name}}.
** {{MenuCommand|Font size}}. This is in fact the default line height, the letters are smaller.
** {{MenuCommand|Line spacing}}. Not used for dimensions.
** {{MenuCommand|Line spacing}}. Not used for dimensions.
* In the {{MenuCommand|Dimensions}} section the following settings can be specified (see [[Draft_Dimension#View|Draft Dimension]] for details):
* In the {{MenuCommand|Dimensions}} section the following settings can be specified (see [[Draft_Dimension#View|Draft Dimension]] for details):
** {{MenuCommand|Arrow style}}.
** {{MenuCommand|Line and arrow color}}. {{Version|0.22}}
** {{MenuCommand|Line width}}. {{Version|0.22}}
** {{MenuCommand|Arrow type}}.
** {{MenuCommand|Arrow size}}.
** {{MenuCommand|Arrow size}}.
** {{MenuCommand|Show unit}}.
** {{MenuCommand|Unit override}}.
** {{MenuCommand|Dim overshoot}}. {{Version|0.21}}
** {{MenuCommand|Dim overshoot}}. {{Version|0.21}}
** {{MenuCommand|Ext lines}}. {{Version|0.21}}
** {{MenuCommand|Ext lines}}. {{Version|0.21}}
** {{MenuCommand|Ext overshoot}}. {{Version|0.21}}
** {{MenuCommand|Ext overshoot}}. {{Version|0.21}}
** {{MenuCommand|Text spacing}}.
** {{MenuCommand|Text spacing}}.
** {{MenuCommand|Show units}}.
** {{MenuCommand|Unit override}}.
* Press the {{Button|[[Image:Draft_SetStyle.svg|16px]] Selected}} button to apply the settings to selected objects or groups. Objects can be selected while the task panel is open.
* Press the {{Button|[[Image:Draft_SetStyle.svg|16px]] Selected}} button to apply the settings to selected objects or groups. Objects can be selected while the task panel is open.
* Press the {{Button|[[Image:Draft_Text.svg|16px]] Annotations}} button to apply the settings to all [[Draft_Text|Draft Texts]], [[Draft_Dimension|Draft Dimensions]] and [[Draft_Label|Draft Labels]] in the current document. {{Version|0.21}}
* Press the {{Button|[[Image:Draft_Text.svg|16px]] Annotations}} button to apply the settings to all [[Draft_Text|Draft Texts]], [[Draft_Dimension|Draft Dimensions]] and [[Draft_Label|Draft Labels]] in the current document. {{Version|0.21}}

Revision as of 10:34, 5 December 2023

Draft SetStyle

Menu location
Utilities → Set style
Workbenches
Draft, Arch
Default shortcut
S S
Introduced in version
0.19
See also
Draft AnnotationStyleEditor, Draft ApplyStyle

Description

The Draft SetStyle command sets the default style for new objects.

The Style settings task panel

Usage

  1. There are several ways to invoke the command:
    • Press the button in the Draft Tray. Depending on the current style settings this button can look different.
    • Select the Utilities → Set style option from the menu.
    • Use the keyboard shortcut: S then S.
  2. The Style settings task panel opens. See Options for more information.
  3. Optionally change one or more settings.
  4. Press the OK button to save the settings.
  5. The button in the Draft Tray is updated.

Options

Notes

  • The Line color, Line width, Shape color and Transparency settings are not only used for Draft objects, but also for objects created with other workbenches.
  • Styles are saved in a file with a fixed name: StylePresets.json which is stored in FreeCAD's user Draft folder:
    • On Linux it is usually /home/<username>/.local/share/FreeCAD/Draft/.
    • On Windows it is %APPDATA%\FreeCAD\Draft\, which is usually C:\Users\<username>\Appdata\Roaming\FreeCAD\Draft\.
    • On macOS it is usually /Users/<username>/Library/Preferences/FreeCAD/Draft/.