Part EditAttachment: Difference between revisions

From FreeCAD Documentation
m (Removed extra space between end of sentence and period)
(Fixed Part_CrossSections link(s).)
(20 intermediate revisions by 3 users not shown)
Line 3: Line 3:
<!--T:90-->
<!--T:90-->
{{Docnav
{{Docnav
|[[Part_CrossSections|CrossSections]]
|[[Part_Measure_Toggle_Delta|Toggle Delta]]
|[[Part_Measure_Menu|Measure Menu]]
|
|[[Part_Module|Part]]
|[[Part_Module|Part]]
|IconL=Part_Measure_Toggle_Delta.svg
|IconL=Part_CrossSections.svg
|IconR=Part_Measure_Menu.png
|IconC=Workbench_Part.svg
|IconC=Workbench_Part.svg
|IconR=
}}
}}


Line 15: Line 15:
|Name=Part Attachment
|Name=Part Attachment
|MenuLocation=Part → Attachment...
|MenuLocation=Part → Attachment...
|Workbenches=[[Part Module|Part]], [[PartDesign Workbench|PartDesign]]
|Workbenches=[[Part_Module|Part]], [[PartDesign_Workbench|PartDesign]]
|SeeAlso=[[Placement|Placement]]
|Version=0.17
|Version=0.17
|SeeAlso=[[Placement|Placement]]
}}
}}


Line 30: Line 30:
# Select the object to be attached.
# Select the object to be attached.
# Go to the '''Part → Attachment...''' menu.
# Go to the '''Part → Attachment...''' menu.
#: '''Note''': when working in [[PartDesign Workbench|PartDesign]] and creating sketches, datum geometry or primitives, steps 1 and 2 are unnecessary: the Attachment dialogue is brought up automatically.
#: '''Note''': when working in [[PartDesign_Workbench|PartDesign]] and creating sketches, datum geometry or primitives, steps 1 and 2 are unnecessary: the Attachment dialogue is brought up automatically.
# Under '''Attachment''' parameters, ''Not attached'' can be read. The first button below is labeled {{KEY|Selecting…}} to indicate it is expecting a selection in the 3D view.
# Under '''Attachment''' parameters, ''Not attached'' can be read. The first button below is labeled {{KEY|Selecting…}} to indicate it is expecting a selection in the 3D view.
# Select a topology element on the object to attach to: vertex, edge or face/plane. Datum geometry from [[Std Part|Part containers]] are also selectable.
# Select a topology element on the object to attach to: vertex, edge or face/plane. Datum geometry from [[Std_Part|Part containers]] are also selectable.
# The first button's label now adopts the type of topology selected. In the white field to its right, the referenced object and its element is added. For example, if a face on a primitive cube is selected, the field will show Box:Face6.
# The first button's label now adopts the type of topology selected. In the white field to its right, the referenced object and its element is added. For example, if a face on a primitive cube is selected, the field will show Box:Face6.
# Select an [[#Attachment mode|Attachment mode]] in the list. The available modes are filtered by the selected references. ''Attached with mode <mode description>'' will be displayed under the '''Attachment''' header.
# Select an [[#Attachment mode|Attachment mode]] in the list. The available modes are filtered by the selected references. ''Attached with mode <mode description>'' will be displayed under the '''Attachment''' header.
Line 43: Line 43:


<!--T:8-->
<!--T:8-->
[[File:Part Offset Tasks.png | right]]
[[File:Part Offset Tasks.png|right]]


=== Attachment mode=== <!--T:9-->
=== Attachment mode=== <!--T:9-->
Line 122: Line 122:


<!--T:28-->
<!--T:28-->
Matches object's origin with first referenced vertex and aligns its vertical plane axis and normal toward vertex/along line .
Matches object's origin with first referenced vertex and aligns its vertical plane axis and normal toward vertex/along line.


<!--T:29-->
<!--T:29-->
Line 136: Line 136:


<!--T:31-->
<!--T:31-->
Matches object's origin with first referenced vertex and aligns its vertical and horizontal plane axes toward vertex/along line .
Matches object's origin with first referenced vertex and aligns its vertical and horizontal plane axes toward vertex/along line.


<!--T:32-->
<!--T:32-->
Line 159: Line 159:


