Draft Layer

Description
The Draft Layer command creates a Draft Layer. A layer is a special kind of group with a number of visual properties. These properties, and any changes to them, are propagated to the objects placed inside the layer.

This command has replaced the Draft VisGroup command in FreeCAD version 0.19.

Usage

 * 1) There are several ways to invoke the command:
 * 2) * Press the button.
 * 3) * Select the option from the menu.
 * 4) If it does not exist the Draft LayerContainer, which will hold all layers, is created first.
 * 5) A layer is created and added to the layer container.
 * 6) Optionally change the properties of the layer.
 * 7) Optionally put objects in the layer by drag and dropping them on the layer in the Tree view. Objects can also be put in a layer by editing the  property of the layer.
 * 8) 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.