Draft SetStyle

From FreeCAD Documentation
Revision as of 10:27, 5 December 2023 by Roy 043 (talk | contribs) (Removed references to V0.20.)

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

  • From the dropdown list at the top of the task panel an exiting style preset can be selected.
  • Press the Save style button to save the style settings as a preset.
  • In the Lines and faces section the following settings can be specified:
    • Line color. This is also used for annotations (introduced in version 0.21) and for the ViewPoint Color of objects.
    • Line width. This is also used for annotations (introduced in version 0.21) and for the ViewPoint Size of objects.
    • Draw style.
    • Display mode.
    • Shape color.
    • Transparency.
  • The settings in the Annotations section apply to Draft Texts, Draft Dimensions and Draft Labels. The following settings can be specified (see Draft Text for details):
    • Text font.
    • Text size. This is in fact the default line height, the letters are smaller.
    • Text color.
    • Line spacing. Not used for dimensions.
  • In the Dimensions section the following settings can be specified (see Draft Dimension for details):
  • Press the Selected button to apply the settings to selected objects or groups. Objects can be selected while the task panel is open.
  • Press the Annotations button to apply the settings to all Draft Texts, Draft Dimensions and Draft Labels in the current document. introduced in version 0.21
  • Press the Cancel button to finish the command without saving the settings.

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/.