Draft SetStyle: Difference between revisions
(V0.22 -> V1.0) |
(Updated for PR13914.) |
||
Line 28: | Line 28: | ||
</translate> |
</translate> |
||
[[Image:Draft_SetStyle_Taskpanel_Tab_Shape.png|x500px]] [[Image:Draft_SetStyle_Taskpanel_Tab_Annotation.png|x500px]] |
|||
[[Image:Draft_SetStyle_Taskpanel.png|x550px]] |
|||
<translate> |
<translate> |
||
<!--T:6--> |
<!--T:6--> |
||
{{Caption|The Style settings task panel}} |
{{Caption|The two tabs ({{Version|1.0}}) of the Style settings task panel}} |
||
==Usage== <!--T:7--> |
==Usage== <!--T:7--> |
||
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 current style settings as a preset. |
* Press the {{Button|[[Image:Document-save.svg|16px]]}} button to save the current style settings as a preset. |
||
* |
* On the {{MenuCommand|Shape}} tab the following settings can be specified: |
||
** {{MenuCommand|Shape |
** {{MenuCommand|Shape appearance}} |
||
** {{MenuCommand| |
*** {{MenuCommand|Shape color}}. |
||
** {{MenuCommand| |
*** {{MenuCommand|Ambient shape color}}. {{Version|1.0}} |
||
** {{MenuCommand| |
*** {{MenuCommand|Emissive shape color}}. {{Version|1.0}} |
||
** {{MenuCommand| |
*** {{MenuCommand|Specular shape color}}. {{Version|1.0}} |
||
** {{MenuCommand| |
*** {{MenuCommand|Shape transparency}}. |
||
** {{MenuCommand| |
*** {{MenuCommand|Shape shininess}}. {{Version|1.0}} |
||
** {{MenuCommand| |
** {{MenuCommand|Other}} |
||
⚫ | |||
* 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| |
*** {{MenuCommand|Line width}}. |
||
** {{MenuCommand| |
*** {{MenuCommand|Point color}}. {{Version|1.0}} |
||
** {{MenuCommand| |
*** {{MenuCommand|Point size}}. {{Version|1.0}} |
||
** {{MenuCommand| |
*** {{MenuCommand|Draw style}}. |
||
*** {{MenuCommand|Display mode}}. |
|||
⚫ | |||
* |
* The settings on the {{MenuCommand|Annotation}} tab 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]] and [[Draft_Dimension#View|Draft Dimension]] for details): |
||
** {{MenuCommand| |
** {{MenuCommand|Texts}} |
||
** {{MenuCommand| |
*** {{MenuCommand|Font name}}. |
||
** {{MenuCommand| |
*** {{MenuCommand|Font size}}. This is in fact the default line height, the letters are smaller. |
||
** {{MenuCommand| |
*** {{MenuCommand|Line spacing factor}}. Not used for dimensions. |
||
⚫ | |||
⚫ | |||
** {{MenuCommand| |
*** {{MenuCommand|Text color}}. |
||
** {{MenuCommand| |
** {{MenuCommand|Lines and arrows}} |
||
** {{MenuCommand| |
*** {{MenuCommand|Line width}}. {{Version|1.0}} |
||
** {{MenuCommand| |
*** {{MenuCommand|Arrow type}}. |
||
** {{MenuCommand| |
*** {{MenuCommand|Arrow size}}. |
||
*** {{MenuCommand|Line and arrow color}}. {{Version|1.0}} |
|||
** {{MenuCommand|Dimensions}} |
|||
*** {{MenuCommand|Show unit}}. |
|||
*** {{MenuCommand|Unit override}}. |
|||
*** {{MenuCommand|Dim line overshoot}}. {{Version|0.21}} |
|||
*** {{MenuCommand|Ext line length}}. {{Version|0.21}} |
|||
*** {{MenuCommand|Ext line overshoot}}. {{Version|0.21}} |
|||
*** {{MenuCommand|Text spacing}}. |
|||
* 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}} |
||
Line 83: | Line 91: | ||
<!--T:12--> |
<!--T:12--> |
||
* The settings |
* The settings on the {{MenuCommand|Shape}} tab, except {{MenuCommand|Draw style}} and {{MenuCommand|Display mode}}, are not only used for Draft objects, but also for objects created with other workbenches. |
||
* All settings, except {{MenuCommand|Draw style}} and {{MenuCommand|Display mode}}, can also be changed in the preferences. See [[PartDesign_Preferences#Shape_appearance|PartDesign Preferences]] and [[Draft_Preferences#Texts_and_dimensions|Draft Preferences]]. |
* All settings, except {{MenuCommand|Draw style}} and {{MenuCommand|Display mode}}, can also be changed in the preferences. See [[PartDesign_Preferences#Shape_appearance|PartDesign Preferences]] and [[Draft_Preferences#Texts_and_dimensions|Draft Preferences]]. |
||
* Styles are saved in a file with a fixed name: {{FileName|StylePresets.json}} which is stored in FreeCAD's user {{FileName|Draft}} folder: |
* Styles are saved in a file with a fixed name: {{FileName|StylePresets.json}} which is stored in FreeCAD's user {{FileName|Draft}} folder: |
Latest revision as of 13:06, 20 June 2024
|
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 two tabs (introduced in version 1.0) of the Style settings task panel
Usage
- 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.
- Press the
- The Style settings task panel opens. See Options for more information.
- Optionally change one or more settings.
- Press the OK button to save the settings.
- 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
button to save the current style settings as a preset.
- On the Shape tab the following settings can be specified:
- Shape appearance
- Shape color.
- Ambient shape color. introduced in version 1.0
- Emissive shape color. introduced in version 1.0
- Specular shape color. introduced in version 1.0
- Shape transparency.
- Shape shininess. introduced in version 1.0
- Other
- Line color.
- Line width.
- Point color. introduced in version 1.0
- Point size. introduced in version 1.0
- Draw style.
- Display mode.
- Shape appearance
- The settings on the Annotation tab apply to Draft Texts, Draft Dimensions and Draft Labels. The following settings can be specified (see Draft Text and Draft Dimension for details):
- Texts
- Font name.
- Font size. This is in fact the default line height, the letters are smaller.
- Line spacing factor. Not used for dimensions.
- Scale multiplier. This is the inverse of the scale set in the Draft annotation scale widget. If the scale is
1:100
the multiplier is100
. introduced in version 1.0 - Text color.
- Lines and arrows
- Line width. introduced in version 1.0
- Arrow type.
- Arrow size.
- Line and arrow color. introduced in version 1.0
- Dimensions
- Show unit.
- Unit override.
- Dim line overshoot. introduced in version 0.21
- Ext line length. introduced in version 0.21
- Ext line overshoot. introduced in version 0.21
- Text spacing.
- Texts
- 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 settings on the Shape tab, except Draw style and Display mode, are not only used for Draft objects, but also for objects created with other workbenches.
- All settings, except Draw style and Display mode, can also be changed in the preferences. See PartDesign Preferences and Draft Preferences.
- 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/.
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
![](/images/thumb/9/94/User_hub.png/24px-User_hub.png)
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Material, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub