Std LinkMakeRelative/de: Difference between revisions

From FreeCAD Documentation
No edit summary
(Created page with "{{Button|16px Std UnterverknüpfungErstellen}} erstellt ein App-Link-Objekt ({{incode|App::Link}} cl...")
Line 21: Line 21:
== Beschreibung ==
== Beschreibung ==


{{Button|[[File:Std_LinkMakeRelative.svg|16px]] [[Std_LinkMakeRelative|Std LinkMakeRelative]]}} creates an [[App_Link|App Link]] ({{incode|App::Link}} class), just like {{Button|[[File:Std_LinkMake.svg|16px]] [[Std_LinkMake|Std LinkMake]]}}, but it operates on selected subelements first, and sets the {{PropertyData|Link Transform}} to {{TRUE}}.
{{Button|[[File:Std_LinkMakeRelative.svg|16px]] [[Std_LinkMakeRelative/de|Std UnterverknüpfungErstellen]]}} erstellt ein [[App_Link|App-Link]]-Objekt ({{incode|App::Link}} class), so wie {{Button|[[File:Std_LinkMake.svg|16px]] [[Std_LinkMake/de|Std VerknüpfungErstellen]]}}, wird aber in erster Linie auf ausgewählte Unterelemente angewendet und setzt die {{PropertyData/de|Link Transform}} auf {{TRUE}}.


== Anwendung ==
== Anwendung ==

Revision as of 13:46, 20 July 2022

Std UnterverknüpfungErstellen

Menüeintrag
Kein
Arbeitsbereich
Alle
Standardtastenkürzel
Keiner
Eingeführt in Version
0.19
Siehe auch
Std Part, Std Gruppe, Std VerknüpfungErstellen

Beschreibung

Std UnterverknüpfungErstellen erstellt ein App-Link-Objekt (App::Link class), so wie Std VerknüpfungErstellen, wird aber in erster Linie auf ausgewählte Unterelemente angewendet und setzt die Daten-EigenschaftLink Transform auf true.

Anwendung

With selection:

  1. Select a subelement in the 3D view, this means a vertex, edge, or face, or any combination of these. These subelements must belong to a single object.
  2. Press the Make sub-link button. The produced object has the same icon as the original object, but has two arrow overlays indicating it is a relative Link.

Without selection:

  • If no object is selected, this command does nothing.
  • If an object is selected in the tree view only, but no subelement is selected in the 3D view, the command does nothing either.

Original body, and three Links created from the subelements of it, including edges and faces.

Eigenschaften

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

In particular, DatenLink Transform is set to true, so DatenPlacement becomes hidden, and instead DatenLink Placement controls the position of the Link with respect to the position of DatenLinked Object.

Skripten

See Std LinkMake for the general information.

An App Link is created with the addObject() method of the document. To define a relative link, its setLink method is used to pick the source object, and one or more of its subelements. Then the LinkTransform attribute is set to True.

import FreeCAD as App

doc = App.newDocument()
body = App.ActiveDocument.addObject("Part::Box", "Box")

obj = App.ActiveDocument.addObject("App::Link", "Link")
obj.setLink(body, '', ['Edge1', 'Edge6', 'Edge7', 'Edge10', 'Face2', 'Face3'])
obj.LinkTransform = True
obj.LinkPlacement.Base = App.Vector(20, 20, 0)
App.ActiveDocument.recompute()