getGlobalPlacement of an App::LInk object

Need help, or want to share a macro? Post here!
User avatar
easyw-fc
Posts: 2782
Joined: Thu Jul 09, 2015 9:34 am

getGlobalPlacement of an App::LInk object

Postby easyw-fc » Wed Dec 04, 2019 2:31 pm

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 9 times
-
cube-linked.png
cube-linked.png (102.83 KiB) Viewed 142 times