How to move a probe/label with python code
SchluppIng
Member Posts: 7
**
in Structures
Hi,
I would like to place a label that I have created next to the structure so that the structure is visible. If I generate them automatically, the labels cover the structure and they cannot be moved with the label selection. Is there a solution for this?
Code:
labelManager = Graphics.LabelManager
resultObject=ExtAPI.DataModel.GetObjectsByName('Outside SCF overview')[0]
for scf in scfCircWeldList:
lbl = labelManager.CreateLabel(resultObject)
lbl.Scoping.Node = scf[0] #Point
lbl.Note = "SCF= " + str(scf[2]) + ", CW@ -" + str(scf[1])
lbl.Color = Ansys.ACT.Common.Graphics.Color(red=0, green=255, blue=255,
alpha=50)
Tagged:
0
Answers
-
@AKD-Scripting-Team - can someone assist here?
0 -
Just in case the tag didn't work last team; pinging @AKD-Scripting-Team again
0