Draft Layer/it: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 4: Line 4:
{{Docnav/it|[[Draft_FlipDimension/it|Inverti la direzione delle quote]]|[[Draft Slope/it|Pendenza]]|[[Draft_Module/it|Draft]]|IconL=Draft_FlipDimension.svg|IconC=Workbench_Draft.svg|IconR=Draft_Slope.svg}}
{{Docnav/it|[[Draft_FlipDimension/it|Inverti la direzione delle quote]]|[[Draft Slope/it|Pendenza]]|[[Draft_Module/it|Draft]]|IconL=Draft_FlipDimension.svg|IconC=Workbench_Draft.svg|IconR=Draft_Slope.svg}}
</div>
</div>



<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 26: Line 25:
Questo strumento sostituisce [[Draft VisGroup/it|VisGruppo]] a partire da FreeCAD 0.19.
Questo strumento sostituisce [[Draft VisGroup/it|VisGruppo]] a partire da FreeCAD 0.19.
</div>
</div>

'''Note''': The [[BIM_Workbench|BIM Workbench]] offers a complete [[BIM_Layers|layer manager tool]], which will eventually be included in Draft.


== Utilizzo ==
== Utilizzo ==
Line 35: Line 32:
# Modificare le proprietà di visualizzazione desiderate dello strato.
# Modificare le proprietà di visualizzazione desiderate dello strato.
</div>
</div>

== Context menu ==

=== Layer container options ===

For a Draft LayerContainer these additional options are available in the [[Tree_view|Tree view]] context menu:

* {{MenuCommand|[[Image:Draft_Layer.svg|16px]] Merge layer duplicates}}: this option currently does not work.
* {{MenuCommand|[[Image:Draft_NewLayer.svg|16px]] Add new layer}}: adds a new layer to the current document.

=== Layer options ===

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

* {{MenuCommand|[[Image:button_right.svg|16px]] [[Draft_AutoGroup|Activate this layer]]}}: activates the selected layer.
* {{MenuCommand|[[Image:Draft_SelectGroup.svg|16px]] [[Draft_SelectGroup|Select layer contents]]}}: selects the objects inside the selected layer.

== Notes ==

* A new layer can also be created with the [[Draft_AutoGroup|Draft AutoGroup]] command.
* The [[BIM_Workbench|BIM Workbench]] offers a complete [[BIM_Layers|layer manager tool]] which will eventually be included in the [[Draft_Module|Draft Workbench]].


== Proprietà ==
== Proprietà ==


See also: [[property_editor|Property editor]].

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

=== Data ===

{{TitleProperty|Layer}}

<div class="mw-translate-fuzzy">
* {{PropertyData|Group}}: specifica gli elementi che fanno parte del gruppo.
* {{PropertyData|Group}}: specifica gli elementi che fanno parte del gruppo.
* Proprietà visive che possono essere modificate e propagate agli oggetti: {{PropertyView|Stile di disegno}}, {{PropertyView|Colore della linea}}, {{PropertyView|Larghezza della linea}}, {{PropertyView|Colore della forma}}, {{PropertyView|Trasparenza}}, e {{PropertyView|Visibilità}}.
* Proprietà visive che possono essere modificate e propagate agli oggetti: {{PropertyView|Stile di disegno}}, {{PropertyView|Colore della linea}}, {{PropertyView|Larghezza della linea}}, {{PropertyView|Colore della forma}}, {{PropertyView|Trasparenza}}, e {{PropertyView|Visibilità}}.
</div>

=== View ===

{{TitleProperty|Layer}}

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, {{PropertyView|Line Color}} and {{PropertyView|Shape Color}}, this behavior is optional.

* {{PropertyView|Draw Style|Enumeration}}: specifies the draw style of the layer: {{value|Solid}}, {{value|Dashed}}, {{value|Dotted}} or {{value|Dashdot}}
* {{PropertyView|Line Color|Color}}: specifies the line color of the layer.
* {{PropertyView|Line Width|Float}}: specifies the line width of the layer.
* {{PropertyView|Override Line Color Children|Bool}}: specifies if changes to the {{PropertyView|Line Color}} of the layer are propagated to the objects inside the layer.
* {{PropertyView|Override Shape Color Children|Bool}}: specifies if changes to the {{PropertyView|Shape Color}} of the layer are propagated to the objects inside the layer.
* {{PropertyView|Shape Color|Color}}: specifies the shape color of the layer.
* {{PropertyView|Transparency|Percent}}: specifies the transparency of the layer.

{{TitleProperty|Print}}

