TechDraw GeometricHatch/it: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
<languages/>
<languages/>

<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{Docnav/it
{{Docnav/it
Line 79: Line 80:
}}
}}


It is also possible to use TechDraw's geometric hatch engine to produce a compound object in the 3D space. One must take
It is also possible to use TechDraw's geometric hatch engine to produce a compound object in the 3D space. One must take care that the base face lies on the XY plane, as the algorithm is not tailored yet for other cases:
care that the base face lies on the XY plane, as the algorithm is not tailored yet for other cases:


{{Code|code=
{{Code|code=
Line 91: Line 91:
Part.show(hatch)
Part.show(hatch)
}}
}}



<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 105: Line 106:
{{TechDraw Tools navi{{#translation:}}}}
{{TechDraw Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 19:35, 14 August 2021

Other languages:

Tratteggio geometrico

Posizione nel menu
TechDraw → Tratteggio geometrico
Ambiente
TechDraw
Avvio veloce
Nessuno
Introdotto nella versione
-
Vedere anche
Tratteggio da modello, Tipi di tratteggio

Descrizione

Lo strumento Tratteggio geometrico riempie una regione chiusa in una vista con un modello basato su una specifica di tratteggio PAT AutoDesk. In alternativa, lo strumento Tratteggio da modello utilizza un file SVG o bitmap come modello di tratteggio, vedere i tipi di tratteggio per i dettagli.

Esempio di tratteggio geometrico su una faccia

Utilizzo

  1. Selezionare una regione chiusa in una vista.
  2. Premere il pulsante Tratteggio geometrico
  3. Si apre una finestra di dialogo in cui è possibile selezionare il motivo, una scala per il motivo, uno spessore di linea e il colore.

Note

Una piccola serie di modelli di tratteggio sono disponibili in:

$INSTALL_DIR/data/Mod/TechDraw/PAT/FCPAT.pat

dove $INSTALL_DIR è la directory in cui è stato installato FreeCAD, per esempio

/usr/share/freecad/data/Mod/TechDraw/PAT/FCPAT.pat

Proprietà

  • DatiSource: La vista e la faccia che devono ricevere il modello di tratteggio.
  • DatiFile Pattern: La posizione del file PAT da utilizzare.
  • DatiName Pattern: Il nome dello specifico PAT all'interno di File Pattern.
  • DatiScale Pattern: La scala da applicare al modello (deve essere > 0.0).
  • VistaWeight Pattern: Lo spessore delle linee del modello.
  • VistaColor Pattern: Il colore delle linee del modello.

Script

Lo strumento GeometricHatch può essere utilizzato nelle macro e dalla console di Python tramite la seguente funzione:

hatch = FreeCAD.ActiveDocument.addObject('TechDraw::DrawGeomHatch','GeomHatch')
hatch.Source = (view1,["Face0"])
hatch.FilePattern = "path/to/myPATfile.pat"
hatch.NamePattern = "Diamond"
rc = page.addView(hatch)

It is also possible to use TechDraw's geometric hatch engine to produce a compound object in the 3D space. One must take care that the base face lies on the XY plane, as the algorithm is not tailored yet for other cases:

import TechDraw
face = Part.makePlane(10,10)
patfile = "path/to/myPATfile.pat"
pattern = "Diamond"
scale = 10
hatch = TechDraw.makeGeomHatch(face, scale, pattern, patfile)
Part.show(hatch)