Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am looping thru the text areas in a sketch, and replacing the text with new values.
I would like to also be able to reposition the text area in the sketch ( will be conditional using an 'if' statement depending on the new text value )
How do I reposition / move the text area ?
unitMgr: adsk.core.UnitsManager = design.unitsManager
txt: adsk.fusion.SketchText
values = [Ud1,Ud2,Ud3,Ud4,Ud5,Ud6]
for txt, value in zip(skt1.sketchTexts, values[0:]):
NewTxtValue = '------'
if txt.text == 'DATA1': NewTxtValue = values[0]
if txt.text == 'DATA2': NewTxtValue = values[1]
# now move the current active text area up on the Y axis +0.2
# ???
Solved! Go to Solution.