How to move a probe/label with python code

SchluppIng
SchluppIng Member Posts: 7
First Comment Name Dropper
**

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)

Answers