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
Dieses Beispiel behandelt die Verwendung des OYX-Anfügemodus, um die Position eines Skizzenursprungs, wie unter Part Befestigen beschrieben, anzupassen. Es ist nicht sehr umfangreich, hilft Benutzern aber hoffentlich beim Ausprobieren.
Die obige Abbildung zeigt die Geometrie, die in diesen Beispiel verwendet wird.
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.
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.
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:
Now if we add a third reference by selecting the upper vertex of the orange edge the scene changes to: