Epoxy Volume Calculator

This forum is for users to submit their own gadgets to the community
User avatar
Adrian
Vectric Archimage
Posts: 15288
Joined: Thu Nov 23, 2006 2:19 pm
Model of CNC Machine: ShopBot PRS Alpha 96x48
Location: Surrey, UK

Re: Epoxy Volume Calculator

Post by Adrian »

tgunr wrote:
Sun Oct 22, 2023 2:38 pm
Would be nice to have only one version to download. Or put the most recent one at the top.
That's not possible with the way the forum works. You only have a few minutes to edit a post and after that it's locked. For gadget threads where the gadget is attached rather than linked to on another site you need to start at the end of the thread and go backwards to get the latest version,

fig.11
Posts: 29
Joined: Sat Aug 28, 2021 2:21 am
Model of CNC Machine: CanCam C1-44OT
Location: Ontario, Canada

Re: Epoxy Volume Calculator

Post by fig.11 »

Each time I try to use this gadget, I get this error:

Warning: Error while calling handler in the script
OnLuaButton_ButtonCalculate
Error:Script: ... 11.5\Epoxy_Volume_Calculator\Epoxy_Volume_Calculator.lua
Line: 61
(global CalculateLayerSize)
... 11.5\Epoxy_Volume_Calculator\Epoxy_Volume_Calculator.lua:61: attempt to index local 'contour' (a nil value)


When I click the button to create the epoxy pour worksheet, it does the same thing. I've tried installing a previous version and it works fine. That is to say, that I don't "uninstall" the previous version simply because I don't know how. I guess I overwrite (?) the previous version. When I revert back to the latest version, the error appears again. How can I fix this so that I can use this gadget?

User avatar
adze_cnc
Vectric Wizard
Posts: 5107
Joined: Sat Jul 27, 2013 10:08 pm
Model of CNC Machine: AXYZ 4008 (VCarve Pro v9.519)
Location: Vancouver, BC, Canada

Re: Epoxy Volume Calculator

Post by adze_cnc »

Do you have sample file that fails that you could post here?

There is a post from back in March above that has the same error. The difference between the v1.1 that was said to work and this one is that this one has logic to check for and exclude islands within larger shapes.

I also notice that the last post the author made on this board was in February 2022.

There is a way to force the code to ignore the error and continue if you are confident in your ability to edit and save a text file. The results of the gadget's run if this change is made should be considered possibly inaccurate.

The file is "Epoxy_Volume_Calculator.lua" and the line to change is number 13:

Code: Select all

require "strict"
to be changed to:

Code: Select all

-- require "strict"

fig.11
Posts: 29
Joined: Sat Aug 28, 2021 2:21 am
Model of CNC Machine: CanCam C1-44OT
Location: Ontario, Canada

Re: Epoxy Volume Calculator

Post by fig.11 »

Hi Adze
My apologies for the very tardy response. Life has been getting in the way. I am mildly confident with editing files if I know where they are.
The layer I have been selecting to calculate is actually a vector of a lake for the cottage and there are some islands inside the shoreline vector. I moved them out of the way and the gadget works. Where do I find the file to change the line as you have posted?

User avatar
adze_cnc
Vectric Wizard
Posts: 5107
Joined: Sat Jul 27, 2013 10:08 pm
Model of CNC Machine: AXYZ 4008 (VCarve Pro v9.519)
Location: Vancouver, BC, Canada

Re: Epoxy Volume Calculator

Post by adze_cnc »

The location for the user installed gadgets is:

Code: Select all

C:\Users\Public\Documents\Vectric Files\Gadgets
and under that your software name (VCarve, Aspire, Cut2D) and version number.

For example:

Code: Select all

VCarve Pro V9.5
Within that will be the

Code: Select all

Epoxy_Volume_Calculator
directory. Inside that is a file

Code: Select all

Epoxy_Volume_Calculator.lua
If your windows explorer is set to hide file extensions you'll see two files with the same name (bad Windows). The Lua file is about 15,510 bytes in size.

CaptCJReed@aol.com
Posts: 1
Joined: Mon May 22, 2023 10:29 pm
Model of CNC Machine: Foxalien CL-6560
Location: Lakeland, Florida

Re: Epoxy Volume Calculator

Post by CaptCJReed@aol.com »

When I try to run the gadget I get an error...."WARNING: Error while calling handler in the script"
Below that it says....."OnLuaButton_ButtonCalculate"

I am running Windows 11.

