Advanced Attachment OYX: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
<translate>
<translate>


<!--T:1-->
{{TutorialInfo
{{TutorialInfo
|Topic=Attachment
|Topic=Attachment
Line 14: Line 15:
[[File:AttOYX_Setup.png|800px]]
[[File:AttOYX_Setup.png|800px]]
<translate>
<translate>
<!--T:2-->
{{Caption|The objects in initial position}}
{{Caption|The objects in initial position}}


==Introduction==
==Introduction== <!--T:3-->


<!--T:4-->
This demonstration addresses the use of the OYX attachment mode to adjust the position of the origin of a sketch as described in [[Part_EditAttachment|Part:Attachment]], it is not comprehensive, but hopefully will help users experiment.
This demonstration addresses the use of the OYX attachment mode to adjust the position of the origin of a sketch as described in [[Part_EditAttachment|Part:Attachment]], it is not comprehensive, but hopefully will help users experiment.


<!--T:5-->
The image above shows the geometry used in this demonstration.
The image above shows the geometry used in this demonstration.


<!--T:6-->
The lower right frame shows the top view of the scene. Note the scene includes a sketch containing a square and text indicating the vertical (Y), horizontal (X) axes of the sketch. The lower left corner of the square is located at 0,0,0 of the sketch (the origin of the sketch).
The lower right frame shows the top view of the scene. Note the scene includes a sketch containing a square and text indicating the vertical (Y), horizontal (X) axes of the sketch. The lower left corner of the square is located at 0,0,0 of the sketch (the origin of the sketch).


<!--T:7-->
The origin of the sketch and the global origin (designated by the red, green and blue [[Std_AxisCross|axis cross]]) are the same. In the other frames of the image we can see that the square is at Z=0, so the sketch is in the XY plane.
The origin of the sketch and the global origin (designated by the red, green and blue [[Std_AxisCross|axis cross]]) are the same. In the other frames of the image we can see that the square is at Z=0, so the sketch is in the XY plane.


<!--T:8-->
There are two other sketches which include geometry that will be used to re-position the sketch containing the square. One sketch contains an orange line that is oriented along the global Z axis in the XZ plane. The other sketch contains a yellow line in the XY plane.
There are two other sketches which include geometry that will be used to re-position the sketch containing the square. One sketch contains an orange line that is oriented along the global Z axis in the XZ plane. The other sketch contains a yellow line in the XY plane.


==Discussion==
==Discussion== <!--T:9-->


<!--T:10-->
Attachment mode Align O-Y-X is defined as follows in [[Part_EditAttachment|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.
Attachment mode Align O-Y-X is defined as follows in [[Part_EditAttachment|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.


<!--T:11-->
:; Reference combinations:
:; Reference combinations:
: Vertex, Vertex, Vertex
: Vertex, Vertex, Vertex
Line 40: Line 49:
:Vertex, Edge
:Vertex, Edge


<!--T:12-->
Lets start with ''Vertex, Vertex, Vertex''.
Lets start with ''Vertex, Vertex, Vertex''.


<!--T:13-->
If we match the definition to the reference:
If we match the definition to the reference:


<!--T:14-->
The first vertex selected will position the origin of the sketch to the selected vertex.
The first vertex selected will position the origin of the sketch to the selected vertex.


<!--T:15-->
The second vertex selected will align the vertical axis of the sketch (in the demo setup this axis is indicated with '''Y''').
The second vertex selected will align the vertical axis of the sketch (in the demo setup this axis is indicated with '''Y''').


<!--T:16-->
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:
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:


Line 54: Line 68:
<translate>
<translate>


<!--T:17-->
:; Notes:
:; Notes:
: The Align O-Y-X is selected in the Attachment dialogue.
: 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 sketch origin is now at the upper left/upper vertex of the yellow line.
: The vertical (Y) axis of the sketch is now aligned with the yellow line.
: The Y axis of the sketch is now aligned with the yellow line.
: The +Z of the sketch is perpendicular to the yellow line.
: The Z axis of the sketch is perpendicular to the yellow line.


<!--T:18-->
Now if we add a third reference by selecting the upper vertex of the orange edge the scene changes to:
Now if we add a third reference by selecting the upper vertex of the orange edge the scene changes to:


Line 66: Line 82:
<translate>
<translate>


<!--T:19-->
:; Notes:
:; Notes:
: Now the horizontal (X) axis of the sketch is aligned in the direction of the selected vertex of the orange edge.
: Now the X axis of the sketch is aligned in the direction of the selected vertex of the orange edge.





Latest revision as of 08:05, 21 October 2021

Other languages:
Tutorial
Topic
Attachment
Level
Intermediate/Advanced
Time to complete
1 hour
Authors
drmacro
FreeCAD version
0.19 or above
Example files
[TBD]
See also
None

The objects in initial position

Introduction

This demonstration addresses the use of the OYX attachment mode to adjust the position of the origin of a sketch as described in Part:Attachment, it is not comprehensive, but hopefully will help users experiment.

The image above shows the geometry used in this demonstration.

The lower right frame shows the top view of the scene. Note the scene includes a sketch containing a square and text indicating the vertical (Y), horizontal (X) axes of the sketch. The lower left corner of the square is located at 0,0,0 of the sketch (the origin of the sketch).

The origin of the sketch and the global origin (designated by the red, green and blue axis cross) are the same. In the other frames of the image we can see that the square is at Z=0, so the sketch is in the XY plane.

There are two other sketches which include geometry that will be used to re-position the sketch containing the square. One sketch contains an orange line that is oriented along the global Z axis in the XZ plane. The other sketch contains a yellow line in the XY plane.

Discussion

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.