Draft Layer

Description
The Draft Layer creates a special kind of group that controls the visual properties of objects placed inside of it. By changing the properties of the Layer, such as line width, line color, shape color and transparency, the changes are propagated to the objects that make use of the Layer property.

This tool replaces Draft VisGroup starting from FreeCAD 0.19.

Usage

 * 1) There are several ways to invoke the command:
 * 2) * Press the button.
 * 3) * Select the option from the menu.
 * 4) A new layer is created. If it does not yet exist, a Draft LayerContainer, which will hold all layers, is also created.
 * 5) Optionally change the properties of the layer.
 * 6) Optionally put objects in the layer by drag and dropping them onto the layer in the Tree view. Objects can also be put in a layer by editing the  property of the layer.
 * 7) Optionally activate the layer.

Layer container options
For a Draft LayerContainer these additional options are available in the Tree view context menu:


 * : this option currently does not work.
 * : adds a new layer to the current document. This option is an alternative for this command.

Layer options
For a Draft Layer these additional options are available in the Tree view context menu:


 * : makes the selected layer the active layer.
 * : selects the objects inside the selected layer.

Properties
See also: Property editor.

A Draft Layer object is derived from an App FeaturePython object and inherits all its properties. It also has the following additional properties:

Data

 * : specifies the objects that are inside the layer.

View
The properties in this section are applied to objects that are put inside the layer. And any changes to these properties are propagated to them. For two properties, and, this behavior is optional.


 * : specifies the draw style of the layer:, , or
 * : specifies the line color of the layer.
 * : specifies the line width of the layer.
 * : specifies if changes to the of the layer are propagated to the objects inside the layer.
 * : specifies if changes to the of the layer are propagated to the objects inside the layer.
 * : specifies the shape color of the layer.
 * : specifies the transparency of the layer.


 * : specifies the line print color of the layer.
 * : specifies if the of the layer is used when the objects inside the layer are placed on a TechDraw page.

Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To create a Draft Layer use the method of the Draft module. To add objects to, or remove objects from, a layer change its property.