Thanks, that worked. I have one other question. Do you have a script that calculates the percent area based on the size of the window I can draw. That is what ever size I draw it calculates the area of the polygons divided by the area of the box I draw.
I can reproduce the problem. It seems to be related to the build which is based on Ruby 1.9 and MSVC instead of 1.8 and MinGW. I'll try to trace down the problem and provide a fix in the next version 0.21.1.
Comments
Hi sedborg,
What is the message and what line number does the error appear in?
Best regards,
Matthias
The message the appears is when I boot the program with the rba file is as follows:
Ruby error: 'C:/Data/Downloads/compute_area.rbm:1: syntax error, unexpected $undefined, expecting '}'
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
^' (SyntaxError)
Then the program just crashes.
Thanks
Scott E.
Hi Scott,
it looks like your editor pasted the RTF content, not just the code text.
I provided a download link for the code here. This one should work.
Best regards,
Matthias
Thanks, that worked. I have one other question. Do you have a script that calculates the percent area based on the size of the window I can draw. That is what ever size I draw it calculates the area of the polygons divided by the area of the box I draw.
Thanks
Scott E.
Hi Scott,
with "area of the box" do you mean the area of the display window?
Best regards,
Matthias
Ok, I assume that's the bounding box of the cell then.
If that is correct, this is a simple extension for the script: just replace line 41 by a calculation of the box area and the division by the latter:
I provided a download link for the new code here.
Best regards,
Matthias
Thanks for the update this works great.
S.E.
Hi sedborg,
I can reproduce the problem. It seems to be related to the build which is based on Ruby 1.9 and MSVC instead of 1.8 and MinGW. I'll try to trace down the problem and provide a fix in the next version 0.21.1.
Best regards,
Matthias