We use cookies to personalize content, interact with our analytics companies, advertising networks and cooperatives, and demographic companies, provide social media features, and to analyze our traffic. Our social media, advertising and analytics partners may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services. Learn more.
When I am entering a value in a text box like depth of cut, I want to be able to enter a fraction, then equals, and have it calculate the value.
For instance 1 / 8 = would change the value to 0.125.
Or, 0.125 / 3 = results in 0.042.
Basically, onkeypress, if the key is an equal, get the value, strip the equal, make sure it’s only numbers, period, and a single math operator, and then push it through eval(), then round to 3 or 4 places…
This is a standard feature in many drawing programs — no equal necessary. Freehand even respects order of operations and allows one to use parentheses to control that.
I have had many projects where I wished that Vcarve would allow me to create variables with assigned values (either a constant or an expression). Then when cutting multiples of the same project on different thickness material I could just change one value for thickness and all the other variables would adjust in the toolpaths.
For example if I wanted a pocket to be cut to half the material thickness, I could define the depth for the pocket to be “T/2”, and the profile cut would be at depth “T”