How does the macro syntax work? I'm trying to extract variables from element properties
As part of a macro, I'm trying to work out the approximate perimiter of a selected ellipse.
I'm falling down right at the start because I don't understand how to extract the information needed to do the working out.
In my macro, the user selects an ellipse. I then want to extract various bits of information from the ellipse
properties in order to work out the approximate perimiter.
Below is an extract of what I've done so far - it is not correct though, as it doesn't work!
macro cylinder_properties
define ellipse_pt as element
define start_angle as string
define me as MouseEvent
me = Wait MouseClick
ellipse_pt = me.ptMMGrid
Select at pt.x pt.y
start_angle = ellipse_pt.ellipse.segments[1].startAngle
#TO TEST IT I JUST WANTED TO DISPLAY ON SCREEN THE VALUE IT'S FOUND FOR start_angle BUT IT GIVES A SYNTAX ERROR
message 'ellipse segment start angle is: ' + start_angle
end macro
I've not figured out yet how you extract data using the language, so can anyone help me?
I find that the lack of any kind of guide to the syntax of the macro language makes things very difficult - why is it so poorly documented? I'm used to having a 'trace' function that allows you to follow what a macro does and pinpoints
where errors occur - is there anything like this in Isodraw?
Any help would be much appreciated.

