Author Topic: Box Auto Plugin  (Read 17737 times)

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 512
    • View Profile
Re: Box Auto Plugin
« Reply #15 on: October 13, 2016, 08:42:21 am »
Someone has the sources?

This plugin don't work on linux, and I want to see if I can't made it work.

Regards.
Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4565
    • View Profile
Re: Box Auto Plugin
« Reply #16 on: October 13, 2016, 10:06:10 am »
Carlo,

See if the attached dll works with Linux.

1. look in Plugins menu for BoxAutoLinux
2. only the top numeric updown works for now.
3. values are saved to the Registry.
4. you have to close the form with the top right X icon.
Made in England

Online dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6211
    • View Profile
    • Cambam V1.0 French Doc
Re: Box Auto Plugin
« Reply #17 on: October 13, 2016, 19:52:52 pm »
Hello,

Sources for 1008 in attachment

++
David

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 512
    • View Profile
Re: Box Auto Plugin
« Reply #18 on: October 14, 2016, 06:27:26 am »
Many Thanks, Eddy and David, I will work on the sources, to see if they are "translatable", as the Shapes plugin work on linux i could see if a similar form is usable in the Box Auto, Now I see that VB.NET is ported to Linux too (As Microsoft is supporting Mono ad a Multiplatform tool using Xamarin).

See forward

Many thanks and Regards.

 
« Last Edit: October 19, 2016, 13:41:26 pm by onekk »
Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 512
    • View Profile
Re: Box Auto Plugin
« Reply #19 on: October 18, 2016, 10:35:01 am »
Some work on it in C#

Updated - find it on a newer post

First Attempt, not fully functional, but some box is displayed and calculated.

Lack of some functionalities, but take it "As Is" for now.

It has an error when generated the "frame" box with "odd" Options.

A quick check didn't find the problem (but the lines of code are complicated to read and maybe some copy paste is wrong, and for today my eyes are crossed to read the screen)


But maybe it is useful for someone even in this state of roughness.

It will be kind if someone try to compile it in windows and see if it works (I've done some quirks to obtain the correct information for the version)

Regards to all
« Last Edit: October 19, 2016, 09:34:25 am by onekk »
Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4565
    • View Profile
Re: Box Auto Plugin
« Reply #20 on: October 18, 2016, 17:54:44 pm »
Compiled, it works in Windows and this is what it looks like with the default settings, I did though check the 'Comments' box.
Made in England

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 512
    • View Profile
Re: Box Auto Plugin
« Reply #21 on: October 18, 2016, 20:43:22 pm »
Thanks, Eddy.

Now I have to recheck all the code for the bug.

Tomorrow, it will be a bug hunting day.

Regards and Godd Night.

Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 512
    • View Profile
Re: Box Auto Plugin
« Reply #22 on: October 19, 2016, 09:37:25 am »
Updated sources in a new post

Ok it seems to work, but as I don't have a reliable Windows Installation to check the original version, I have a Question to David.

If you calculated a Box it is normal that the sides are not simmetrical? I have checked all the code three times but I was unable to find out the bug:

See the attached source.


TIA and regards to all

« Last Edit: October 19, 2016, 13:39:38 pm by onekk »
Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4565
    • View Profile
Re: Box Auto Plugin
« Reply #23 on: October 19, 2016, 12:01:28 pm »
Carlo,

Do you have some numbers that make a box not symmetrical ? the default numbers looks okay to me.
Also do you want the Windows compiled .dll attached here ?
Made in England

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4565
    • View Profile
Re: Box Auto Plugin
« Reply #24 on: October 19, 2016, 12:09:11 pm »
And here's how it looks with the original, David's version.
Made in England

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4565
    • View Profile
Re: Box Auto Plugin
« Reply #25 on: October 19, 2016, 12:15:23 pm »
Carlo,

I see what you mean now, I made an 'Automatic' box then slowly reduced the 'Height' value.
David's version remained symmetrical but your version did not, so there is a bug in there.
Made in England

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 512
    • View Profile
Re: Box Auto Plugin
« Reply #26 on: October 19, 2016, 12:16:10 pm »
Thanks Eddy, attached a screenshot with values and appearance.

For now, as it is not yet ready for using, i prefer not to have a "windows version" compiled , it will be a mere duslicate of "Box Auto".

When all the things are corrected and working the scenarios will be possibly:

1) Using my C# version in place of the VB version of David (and became a CoAuthor of the Plugin)
2) Forking the Plugin maybe under another name and expand the capabitilies of the plugin.

But I prefer the option number 1) but I have to talk with David.



Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 512
    • View Profile
Re: Box Auto Plugin
« Reply #27 on: October 19, 2016, 12:23:22 pm »
I suspect many possible "culprit" the use of C# "|" for the VB Or or maybe the "&" for the VB And,

But I have checked and seems that the correct "translation" is | for Or and & for And.

Some differences in += or -=

Some checking of the equality of some variables due to different automatic casting from VB to C# (there are many check for equality and some of them might fail due to perhaps to 0 != 0 if one of them is double and the other an int)

I will recheck again all the code in VB versus the C# code I've translated. 
Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam

Online dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6211
    • View Profile
    • Cambam V1.0 French Doc
Re: Box Auto Plugin
« Reply #28 on: October 19, 2016, 12:47:13 pm »
Hello,

Quote
If you calculated a Box it is normal that the sides are not simmetrical? I have checked all the code three times but I was unable to find out the bug:

Yes, they are symmetrical, but I know that there is a remaining bug somewhere .. I need to review the discussion I have had with jf to remember where is the pb (but no time yes, tons of part to machine)

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4565
    • View Profile
Re: Box Auto Plugin
« Reply #29 on: October 19, 2016, 13:05:26 pm »
Carlo,

in C#

& is a bitwise AND
&& is a logical AND

| is a bitwise OR
|| is a logical OR
Made in England