Skip to main content
May 7, 2014 4:40 PM UTC
Solved

IsoDraw 7.3 Macro?

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

Keith

May 7, 2014 5:26 PM UTC

Your variables have not been declared. You'll need to declare Compare_Left and the other three.

9 replies

May 7, 2014 4:58 PM UTC

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?

khowardAuthor
May 7, 2014 5:03 PM UTC

Hi Trevor,

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.

Keith

May 7, 2014 5:14 PM UTC

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.

SubMacro Find_Extent

#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

End SubMacro