Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hello,
Do you know how I can find the bottom right corner position of all the elements of a CGM illustration in order to add a right alignment text just below the drawing ?
Thank you and nice day to all
Solved! Go to Solution.
Here are copies of the macro we use. It takes the filename of the idr and places it in the bottom right corner. The second macro does that same thing only it adds a white box under the text.
Here are copies of the macro we use. It takes the filename of the idr and places it in the bottom right corner. The second macro does that same thing only it adds a white box under the text.
Thank you very much for this clear and precise explanation !
It helps me understand things better, I'm just starting with Isodraw macros...
Unfortunately this does not correspond to my data, because the illustrations that I have to process are not "full page"
I was able to get around this by selecting the elements and working relative to the equivalent rectangle
Anyway, thank you very much for your help and for this quick response!!!
Have a nice day
DEFINE nomdoc AS string
DEFINE myElem as Element
nomdoc = stripExt(activeDoc.name)
select all
Group Selection
myElem = activeDoc.firstSelectedElement
#MESSAGE myElem.box.top
#MESSAGE myElem.box.left
#MESSAGE myElem.box.bottom
#MESSAGE myElem.box.right
Select none
TEXT FONT "arial"
TEXT SIZE 6
TEXT FACE NORMAL
TEXT ALIGN RIGHT
CREATE TEXT (myElem.box.right - 1 ) (myElem.box.bottom - 10) nomdoc