Associazione avanzata OYX

From FreeCAD Documentation
This page is a translated version of the page Advanced Attachment OYX and the translation is 50% complete.
Other languages:
Tutorial
Argomento
Associazione
Livello di difficoltà
Intermedio avanzato
Tempo di esecuzione
1 ora
Autori
drmacro
Versione di FreeCAD
0.19 o superiore
Files di esempio
[TBD]
Vedere anche
Nessuno

Gli oggetti nella posizione iniziale

Introduzione

Questa dimostrazione affronta l'uso della modalità di associazione OYX per fissare la posizione dell'origine di uno schizzo come descritto in Part: Associazione, non è completa, ma si spera che possa aiutare gli utenti a sperimentare.

L'immagine sopra mostra la geometria utilizzata in questa dimostrazione.

Il riquadro in basso a destra mostra la vista dall'alto della scena. Nota che la scena include uno schizzo contenente un quadrato e un testo che indica gli assi verticale (Y) e orizzontale (X) dello schizzo. L'angolo inferiore sinistro del quadrato si trova a 0,0,0 dello schizzo (l'origine dello schizzo).

L'origine dello schizzo e l'origine globale (designata dagli assi rosso, verde e blu) sono le stesse. Negli altri fotogrammi dell'immagine possiamo vedere che il quadrato è a Z=0, quindi lo schizzo è nel piano XY.

Sono presenti altri due schizzi che includono la geometria che verrà utilizzata per riposizionare lo schizzo contenente il quadrato. Uno schizzo contiene una linea arancione orientata lungo l'asse Z globale nel piano XZ. L'altro schizzo contiene una linea gialla nel piano XY.

Discussione

Attachment mode Align O-Y-X is defined as follows in Part:Attachment: Matches object's origin with first referenced vertex and aligns its vertical and horizontal plane axes toward vertex/along line.. It also notes there are several reference combinations.

Reference combinations
Vertex, Vertex, Vertex
Vertex, Vertex, Edge
Vertex, Edge, Vertex
Vertex, Edge, Edge
Vertex, Vertex
Vertex, Edge

Lets start with Vertex, Vertex, Vertex.

If we match the definition to the reference:

The first vertex selected will position the origin of the sketch to the selected vertex.

The second vertex selected will align the vertical axis of the sketch (in the demo setup this axis is indicated with Y).

So, if we select the upper left/upper vertex of the yellow edge (as seen in the larger right frame) and the lower/right vertex of the yellow edge the sketch is positioned like this:

Notes
The Align O-Y-X is selected in the Attachment dialogue.
The sketch origin is now at the upper left/upper vertex of the yellow line.
The Y axis of the sketch is now aligned with the yellow line.
The Z axis of the sketch is perpendicular to the yellow line.

Now if we add a third reference by selecting the upper vertex of the orange edge the scene changes to:

Notes
Now the X axis of the sketch is aligned in the direction of the selected vertex of the orange edge.