Ok gang I could have sworn I had these two (2) macros working before, but I am having no joy now.
The macros intention is to determine the size of a graphic and then display that information. This is used so I can get "CGM" graphic sizes to pass on to our "SGML" programmers.
Any and all help would be greatly appreciated. I would also like to use this as a starting point to develop a macro to scale a graphic up or down to fit to a particular page size.
I am using IsoDraw 7.3 F000
Solved! Go to Solution.
What errors are you seeing? Also, looks like not all the variables are declared in these macros. I'm assuming you're using global variables called out elsewhere. Is that correct?
This is the first error I see when I try to run the macro:
It is an "Unkown macro command"
If I am not mistaken the variables are all local.
Focusing on Find_Extent only for the moment. The error your seeing does appear to be an odd line in the code. I'd suggest using the follow in its place. I'm guessing this is the original code as all your variables match up.
#Date of creation: 9-3-08
#Creates object info for the group and determines the extent.
Create object_info ActiveDoc.firstSelectedElement
ActiveDoc.firstSelectedElement.info.view_context.type = "extent"
Compare_Left = ActiveDoc.firstSelectedElement.info.view_context.rectangle.left
Compare_Right = ActiveDoc.firstSelectedElement.info.view_context.rectangle.right
Compare_Top = ActiveDoc.firstSelectedElement.info.view_context.rectangle.top
Compare_Bottom = ActiveDoc.firstSelectedElement.info.view_context.rectangle.bottom