Also, I use ZDSpoxy and it says to mix by volume at 1:1 ratio. How can I convert to weight for use in your calculator?

Thanks

dgpropst
Posts: 1
Joined: Sun Jul 25, 2021 3:01 am
Model of CNC Machine: Shapoko

Re: Epoxy Volume Calculator

Post by dgpropst »

I am getting an error when i click on calculate
Image of error
Image of error

Beltramidave
Vectric Wizard
Posts: 536
Joined: Thu May 14, 2015 12:23 am
Model of CNC Machine: FLA Saturn 4x4 / 7W & 60W lasers
Location: Bemidji, MN
Contact:

Re: Epoxy Volume Calculator

Post by Beltramidave »

Trying to use this gadget with V12.009. Is there an update needed as I get this error message when trying to calculate.
V12.009 error.PNG
Dave
https://lakesedgewoodcraft.com/

User avatar
adze_cnc
Vectric Wizard
Posts: 5107
Joined: Sat Jul 27, 2013 10:08 pm
Model of CNC Machine: AXYZ 4008 (VCarve Pro v9.519)
Location: Vancouver, BC, Canada

Re: Epoxy Volume Calculator

Post by adze_cnc »

I can replicate that error when I have vectors grouped together. Fixing it is a different matter:
 
Ungrouped good
Ungrouped good
 
Grouped (inner two squares) bad
Grouped (inner two squares) bad

martindg
Vectric Craftsman
Posts: 124
Joined: Thu Nov 28, 2019 6:12 am
Model of CNC Machine: Onefinity X-50 Woodworker
Location: Big Creek, CA

Re: Epoxy Volume Calculator

Post by martindg »

I edited the gadget to try to eliminate the error. It is now working for me but I have not tested it to determine if it is bulletproof. Thus, this comes with no guarantees. Here is the file for the gadget. Change the '.zip' extension to '.vgadget' and you should be able to install it using the gadget install command.

Doug
Attachments
Epoxy_Volume_Calculator.zip
(11.63 KiB) Downloaded 147 times

User avatar
adze_cnc
Vectric Wizard
Posts: 5107
Joined: Sat Jul 27, 2013 10:08 pm
Model of CNC Machine: AXYZ 4008 (VCarve Pro v9.519)
Location: Vancouver, BC, Canada

Re: Epoxy Volume Calculator

Post by adze_cnc »

The version just posted here is based upon an earlier version of the code (v1.3).

The one posted here is listed as being v1.4 and is significantly different v1.3. Confusingly, even though it is "v1.4" the version number internally still lists it as "v1.3".

Beltramidave
Vectric Wizard
Posts: 536
Joined: Thu May 14, 2015 12:23 am
Model of CNC Machine: FLA Saturn 4x4 / 7W & 60W lasers
Location: Bemidji, MN
Contact:

Re: Epoxy Volume Calculator

Post by Beltramidave »

This appears to be working now, without any errors. Thank you!
Dave
https://lakesedgewoodcraft.com/

User avatar
adze_cnc
Vectric Wizard
Posts: 5107
Joined: Sat Jul 27, 2013 10:08 pm
Model of CNC Machine: AXYZ 4008 (VCarve Pro v9.519)
Location: Vancouver, BC, Canada

Re: Epoxy Volume Calculator

Post by adze_cnc »

It may not be getting errors for grouped objects but I don't think it works.

Version 1.3 as posted the original author: jlavintx63 works:
 
1-v1_3 works.png
 
Version 1.4 (internally mislabeled as v1.3) as posted the original author: jlavintx63 works:
 
2-v1_4 works.png
 
martindg's mods fails:
 
2-martindg fails.png
 
Attached is my test file.
Attachments
epoxy test.crv
(27 KiB) Downloaded 105 times

martindg
Vectric Craftsman
Posts: 124
Joined: Thu Nov 28, 2019 6:12 am
Model of CNC Machine: Onefinity X-50 Woodworker
Location: Big Creek, CA

Re: Epoxy Volume Calculator

Post by martindg »

To be sure all I'm trying to do is bandage this gadget to make it work for me. I stayed with version 1.3 as I had previously made some other small tweaks and I didn't see that version 1.4 added anything significant enough to bother with tweaking it. I have made another small tweak to accommodate the use case that adze has presented. Again, I'm just trying to get this to work for me and I make no claims that it will met all use cases.
Attachments
Epoxy_Volume_Calculator.zip
(11.65 KiB) Downloaded 107 times

Post Reply