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

IsoDraw macro issue - help!

$
0
0

Hey up everyone - I'm hoping someone may be able to shed some light on a couple of problems I've run into...


1.  I"m trying to develop a macro that will correctly format a batch of illustrations. So far everything's going to plan, but what I thought would be the easiest bit is proving the hardest. I want to use the 'fit to page' function, but I can't record it (the function is greyed out) and I can't find any reference in the help manual to script it either. Anyone done this before?  After some digging it looks like this may only be a function available in 7.3 - I have 7.2, can anyone confirm?


2.  I'm also trying to select  any text which is less than 7pt. I have 2 different sizes on the illustration so I can't use the 'font_size is not' function. 

I've been trying to develop a macro to select the smaller sized text and then lock it using the box.top and box.bottom parameters, but it fails to select the smaller size text, just the last piece of text on the illustration. It goes like this:


Macro Select text size

# recorded with Arbortext IsoDraw 7.2

DEFINE myElem AS Element

Select IF Type is equal to "Text"

myElem = activeDoc.firstSelectedElement

IF (myElem.box.top - myElem.box.bottom is smaller than 3) THEN

myElem.locked = 1

myElem = myElem.nextSelectedElement

END IF

End Macro


Anyone have any ideas why this doesn't work? In theory it should take the top box parameter and subtract the bottom box parameter of the first selected text element and if it's less than 3 (mm I'm guessing) it should lock it and move on to the next text element. All I get is that last text element locked (after a fashion) no matter what size it is.


Thanks for any ideas you may have.


Cheers


Rob


Viewing all articles
Browse latest Browse all 1645

Trending Articles



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