[Sketcher] add python command sketch.getGeoVertexIndex(int index) -- returns tuple (geoId, posId) of vertex at that index in the sketch. usage example: (geoId, posId) = App.ActiveDocument.Sketch.getGeoVertexIndex(int(Gui.Selection.getSelectionEx()[0].SubElementNames[0][6:])-1)
This commit is contained in:
committed by
abdullahtahiriyo
parent
71e1f7c331
commit
2bfc6301bc
@@ -178,6 +178,13 @@ If there is no such constraint an exception is raised.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getGeoVertexIndex" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
(geoId, posId) = getGeoVertexIndex(index) - retrieve the GeoId and PosId of a point in the sketch
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="getAxis" Const="true">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
|
||||
Reference in New Issue
Block a user