Core: GeoFeature: Add python binding to the new getGlobalPlacement()

This commit is contained in:
PaddleStroke
2024-09-30 10:45:22 +02:00
committed by Chris Hennes
parent 141a627b8f
commit 306183ce26
3 changed files with 40 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ Note: Not implemented.</UserDocu>
<Methode Name="getGlobalPlacement">
<Documentation>
<UserDocu>getGlobalPlacement() -> Base.Placement
Deprecated: This function does not handle Links correctly. Use getGlobalPlacementOf instead.
Returns the placement of the object in the global coordinate space, respecting all stacked
relationships.
@@ -37,6 +38,22 @@ Note: This function is not available during recompute, as there the placements o
can change after the execution of this object, rendering the result wrong.</UserDocu>
</Documentation>
</Methode>
<Methode Name="getGlobalPlacementOf" Static="true">
<Documentation>
<UserDocu>getGlobalPlacementOf(targetObj, rootObj, subname) -> Base.Placement
Selection example: obj = "part1" sub = "linkToPart2.LinkToBody.Pad.face1"
Global placement of Pad in this context :
getGlobalPlacementOf(pad, part1, "linkToPart2.LinkToBody.Pad.face1")
Global placement of linkToPart2 in this context :
getGlobalPlacementOf(linkToPart2, part1, "linkToPart2.LinkToBody.Pad.face1")
Returns the placement of the object in the global coordinate space, respecting all stacked
relationships.
</UserDocu>
</Documentation>
</Methode>
<Methode Name="getPropertyNameOfGeometry">
<Documentation>
<UserDocu>getPropertyNameOfGeometry() -> str or None