Std LinkReplace: Difference between revisions

From FreeCAD Documentation
(→‎Usage: Improved description)
Line 20: Line 20:
== Usage ==
== Usage ==


# Make sure you have one object that is inside another one, for example, a {{Button|[[File:Part_Box.svg|16px]] [[Part_Box|Part Box]]}} and a {{Button|[[File:Part_Cylinder.svg|16px]] [[Part_Cylinder|Part Cylinder]]}} inside a {{Button|[[File:Part_Fuse.svg|16px]] [[Part_Union|Part Union]]}}.
# Make sure you have one object that is inside another one. For example, consider that a {{Button|[[File:Part_Fuse.svg|16px]] [[Part_Union|Part Fusion]]}} was used with two previously created objects, a {{Button|[[File:Part_Sphere.svg|16px]] [[Part_Sphere|Part Sphere]]}} and a {{Button|[[File:Part_Cylinder.svg|16px]] [[Part_Cylinder|Part Cylinder]]}}.
# Select the {{Button|[[File:Part_Box.svg|16px]] [[Part_Box|Part Box]]}}.
# Select the [[File:Tree_Part_Sphere_Parametric.svg|16px]] [[Part_Sphere|Sphere]] in the [[tree_view|tree view]].
# Press {{Button|[[File:Std_LinkReplace.svg|16px]] [[Std_LinkReplace|Std LinkReplace]]}}.
# Press {{Button|[[File:Std_LinkReplace.svg|16px]] [[Std_LinkReplace|Std LinkReplace]]}}.


The original {{Button|[[File:Part_Box.svg|16px]] [[Part_Box|Part Box]]}} must now be outside the {{Button|[[File:Part_Fuse.svg|16px]] [[Part_Union|Part Union]]}}, and inside there must be a Link instead.
The original [[File:Tree_Part_Sphere_Parametric.svg|16px]] [[Part_Sphere|Sphere]] must now be outside the {{Button|[[File:Part_Fuse.svg|16px]] [[Part_Union|Part Fusion]]}}, and inside there must be a Link instead (a small overlay arrow is shown in the icon).


</translate>
</translate>
{{Code|code=
{{Code|code=
<nowiki>
<nowiki>
Sphere
Cube
Fusion
Fusion
|-- Cube001 (Link)
|-- Sphere001 (Link)
|-- Cylinder
|-- Cylinder
</nowiki>
</nowiki>
Line 37: Line 37:
<translate>
<translate>


This can also be done with objects contained inside {{button|[[File:Std_Part.svg|16px]] [[Std_Part|Std Parts]]}}.
This can also be done with simple objects contained inside {{button|[[File:Std_Part.svg|16px]] [[Std_Part|Std Parts]]}}.


</translate>
</translate>

Revision as of 04:58, 12 September 2020

Std LinkReplace

Menu location
None
Workbenches
All
Default shortcut
None
Introduced in version
0.19
See also
Std LinkMake, Std LinkMakeRelative, Std LinkUnlink

Description

Std LinkReplace replaces an object that is inside another for an App Link version of the former.

This operation acts on the "children" of a "parent" object as seen in the tree view. For example, given two objects (A and B) that participate in a Part boolean operation, say, C = A + B, the A object can be replaced by a Link, so that C = A_link + B.

This operation can be done to replace nested objects that are in a complex assembly for a Link copy, which may be more efficient if that nested object is used many times in different sub-assemblies. To create a generic Link see Std LinkMake.

Usage

  1. Make sure you have one object that is inside another one. For example, consider that a Part Fusion was used with two previously created objects, a Part Sphere and a Part Cylinder.
  2. Select the Sphere in the tree view.
  3. Press Std LinkReplace.

The original Sphere must now be outside the Part Fusion, and inside there must be a Link instead (a small overlay arrow is shown in the icon).

Sphere
Fusion
  |-- Sphere001 (Link)
  |-- Cylinder

This can also be done with simple objects contained inside Std Parts.

Cone
Part
  |-- Cone001 (Link)

Properties

This command creates a new App Link; its properties are described in Std LinkMake.