Hi, fairly new to CorelDraw, learning it to use with a new laser cutter. I have found myself using it for all sorts of technical drawing tasks though that have nothing to do with the laser cutter. I went searching for a way to calculate the area of complex shapes and found and installed GetAreaX7.gms from this thread (thank you uploader):
https://community.coreldraw.com/talk/coreldraw_graphics_suite_x8/f/coreldraw-graphics-suite-x8/53163/calculate-square-footage
The problem I have though is that I often have to draw with a scale applied and the area calculator ignores the scale. Does anyone know how to modify the script to apply the scale used on the drawing file? The calculation is simple, just area*scale^2. I just don't know how to modify the script to fetch the scale, also don't know what might be returned if no scale is applied (1 or 0?).
Thanks!
onefish said:The problem I have though is that I often have to draw with a scale applied and the area calculator ignores the scale. Does anyone know how to modify the script to apply the scale used on the drawing file?
I don't have a lot of experience with using that macro, but I looked at it a little bit, and it seems to me that the author has written it to be able to use the document scale.
If Use Document's Scale is checked, then I think it should be using the document scale, should be displaying that scale in the textboxes in that frame of the user form, and should be using it when displaying the area.
If it's not working for you, then we would need to get into the details of exactly when and how you are seeing it not working.
OMG, you are so right. I had the box unticked as I wanted the result in m2 not mm. Thank you Eskimo!
Good deal!
For what it's worth, a lot of my own macros - Eskimo's Macros and More - take "WorldScale" into account.
Thanks for the link Eskimo, you've put a lot of work into making these available. I've downloaded #11: "Space Between", as I can see it being handy for setting out multiple small items for laser cutting. Always try to keep 2mm between parts.
.... a bit off topic, but have you ever come across a macro to show centre of gravity/mass (2d only)?
onefish said:.... a bit off topic, but have you ever come across a macro to show centre of gravity/mass (2d only)?
I have not happened to come across one for CorelDRAW.
However, I've never gone looking for such a macro, either.