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,
Epoxy Volume Calculator
- 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
-
- Posts: 29
- Joined: Sat Aug 28, 2021 2:21 am
- Model of CNC Machine: CanCam C1-44OT
- Location: Ontario, Canada
Re: Epoxy Volume Calculator
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?
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?
- 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
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:
to be changed to:
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"
Code: Select all
-- require "strict"
-
- Posts: 29
- Joined: Sat Aug 28, 2021 2:21 am
- Model of CNC Machine: CanCam C1-44OT
- Location: Ontario, Canada
Re: Epoxy Volume Calculator
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?
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?
- 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
The location for the user installed gadgets is:
and under that your software name (VCarve, Aspire, Cut2D) and version number.
For example:
Within that will be the
directory. Inside that is a file
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.
Code: Select all
C:\Users\Public\Documents\Vectric Files\Gadgets
For example:
Code: Select all
VCarve Pro V9.5
Code: Select all
Epoxy_Volume_Calculator
Code: Select all
Epoxy_Volume_Calculator.lua
-
- Posts: 1
- Joined: Mon May 22, 2023 10:29 pm
- Model of CNC Machine: Foxalien CL-6560
- Location: Lakeland, Florida
Re: Epoxy Volume Calculator
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
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
-
- Posts: 1
- Joined: Sun Jul 25, 2021 3:01 am
- Model of CNC Machine: Shapoko
Re: Epoxy Volume Calculator
I am getting an error when i click on calculate
-
- 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
Trying to use this gadget with V12.009. Is there an update needed as I get this error message when trying to calculate.
Dave
https://lakesedgewoodcraft.com/
https://lakesedgewoodcraft.com/
- 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
I can replicate that error when I have vectors grouped together. Fixing it is a different matter:
-
- 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
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
Doug
- Attachments
-
- Epoxy_Volume_Calculator.zip
- (11.63 KiB) Downloaded 147 times
- 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
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".
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".
-
- 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
This appears to be working now, without any errors. Thank you!
Dave
https://lakesedgewoodcraft.com/
https://lakesedgewoodcraft.com/
- 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
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:
Version 1.4 (internally mislabeled as v1.3) as posted the original author: jlavintx63 works:
martindg's mods fails:
Attached is my test file.
Version 1.3 as posted the original author: jlavintx63 works:
Version 1.4 (internally mislabeled as v1.3) as posted the original author: jlavintx63 works:
martindg's mods fails:
Attached is my test file.
- Attachments
-
- epoxy test.crv
- (27 KiB) Downloaded 105 times
-
- 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
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