Std: Utwórz odnośnik względny

From FreeCAD Documentation
Revision as of 16:33, 19 April 2021 by Kaktus (talk | contribs) (Created page with "Std: Utwórz odnośnik względny")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎polski • ‎português do Brasil • ‎русский
Arrow-left.svg Previous: Std LinkMake.svg LinkMake

Std LinkMakeRelative.svg Std LinkMakeRelative

Menu location
Default shortcut
Introduced in version
See also
Std Part, Std Group, Std LinkMake


Std LinkMakeRelative.svg Std LinkMakeRelative creates an App Link (App::Link class), just like Std LinkMake.svg Std LinkMake, but it operates on selected subelements first, and sets the DANELink Transform to true.


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 Std LinkMakeRelative.svg Std LinkMakeRelative 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.

Std Link tree sublink example.png Std Link sublink example.png

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


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

In particular, DANELink Transform is set to true, so DANEPlacement becomes hidden, and instead DANELink Placement controls the position of the Link with respect to the position of DANELinked Object.


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)

Arrow-left.svg Previous: Std LinkMake.svg LinkMake