cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

IsoDraw macro change_Text

swillis-2
1-Newbie

IsoDraw macro change_Text

Please can some one help..

I have this.........

macro ChangeText

select if text contains 'abc'

change text to "abcdefgh" <------------ I need the syntax to make this work

end macro

I have tried using the record macro function within isodraw but it uses the coordinates of the text that is to be changed

thanks in advance

###########################################################################################

I fixed it with this piece of programming I found in this forum................

macro ChangeText


DEFINE el as Element

Select if text contains 'abc'

IF (exists(activeDoc.firstSelectedElement)) THEN

el = activeDoc.firstSelectedElement

WHILE (exists(el))

IF (el.type="Text") THEN


el.text.string = stripExt(activeDoc.Name) <------------------- The important bit!!

END IF

el = el.nextSelectedElement

END WHILE

END IF

end macro

0 REPLIES 0
Top Tags