Quantcast
Channel: PTC Community : All Content - Arbortext
Viewing all articles
Browse latest Browse all 1645

IsoDraw macro change_Text

$
0
0

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


Viewing all articles
Browse latest Browse all 1645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>