<!--T:37-->
<!--T:37-->
Plane is aligned to XY local plane of linked object .
Plane is aligned to XY local plane of linked object.


<!--T:38-->
<!--T:38-->
Line 168: Line 168:


<!--T:40-->
<!--T:40-->
Plane is aligned to XZ local plane of linked object .
Plane is aligned to XZ local plane of linked object.


<!--T:41-->
<!--T:41-->
Line 177: Line 177:


<!--T:43-->
<!--T:43-->
Plane is aligned to YZ local plane of linked object .
Plane is aligned to YZ local plane of linked object.


<!--T:44-->
<!--T:44-->
Line 186: Line 186:


<!--T:46-->
<!--T:46-->
Plane is aligned to coincide to planar face .
Plane is aligned to coincide to planar face.


<!--T:47-->
<!--T:47-->
Line 195: Line 195:


<!--T:49-->
<!--T:49-->
Plane is made tangent to surface at vertex .
Plane is made tangent to surface at vertex.


<!--T:50-->
<!--T:50-->
Line 241: Line 241:


<!--T:61-->
<!--T:61-->
Aligns to plane to osculating circle of an edge. Optional Vertex link defines where .
Aligns to plane to osculating circle of an edge. Optional Vertex link defines where.


<!--T:62-->
<!--T:62-->
Line 255: Line 255:


<!--T:64-->
<!--T:64-->
Plane is perpendicular to edge, and Y axis is matched with axis of osculating circle. Optional Vertex link defines where .
Plane is perpendicular to edge, and Y axis is matched with axis of osculating circle. Optional Vertex link defines where.


<!--T:65-->
<!--T:65-->
Line 269: Line 269:


<!--T:67-->
<!--T:67-->
Aligns XY plane to pass through three vertices .
Aligns XY plane to pass through three vertices.


<!--T:68-->
<!--T:68-->
Line 281: Line 281:


<!--T:70-->
<!--T:70-->
Aligns plane to pass through first two vertices, and perpendicular to plane that passes through 3 vertices .
Aligns plane to pass through first two vertices, and perpendicular to plane that passes through 3 vertices.


<!--T:71-->
<!--T:71-->
Line 293: Line 293:


<!--T:73-->
<!--T:73-->
Specialty mode for folding polyhedra. Select 4 edge in order: foldable edge, fold line, other fold line, other foldable edge. Plane will be aligned to folding the first edge. In the picture below, it is not required that both leafs to fold together be the same .
Specialty mode for folding polyhedra. Select 4 edge in order: foldable edge, fold line, other fold line, other foldable edge. Plane will be aligned to folding the first edge. In the picture below, it is not required that both leafs to fold together be the same.


<!--T:74-->
<!--T:74-->
Line 299: Line 299:
: Line, Line, Line, Line
: Line, Line, Line, Line
: [[File:Attacher_mode_Folding.png| 250px]]
: [[File:Attacher_mode_Folding.png| 250px]]



==== Inertia 2-3==== <!--T:75-->
==== Inertia 2-3==== <!--T:75-->


<!--T:76-->
<!--T:76-->
Object will be attached to a plane passing through second and third principal axes of inertia (passes through center of mass) .
Object will be attached to a plane passing through second and third principal axes of inertia (passes through center of mass).


<!--T:77-->
<!--T:77-->
Line 316: Line 315:


<!--T:79-->
<!--T:79-->
Attachment Offset is used to apply a linear or rotary offset from the referenced object. That means the offsets are relative to the ''local'' coordinate system, not to the global. It becomes active when an attachment mode other than ''Deactivated'' has been selected .
Attachment Offset is used to apply a linear or rotary offset from the referenced object. That means the offsets are relative to the ''local'' coordinate system, not to the global. It becomes active when an attachment mode other than ''Deactivated'' has been selected.


<!--T:80-->
<!--T:80-->
* '''X''': sets an offset distance in the X axis of the reference object .
* '''X''': sets an offset distance in the X axis of the reference object.


<!--T:81-->
<!--T:81-->
* '''Y''': sets an offset distance in the Y axis of the reference object .
* '''Y''': sets an offset distance in the Y axis of the reference object.