* {{PropertyView|Line Print Color|Color}}: specifies the line print color of the layer.
* {{PropertyView|Use Print Color|Bool}}: specifies if the {{PropertyView|Line Print Color|}} of the layer is used when a [[TechDraw_DraftView|TechDraw DraftView]] is created from the objects inside the layer.


==Script==
==Script==


<div class="mw-translate-fuzzy">
{{Emphasis|Vedere anche:}} [[FreeCAD Scripting Basics/it|Script di base per FreeCAD]]
{{Emphasis|Vedere anche:}} [[FreeCAD Scripting Basics/it|Script di base per FreeCAD]]
</div>


<div class="mw-translate-fuzzy">
Per aggiungere o rimuovere oggetti dallo strato, sovrascrivere semplicemente il suo attributo {{incode|Group}}.
Per aggiungere o rimuovere oggetti dallo strato, sovrascrivere semplicemente il suo attributo {{incode|Group}}.
</div>


{{Code|code=
{{Code|code=
import FreeCAD as App
group = App.ActiveDocument.Layer.Group
import Draft
group.append(App.ActiveDocument.Wire)

App.ActiveDocument.Layer.Group = group
doc = App.newDocument()

layer = Draft.make_layer(line_color=(1.0, 0.0, 0.0, 0.0),
shape_color=(1.0, 1.0, 0.0, 0.0))

polygon1 = Draft.make_polygon(5, radius=1000)
polygon2 = Draft.make_polygon(3, radius=500)
polygon3 = Draft.make_polygon(6, radius=220)
layer.Group = [polygon1, polygon2, polygon3]

doc.recompute()
}}
}}



<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 59: Line 122:
{{Draft Tools navi{{#translation:}}}}
{{Draft Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 06:58, 11 August 2021

Strato

Posizione nel menu
Draft → Utilità → Strato
Ambiente
Draft, Arch
Avvio veloce
Nessuno
Introdotto nella versione
0.19
Vedere anche
Nessuno

Descrizione

Lo Strato crea un tipo speciale di gruppo che controlla le proprietà visive degli oggetti posizionati al suo interno. Modificando le proprietà dello strato, come la larghezza della linea, il colore della linea, il colore della forma e la trasparenza, le modifiche vengono propagate agli oggetti che utilizzano la proprietà Strato.

Questo strumento sostituisce VisGruppo a partire da FreeCAD 0.19.

Utilizzo

  1. Andare nel menu Draft → Utilità → Strato.
  2. Modificare le proprietà di visualizzazione desiderate dello strato.

Context menu

Layer container options

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

  • Merge layer duplicates: this option currently does not work.
  • Add new layer: adds a new layer to the current document.

Layer options

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

Notes

Proprietà

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

Layer

  • DatiGroup: specifica gli elementi che fanno parte del gruppo.
  • Proprietà visive che possono essere modificate e propagate agli oggetti: VistaStile di disegno, VistaColore della linea, VistaLarghezza della linea, VistaColore della forma, VistaTrasparenza, e VistaVisibilità.

View

Layer

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, VistaLine Color and VistaShape Color, this behavior is optional.

  • VistaDraw Style (Enumeration): specifies the draw style of the layer: Solid, Dashed, Dotted or Dashdot
  • VistaLine Color (Color): specifies the line color of the layer.
  • VistaLine Width (Float): specifies the line width of the layer.
  • VistaOverride Line Color Children (Bool): specifies if changes to the VistaLine Color of the layer are propagated to the objects inside the layer.
  • VistaOverride Shape Color Children (Bool): specifies if changes to the VistaShape Color of the layer are propagated to the objects inside the layer.
  • VistaShape Color (Color): specifies the shape color of the layer.
  • VistaTransparency (Percent): specifies the transparency of the layer.

Print

  • VistaLine Print Color (Color): specifies the line print color of the layer.
  • VistaUse Print Color (Bool): specifies if the VistaLine Print Color of the layer is used when a TechDraw DraftView is created from the objects inside the layer.

Script

Per aggiungere o rimuovere oggetti dallo strato, sovrascrivere semplicemente il suo attributo Group.

import FreeCAD as App
import Draft

doc = App.newDocument()

layer = Draft.make_layer(line_color=(1.0, 0.0, 0.0, 0.0),
                         shape_color=(1.0, 1.0, 0.0, 0.0))

polygon1 = Draft.make_polygon(5, radius=1000)
polygon2 = Draft.make_polygon(3, radius=500)
polygon3 = Draft.make_polygon(6, radius=220)
layer.Group = [polygon1, polygon2, polygon3]

doc.recompute()