Draft Pattern: Difference between revisions

From FreeCAD Documentation
m (→)
(Preferences)
 
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>
==Description== <!--T:1-->
All closable Draft objects, such as [[Draft Rectangle|rectangle]], [[Draft Circle|circle]], [[Draft Ellipse|ellipse]], [[Draft Wire|wire]] or [[Draft Polygon|polygon]], when closed and set to "Flat Lines" display mode, can display a hatch pattern, instead of the face color, by setting their "Pattern" property.


<!--T:2-->
<!--T:9-->
{{Docnav
|[[Draft_Constrain|Constrain]]
|[[Draft_Preferences|Preferences]]
|[[Draft_Workbench|Draft]]
|IconL=
|IconR=
|IconC=Workbench_Draft.svg
}}

</translate>
{{TOCright}}
<translate>

==Description== <!--T:7-->

<!--T:1-->
[[Draft_Workbench|Draft]] objects with a {{PropertyData|Make Face}} property can display an SVG pattern instead of a solid face color.

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

==Usage== <!--T:8-->

<!--T:3-->
# Make sure the objects are closed and planar, and do not self-intersect.
# To close a [[Draft_Wire|Draft Wire]], a [[Draft_BSpline|Draft BSpline]], a [[Draft_CubicBezCurve|Draft CubicBezCurve]] or a [[Draft_BezCurve|Draft BezCurve]] set its {{PropertyData|Closed}} property to {{TRUE}}.
# To close a [[Draft_Circle|Draft Circle]] or a [[Draft_Ellipse|Draft Ellipse]] set its {{PropertyData|First Angle}} and {{PropertyData|Last Angle}} properties to the same value.
# Select the objects.
# Switch to the {{MenuCommand|View}} tab of the [[Property_editor|Property editor]].
# The {{PropertyView|Display Mode}} must be set to {{Value|Flat Lines}}.
# Select a {{PropertyView|Pattern}}.
# Optionally change the {{PropertyView|Pattern Size}}. Note that a higher value results in a denser pattern.
# The pattern is not displayed when the objects are selected. Deselect them to check the result.
# Optionally reselect the objects to change the pattern properties.

==Available patterns== <!--T:10-->

</translate>
<gallery mode=nolines widths=96px heights=96px>
Image:Aluminium.svg|aluminium
Image:Brick01.svg|brick01
Image:Concrete.svg|concrete
Image:Cross.svg|cross
Image:Cuprous.svg|cuprous
Image:Diagonal1.svg|diagonal1
Image:Diagonal2.svg|diagonal2
Image:Earth.svg|earth
Image:General_steel.svg|general_steel<!--Keep underscore in caption as this is the name in the GUI-->
Image:Glass.svg|glass
Image:Hatch45L.svg|hatch45L
Image:Hatch45R.svg|hatch45R
Image:Hbone.svg|hbone
Image:Line.svg|line
Image:Plastic.svg|plastic
Image:Plus.svg|plus
Image:Simple.svg|simple
Image:Solid.svg|solid
Image:Square.svg|square
Image:Steel.svg|steel
Image:Titanium.svg|titanium
Image:Wood.svg|wood
Image:Woodgrain.svg|woodgrain
Image:Zinc.svg|zinc
</gallery>
<translate>

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

<!--T:17-->
* SVG patterns are stored in {{FileName|.SVG}} files. It is possible to use your own custom patterns. See [[#Preferences|Preferences]].
* The patterns themselves are not saved in the FreeCAD document. Objects whose {{PropertyView|Pattern}} cannot be found are displayed with a solid face color instead.

==Preferences== <!--T:12-->


==How to use== <!--T:3-->
<!--T:13-->
See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]].
# Select the object
# In Combo View → Data: set Make Face to true to make sure the object will have a face to set the pattern
# In Combo View → View → Pattern: specify a hatch pattern to fill the wire with
# In Combo View → View → Pattern Size: specify the size of the hatch pattern


<!--T:4-->
<!--T:14-->
* To change the {{PropertyView|Pattern Size}} used for new objects: {{MenuCommand|Edit → Preferences... → Draft → Visual → SVG pattern size}}.
Note:
* To specify a directory with addition SVG patterns: {{MenuCommand|Edit → Preferences... → Draft → Visual → Additional SVG pattern location}}.


<!--T:5-->
* The pattern is not visible when the item is either selected or pre-selected.
* If you create a face with upgrade, the resulting object is not a Draft object anymore, and so patterns are not available
* The [[Draft Wire]] can be closed and turned into a face directly when created, by checking the "Filled" checkbox.


<!--T:6-->
<!--T:15-->
{{Docnav
[[Category:User Documentation]]
|[[Draft_Constrain|Constrain]]
|[[Draft_Preferences|Preferences]]
|[[Draft_Workbench|Draft]]
|IconL=
|IconR=
|IconC=Workbench_Draft.svg
}}


</translate>
</translate>
{{Draft Tools navi{{#translation:}}}}
{{clear}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 16:58, 3 December 2023

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 change the ViewPattern Size used for new objects: Edit → Preferences... → Draft → Visual → SVG pattern size.
  • To specify a directory with addition SVG patterns: Edit → Preferences... → Draft → Visual → Additional SVG pattern location.