<!--T:82-->
<!--T:82-->
Line 328: Line 327:


<!--T:83-->
<!--T:83-->
* '''Yaw''': rotates the attached object along the reference object's Z axis .
* '''Yaw''': rotates the attached object along the reference object's Z axis.


<!--T:84-->
<!--T:84-->
* '''Pitch''': rotates the attached object along the reference object's Y axis .
* '''Pitch''': rotates the attached object along the reference object's Y axis.


<!--T:85-->
<!--T:85-->
* '''Roll''': rotates the attached object along the reference object's X axis .
* '''Roll''': rotates the attached object along the reference object's X axis.


<!--T:86-->
<!--T:86-->
* '''Flip sides''': if checked, the attached object is reversed from its XY plane .
* '''Flip sides''': if checked, the attached object is reversed from its XY plane.


=== Limitations=== <!--T:87-->
=== Limitations=== <!--T:87-->


<!--T:88-->
<!--T:88-->
* [[Std Part|Part]] and [[PartDesign Body|Body]] containers are not supported. While it's possible to use Attachment to align them, the attachment won't be parametrically linked .
* [[Std_Part|Part]] and [[PartDesign_Body|Body]] containers are not supported. While it's possible to use Attachment to align them, the attachment won't be parametrically linked.



<!--T:91-->
<!--T:91-->
{{Docnav
{{Docnav
|[[Part_CrossSections|CrossSections]]
|[[Part_Measure_Toggle_Delta|Toggle Delta]]
|[[Part_Measure_Menu|Part Measure Menu]]
|
|[[Part_Module|Part]]
|[[Part_Module|Part]]
|IconL=Part_Measure_Toggle_Delta.svg
|IconL=Part_CrossSections.svg
|IconR=Part_Measure_Menu.png
|IconC=Workbench_Part.svg
|IconC=Workbench_Part.svg
|IconR=
}}
}}



Revision as of 09:22, 9 December 2020

Part Attachment

Menu location
Part → Attachment...
Workbenches
Part, PartDesign
Default shortcut
None
Introduced in version
0.17
See also
Placement

Description

Attachment is a utility to attach an object to another one. The attached object is linked to the other object, which means that if the latter's placement is changed afterwards, the attached object will update to its new position.

Usage

  1. Select the object to be attached.
  2. Go to the Part → Attachment... menu.
    Note: when working in PartDesign and creating sketches, datum geometry or primitives, steps 1 and 2 are unnecessary: the Attachment dialogue is brought up automatically.
  3. Under Attachment parameters, Not attached can be read. The first button below is labeled Selecting… to indicate it is expecting a selection in the 3D view.
  4. Select a topology element on the object to attach to: vertex, edge or face/plane. Datum geometry from Part containers are also selectable.
  5. The first button's label now adopts the type of topology selected. In the white field to its right, the referenced object and its element is added. For example, if a face on a primitive cube is selected, the field will show Box:Face6.
  6. Select an Attachment mode in the list. The available modes are filtered by the selected references. Attached with mode <mode description> will be displayed under the Attachment header.
    For live information on the attachment modes, hover the mouse on top of one of the modes in the list for a tooltip to appear.
  7. Optionally, add up to 3 more references by pressing the Reference2, Reference3, and Reference4 buttons and repeating step 4.
  8. Optionally set an Attachment Offset.
  9. Press OK.

Options

Attachment mode

Deactivated

Default, no reference selected.

Normal to edge

Object is made perpendicular to edge. Optional vertex reference defines location.

Reference combinations
Edge
Edge, Vertex
Vertex, Edge

Align O-N-X

Matches object's origin with first referenced vertex, then aligns its normal and horizontal plane axis toward vertex/along line.

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

Align O-N-Y

Matches object's origin with first referenced vertex and aligns its normal and vertical plane axis toward vertex/along line.

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

Align O-X-Y

Matches object's origin with first referenced vertex and aligns its horizontal and vertical plane axes toward vertex/along line.

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

Align O-X-N

Matches object's origin with first referenced vertex and aligns its horizontal plane axis and normal toward vertex/along line.

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

Align O-Y-N

Matches object's origin with first referenced vertex and aligns its vertical plane axis and normal toward vertex/along line.

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

Align O-Y-X

