Core: Add getPlacementOf replacing previous getGlobalPlacement logic. (#26059)
* Core: Add getPlacementOf replacing previous getGlobalPlacement logic. * Update src/App/DocumentObject.cpp Co-authored-by: Kacper Donat <kadet1090@gmail.com> * Update DocumentObject.cpp * Fix error when called from python with targetObj == None --------- Co-authored-by: Kacper Donat <kadet1090@gmail.com>
This commit is contained in:
@@ -325,3 +325,10 @@ class DocumentObject(ExtensionContainer):
|
||||
Return true if the object is part of a document, false otherwise.
|
||||
"""
|
||||
...
|
||||
|
||||
def getPlacementOf(self, subname: str, target: DocumentObject = None, /) -> Any:
|
||||
"""
|
||||
Return the placement of the sub-object relative to the link object.
|
||||
getPlacementOf(subname, [targetObj]) -> Base.Placement
|
||||
"""
|
||||
...
|
||||
Reference in New Issue
Block a user