Draft Pattern: Difference between revisions

From FreeCAD Documentation
(Update texts in the preferences. See https://github.com/FreeCAD/FreeCAD/pull/5067.)
(Image and gallery should not be translatable.)
Line 21: Line 21:
[[Draft_Workbench|Draft]] objects with a {{PropertyData|Make Face}} property can display an SVG pattern instead of a solid face color.
[[Draft_Workbench|Draft]] objects with a {{PropertyData|Make Face}} property can display an SVG pattern instead of a solid face color.


</translate>
<!--T:2-->
[[Image:DraftPatternSample.png]]
[[Image:DraftPatternSample.png]]
<translate>
<!--T:2-->
{{Caption|An ellipse and a polygon with an SVG pattern}}
{{Caption|An ellipse and a polygon with an SVG pattern}}


Line 41: Line 43:
==Available patterns== <!--T:10-->
==Available patterns== <!--T:10-->


</translate>
<!--T:11-->
<gallery mode=nolines widths=96px heights=96px>
<gallery mode=nolines widths=96px heights=96px>
Image:Aluminium.svg|aluminium
Image:Aluminium.svg|aluminium
Line 53: Line 55:
Image:General_steel.svg|general_steel<!--Keep underscore in caption as this is the name in the GUI-->
Image:General_steel.svg|general_steel<!--Keep underscore in caption as this is the name in the GUI-->
Image:Glass.svg|glass
Image:Glass.svg|glass
Image:Hatch45L.svg|hatch45L<br>{{Version|0.20}}
Image:Hatch45L.svg|hatch45L
Image:Hatch45R.svg|hatch45R<br>{{Version|0.20}}
Image:Hatch45R.svg|hatch45R
Image:Hbone.svg|hbone
Image:Hbone.svg|hbone
Image:Line.svg|line
Image:Line.svg|line
Line 68: Line 70:
Image:Zinc.svg|zinc
Image:Zinc.svg|zinc
</gallery>
</gallery>
<translate>


==Notes== <!--T:16-->
==Notes== <!--T:16-->

Revision as of 11:36, 29 September 2021

Description

Draft objects with a DataMake Face property can display an SVG pattern instead of a solid face color.

An ellipse and a polygon with an SVG pattern

Usage

  1. Make sure the objects are closed and planar, and do not self-intersect.
  2. To close a Draft Wire, a Draft BSpline, a Draft CubicBezCurve or a Draft BezCurve set its DataClosed property to true.
  3. To close a Draft Circle or a Draft Ellipse set its DataFirst Angle and DataLast Angle properties to the same value.
  4. Select the objects.
  5. Switch to the View tab of the Property editor.
  6. The ViewDisplay Mode must be set to Flat Lines.
  7. Select a ViewPattern.
  8. Optionally change the ViewPattern Size. Note that a higher value results in a denser pattern.
  9. The pattern is not displayed when the objects are selected. Deselect them to check the result.
  10. Optionally reselect the objects to change the pattern properties.

Available patterns

Notes

  • SVG patterns are stored in .SVG files. It is possible to use your own custom patterns. See Preferences.
  • The patterns themselves are not saved in the FreeCAD document. Objects whose ViewPattern cannot be found are displayed with a solid face color instead.

Preferences

See also: Preferences Editor and Draft Preferences.

  • To specify a directory with addition SVG patterns: Edit → Preferences... → Draft → Visual settings → Alternate SVG patterns location. Select a file in the directory and then remove the filename in the preferences input box, leaving only the path. After changing this preference you must restart FreeCAD.
  • The Edit → Preferences... → Draft → Visual settings → SVG pattern resolution preference is not used.
  • To change the ViewPattern Size used for new objects: Edit → Preferences... → Draft → Visual settings → SVG pattern default size.