Draft SetStyle

From FreeCAD Documentation
Revision as of 08:53, 14 May 2023 by Roy 043 (talk | contribs) (PR9514)

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. introduced in version 0.20
  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/ (version 0.20 and above) or /home/<username>/.FreeCAD/Draft/ (version 0.19 and below).
    • 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/.

Preferences

See also: Preferences Editor and Draft Preferences.

The following preferences are involved:

  • Line color: Edit → Preferences... → Part/Part Design → Shape appearance → Default Shape view properties → Line color and Vertex color.
  • Line width: Edit → Preferences... → Part/Part Design → Shape appearance → Default Shape view properties → Line width and Vertex size.
  • Draw style: Tools → Edit parameters... → BaseApp → Preferences → Mod → Draft → DefaultDrawStyle.
  • Display mode: Tools → Edit parameters... → BaseApp → Preferences → Mod → Draft → DefaultDisplayMode.
  • Shape color: Edit → Preferences... → Part/Part Design → Shape appearance → Default Shape view properties → Shape color.
  • Transparency: Edit → Preferences... → Part/Part Design → Shape appearance → Default Shape view properties → Shape transparency.
  • Text font: Edit → Preferences... → Draft → Texts and dimensions → Text settings → Font family.
  • Text size: Edit → Preferences... → Draft → Texts and dimensions → Text settings → Font size.
  • Text color: Tools → Edit parameters... → BaseApp → Preferences → Mod → Draft → DefaultTextColor.
  • Line spacing: Tools → Edit parameters... → BaseApp → Preferences → Mod → Draft → LineSpacing.
  • Arrow style: Edit → Preferences... → Draft → Texts and dimensions → Dimension settings → Arrow style.
  • Arrow size: Edit → Preferences... → Draft → Texts and dimensions → Dimension settings → Arrow size.
  • Dim overshoot: Edit → Preferences... → Draft → Texts and dimensions → Dimension settings → Dimension line overshoot.
  • Ext lines: Edit → Preferences... → Draft → Texts and dimensions → Dimension settings → Extension lines size.
  • Ext overshoot: Edit → Preferences... → Draft → Texts and dimensions → Dimension settings → Extension line overshoot.
  • Text spacing: Edit → Preferences... → Draft → Texts and dimensions → Dimension settings → Text spacing.
  • Show units: Edit → Preferences... → Draft → Texts and dimensions → Dimension settings → Show the unit suffix in dimensions.
  • Unit override: Edit → Preferences... → Draft → Texts and dimensions → Dimension settings → Override unit.