Draft SetStyle: Difference between revisions
(Removed "In progress".) |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
<translate> |
<translate> |
||
<!--T:1--> |
|||
{{Docnav |
{{Docnav |
||
|[[Draft_SelectPlane|SelectPlane]] |
|[[Draft_SelectPlane|SelectPlane]] |
||
Line 11: | Line 12: | ||
}} |
}} |
||
<!--T:2--> |
|||
{{GuiCommand |
{{GuiCommand |
||
|Name=Draft SetStyle |
|Name=Draft SetStyle |
||
Line 19: | Line 21: | ||
}} |
}} |
||
==Description== |
==Description== <!--T:3--> |
||
<!--T:4--> |
|||
The [[Image:Draft_SetStyle.svg|24px]] '''Draft SetStyle''' command sets the default style for new objects. |
The [[Image:Draft_SetStyle.svg|24px]] '''Draft SetStyle''' command sets the default style for new objects. |
||
<!--T:5--> |
|||
This command is a work in progress and both the V0.19 version and the V0.20 version suffer from several bugs. |
This command is a work in progress and both the V0.19 version and the V0.20 version suffer from several bugs. |
||
Line 28: | Line 32: | ||
[[Image:Draft_SetStyle_taskpanel.png]] |
[[Image:Draft_SetStyle_taskpanel.png]] |
||
<translate> |
<translate> |
||
<!--T:6--> |
|||
{{Caption|The Style settings task panel}} |
{{Caption|The Style settings task panel}} |
||
==Usage== |
==Usage== <!--T:7--> |
||
<!--T:8--> |
|||
# There are several ways to invoke the command: |
# There are several ways to invoke the command: |
||
#* Press the [[Image:Draft_tray_button_style.png]] button in the [[Draft_Tray|Draft Tray]]. Depending on the current style settings this button can look different. |
#* Press the [[Image:Draft_tray_button_style.png]] button in the [[Draft_Tray|Draft Tray]]. Depending on the current style settings this button can look different. |
||
Line 40: | Line 46: | ||
# The button in the [[Draft_Tray|Draft Tray]] is updated. |
# The button in the [[Draft_Tray|Draft Tray]] is updated. |
||
==Options== |
==Options== <!--T:9--> |
||
<!--T:10--> |
|||
* From the dropdown list at the top of the task panel an exiting style can be selected. {{Version|0.20}} |
* From the dropdown list at the top of the task panel an exiting style can be selected. {{Version|0.20}} |
||
* Press the {{button|[[Image:Document-save.svg|16px]] Save style}} button to save the style settings. {{Version|0.20}} |
* Press the {{button|[[Image:Document-save.svg|16px]] Save style}} button to save the style settings. {{Version|0.20}} |
||
Line 65: | Line 72: | ||
* Press the {{Button|Cancel}} button to abort the command. |
* Press the {{Button|Cancel}} button to abort the command. |
||
==Notes== |
==Notes== <!--T:11--> |
||
<!--T:12--> |
|||
* The {{MenuCommand|Line color}}, {{MenuCommand|Line width}} and {{MenuCommand|Shape color}} settings are not only used for Draft objects, but also for objects created with other workbenches. |
* The {{MenuCommand|Line color}}, {{MenuCommand|Line width}} and {{MenuCommand|Shape color}} 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: {{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: |
||
Line 73: | Line 81: | ||
** On macOS it is usually {{FileName|/Users/<username>/Library/Preferences/FreeCAD/Draft/}}. |
** On macOS it is usually {{FileName|/Users/<username>/Library/Preferences/FreeCAD/Draft/}}. |
||
==Preferences== |
==Preferences== <!--T:13--> |
||
<!--T:14--> |
|||
See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]]. |
See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]]. |
||
<!--T:15--> |
|||
The following preferences are involved: |
The following preferences are involved: |
||
<!--T:16--> |
|||
* Line color: {{MenuCommand|Edit → Preferences... → Part design → Shape appearance → Default Shape view properties → Line color}}. |
* Line color: {{MenuCommand|Edit → Preferences... → Part design → Shape appearance → Default Shape view properties → Line color}}. |
||
* Line width: {{MenuCommand|Edit → Preferences... → Part design → Shape appearance → Default Shape view properties → Line width}}. |
* Line width: {{MenuCommand|Edit → Preferences... → Part design → Shape appearance → Default Shape view properties → Line width}}. |
||
Line 96: | Line 107: | ||
<!--T:17--> |
|||
{{Docnav |
{{Docnav |
||
|[[Draft_SelectPlane|SelectPlane]] |
|[[Draft_SelectPlane|SelectPlane]] |
Revision as of 12:14, 3 August 2021
Draft SetStyle |
Menu location |
---|
Utilities → Set style |
Workbenches |
Draft, Arch |
Default shortcut |
None |
Introduced in version |
0.19 |
See also |
Draft AnnotationStyleEditor, Draft ApplyStyle |
Description
The Draft SetStyle command sets the default style for new objects.
This command is a work in progress and both the V0.19 version and the V0.20 version suffer from several bugs.
File:Draft SetStyle taskpanel.png
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.
- The Style settings task panel opens. See Options for more information.
- Optionally change one or more settings.
- Press the OK button.
- The button in the Draft Tray is updated.
Options
- From the dropdown list at the top of the task panel an exiting style can be selected. introduced in version 0.20
- Press the Save style button to save the style settings. introduced in version 0.20
- In the Lines and faces section the following settings can be specified:
- Line color. This is also used for Draft Labels and for the ViewPoint Color of objects.
- Line width. This is also used for Draft Labels.
- Draw style. This feature currently does not work.
- Display mode. This feature currently does not work.
- Shape color.
- Transparency. This feature currently does not work.
- In the Annotations section the following settings can be specified:
- Text font.
- Text size. This is in fact the line height, the letters are smaller.
- Text spacing. This is used for Draft Dimensions. It is the distance between the text and the dimension line. introduced in version 0.20
- Text color. This is also used for the ViewLine Color of Draft Dimensions, which defines the color of the whole dimension including the text.
- Line spacing. This scale factor is applied to the line height. introduced in version 0.20
- Arrow style.
- Arrow size.
- Show units.
- Unit override.
- Press the Selected button to apply the settings to selected objects or groups. introduced in version 0.20
- Press the Texts/dims button to apply the settings to all Draft Texts and Draft Dimensions. introduced in version 0.20
- Press the Cancel button to abort the command.
Notes
- The Line color, Line width and Shape color 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>/.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/.
Preferences
See also: Preferences Editor and Draft Preferences.
The following preferences are involved:
- Line color: Edit → Preferences... → Part design → Shape appearance → Default Shape view properties → Line color.
- Line width: Edit → Preferences... → Part design → Shape appearance → Default Shape view properties → Line width.
- 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 design → Shape appearance → Default Shape view properties → Shape color.
- Transparency: Tools → Edit parameters... → BaseApp → Preferences → Mod → Draft → DefaultTransparency.
- 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 spacing: Edit → Preferences... → Draft → Texts and dimensions → Dimension settings → Text spacing.
- 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.
- 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.
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
User documentation
- 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, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub