getGlobalPlacement of an App::LInk object

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

getGlobalPlacement of an App::LInk object

Post by easyw-fc »

The new Link merge has introduced the App:Link object.
Is there a way to get the GlobalPlacement of an App::LInk object?
For App::Part container there was the following code:

Code: Select all

plc = App.ActiveDocument.ActiveObject.getGlobalPlacement()
but this is not possible to be applied to the new App::Link object...

I would like to get the global placement of the CubeLinked in the attached document, using a python command(s).
GlobalPlacement.FCStd
(15.33 KiB) Downloaded 21 times
-
cube-linked.png
cube-linked.png (102.83 KiB) Viewed 409 times
Post Reply