Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
60f289931a
This basically saves the file, groups everything, finds the extent, closes the file without saving, and then reopens the version prior to the original macro. It's a dirty way of doing it, but it works. 2) You can loop through each object and basically have a set of variables that represent top/bottom/left/right. Each time you check the extent of an object you could compare the extent against these variables. Note that this could take quite a while depending on complexity of the file. Question: Why are you attempting to bring the CGM into Word?
57451a6833
I) Repeat loop for next layer. You keep your layers separate, avoid closing the file and reopening, and it is faster than checking each object.
Hi Trevor,
I am new to IsoDraw and their Macro language. How would you get the data out of the macro you wrote? I would like to get the values for the extents for a group of elements.
Keith
Use the following set as a sample. Place ism in your macro folder and then open the iso file. Run the Center_Art macro. You'll see the finished result.
Now, start again. This time go to Macros | Macros | Debug Macro..
This will allow you to follow through each step of the macro. You'll see that Compare_ set of variables is what brings each layers X & Y coordinates back. The Final_ set of variables is what tells you the furthest set of points overall.
Note to everyone that this has been updated to work with 7.1. If you have the old version, and have had problems, change the initial value of Final_Left and Final_Right to nine 9's. It appears that 7.1 does not support the ten digits previously supported.