Matches object's origin with first referenced vertex and aligns its vertical and horizontal plane axes toward vertex/along line.

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

Translate origin

Object's origin is aligned to matched vertex. Orientation is controlled by Placement property.

Reference combinations
Vertex.

Object's XY

Plane is aligned to XY local plane of linked object.

Reference combinations
Any, Conic.

Object's XZ

Plane is aligned to XZ local plane of linked object.

Reference combinations
Any, Conic.

Object's YZ

Plane is aligned to YZ local plane of linked object.

Reference combinations
Any, Conic

Plane face

Plane is aligned to coincide to planar face.

Reference combinations
Plane

Tangent to surface

Plane is made tangent to surface at vertex.

Reference combinations
Face, Vertex
Vertex, Face

Frenet NB

Plane is set to normal-binormal (NB) axes of Frenet-Serret coordinates at the point of the edge's curve that is closest to the vertex (or defined by MapPathParameter property, if vertex is not linked). The object's origin is translated to the vertex if the vertex is first, or kept at the curve if edge is first. This mode is similar to Normal to edge, except that X axis is well-defined.

Reference combinations
Curve
Curve, Vertex
Vertex, Curve

Frenet TN

Plane is set to tangent-normal (TN) axes of Frenet-Serret coordinates at the point of the edge's curve that is closest to the vertex (or defined by MapPathParameter property, if vertex is not linked). The origin of sketch is translated to the vertex if the vertex is first, or kept at the curve if edge is first. Effectively, if the curve is planar, the sketching plane is the plane of the curve.

Reference combinations
Curve
Curve, Vertex
Vertex, Curve

Frenet TB

Plane is set tangent-binormal (TB) axes of Frenet-Serret coordinates at the point of the edge's curve that is closest to the vertex (or defined by MapPathParameter property, if vertex is not linked). The origin of sketch is translated to the vertex if the vertex is first, or kept at the curve if edge is first.

Reference combinations
Curve
Curve, Vertex
Vertex, Curve

Concentric

Aligns to plane to osculating circle of an edge. Optional Vertex link defines where.

Reference combinations
Curve
Circle
Curve, Vertex
Circle, Vertex
Vertex, Curve
Vertex, Circle

Revolution Section

Plane is perpendicular to edge, and Y axis is matched with axis of osculating circle. Optional Vertex link defines where.

Reference combinations
Curve
Circle
Curve, Vertex
Circle, Vertex
Vertex, Curve
Vertex, Circle

Plane by 3 points

Aligns XY plane to pass through three vertices.

Reference combinations
Vertex, Vertex, Vertex
Line, Vertex
Vertex, Line
Line, Line

Normal to 3 points

Aligns plane to pass through first two vertices, and perpendicular to plane that passes through 3 vertices.

Reference combinations
Vertex, Vertex, Vertex
Line, Vertex
Vertex, Line
Line, Line

Folding

Specialty mode for folding polyhedra. Select 4 edge in order: foldable edge, fold line, other fold line, other foldable edge. Plane will be aligned to folding the first edge. In the picture below, it is not required that both leafs to fold together be the same.

Reference combinations
Line, Line, Line, Line

Inertia 2-3

Object will be attached to a plane passing through second and third principal axes of inertia (passes through center of mass).

Reference combinations
Any
Any, Any
Any, Any, Any
Any, Any, Any, Any

Attachment Offset

Attachment Offset is used to apply a linear or rotary offset from the referenced object. That means the offsets are relative to the local coordinate system, not to the global. It becomes active when an attachment mode other than Deactivated has been selected.

  • X: sets an offset distance in the X axis of the reference object.
  • Y: sets an offset distance in the Y axis of the reference object.
  • Z: sets an offset distance in the Z axis of the reference object. This coordinate is to be used for the frequent use case that you want to offset a sketch perpendicular to the plane.
  • Yaw: rotates the attached object along the reference object's Z axis.
  • Pitch: rotates the attached object along the reference object's Y axis.
  • Roll: rotates the attached object along the reference object's X axis.
  • Flip sides: if checked, the attached object is reversed from its XY plane.

Limitations

  • Part and Body containers are not supported. While it's possible to use Attachment to align them, the attachment won't be parametrically linked.