Skip to main content
1-Visitor
January 16, 2013
Solved

Macro to change case of letters in IsoDraw 7.0

  • January 16, 2013
  • 1 reply
  • 3256 views

HI,

I am Rahul KULKARNI, working as a Design Engineer. We work on Technical Illustrations. I am using IsoDraw 7.0 to create illustrations.

I would like to know whether there is any Macro exsisting by which we can change case of text. Normally, I copy the text matter into Word and by doing ctrl+shift+A change case and then copy-paste it in IsoDraw.

Can somebody help me to create Macro. I am new to this stuff. I would really appreciate your efforts.

Thanks in advance.

Regards,

Rahul KULKARNI

Best answer by bgraffmann

Hi Rahul,

have a look at this simple IML macro:

MACRO UpperCaseSelectedText

DEFINE s as String

DEFINE el as Element

IF (exists(activeDoc.firstSelectedElement)) THEN

el = activeDoc.firstSelectedElement

WHILE (exists(el))

IF (el.type="Text") THEN

s = upper(el.text.string)

el.text.string = s

END IF

el = el.nextSelectedElement

END WHILE

END IF

END MACRO

It loops all the selected text elements and changes them to upper case.

But beware, in contrast to Word is not a style change and thus cannot be reverted.

I kept this simple, so it is not drilling down into groups and changing the text elements inside.

Finally, of course this will not work for texts, which have been converted to outlines.

1 reply

1-Visitor
January 16, 2013

Hi Rahul,

have a look at this simple IML macro:

MACRO UpperCaseSelectedText

DEFINE s as String

DEFINE el as Element

IF (exists(activeDoc.firstSelectedElement)) THEN

el = activeDoc.firstSelectedElement

WHILE (exists(el))

IF (el.type="Text") THEN

s = upper(el.text.string)

el.text.string = s

END IF

el = el.nextSelectedElement

END WHILE

END IF

END MACRO

It loops all the selected text elements and changes them to upper case.

But beware, in contrast to Word is not a style change and thus cannot be reverted.

I kept this simple, so it is not drilling down into groups and changing the text elements inside.

Finally, of course this will not work for texts, which have been converted to outlines.

1-Visitor
January 16, 2013

Hi bgraffmann,

I am really appreciating the effort you have put to help me.

Thanks a lot. Actually this was the solution I was looking for.

Just one small glitch, as you said we cannot revert the change back.

So that has me to take back-up of file everytime I run the Macro...:)

Will work out that part...

Regards

Rahul

1-Visitor
January 16, 2013

Rahul,

you could use a nice little feature of IsoDraw for that:

1) Export your Illustration as simple text file

2) Run your macro

3) Simply open the saved text file "on top" to restore all text elements

Regards,

Benno