Author Topic: New Plugin - CADTools  (Read 28106 times)

Offline dwc

  • CNC Jedi
  • *****
  • Posts: 549
    • View Profile
    • corson.ch
Re: New Plugin - CADTools
« Reply #15 on: November 08, 2016, 13:28:51 pm »
In Linux only C# is allowed
Sort of wierd that Linux requires a language from Microsoft and not C++, for example.
 ? ? ? ? ? ?
Don


Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9090
    • View Profile
Re: New Plugin - CADTools
« Reply #16 on: November 08, 2016, 14:05:48 pm »
My versions support whatever languages I wish to install... <shrug>

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 525
    • View Profile
Re: New Plugin - CADTools
« Reply #17 on: November 08, 2016, 15:00:28 pm »
To develop a plugin for/with CamBam you have to use .NET and .Net on Linux is Mono.

From the Mono page about tools for developers

http://www.mono-project.com/docs/tools+libraries/tools/

In Linux "we" have many developing tools, and language, nearly "all",  The "Native" compiler for Linux is GCC (Gnu C Compiler) so its C C++ and many other languages search "GCC Compiler" to find out how many.

Plus some other interpreted languages, among others Perl, Python, Tcl/Tk, Lua, Haskell, Ruby.
Plus some other specialized languages say "Tex/Latex" to typeset documents.

I was speaking about CamBam development, for which on Linux you have also only one usable scripting language Python (or to say better IronPython).

Regards

  
« Last Edit: November 08, 2016, 15:02:09 pm by onekk »
Carlo D. (onekk)

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

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 525
    • View Profile
Re: New Plugin - CADTools
« Reply #18 on: November 08, 2016, 16:29:20 pm »
New Version 0.87

Some improvement in code (But help is not finished yet).

New Action: SSP (A sort of Explode in a Rectangle), see the explication in the source page.
Carlo D. (onekk)

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

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1896
    • View Profile
Re: New Plugin - CADTools
« Reply #19 on: November 10, 2016, 02:59:04 am »
Hi Carlo
I tried out the Bezier Curve Implementation and it worked fine, so I drew another line and then double clicked the new line and both lines became active. Is this what you wanted.
Dave

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 525
    • View Profile
Re: New Plugin - CADTools
« Reply #20 on: November 10, 2016, 10:30:31 am »
No it's not intended, or better it's a not  explicitly intended.

I see that the created bezier remain selected  even if you make another curve.

Generally I don't clear the selected items as in some actions it is better to not reset the original selection to apply many consecutive action over the selected entities.

If it hurts I could add a checkbox to clear the selection after having executed the "actions", or if it feasible de-select only the new created polyline.

BTW you have used a very low number of point to define the bezier?

See my Bez1.png  screenshot for what a bezier curve is intended to be costructed the order of points is important and even the number of points (The Value is calculated dividing by 5 the distance between point 1 and point4 to obtain a decent numebr of segments).

The result are in Bez2.png 

The images are with the latest version of the plugin (in development)


Carlo D. (onekk)

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

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 525
    • View Profile
Re: New Plugin - CADTools
« Reply #21 on: November 10, 2016, 15:07:27 pm »
New version 0.88a

-- Corrected a bug in SSP that produce some weird result if verbose was not checked. (The polyline is splitted but not added so all the polylines disappear from the screen)

Added a Polyline extend function that try to "guess" what you want, see the source post for an explication of how it works.

It may fail as it is a WIP.
« Last Edit: November 10, 2016, 16:27:45 pm by onekk »
Carlo D. (onekk)

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

Offline billt

  • Droid
  • **
  • Posts: 90
    • View Profile
Re: New Plugin - CADTools
« Reply #22 on: November 23, 2016, 04:42:31 am »
Great Plugin Carlo!
I especially find the 3-pt circle and bezier curve useful.

I request a changeto  the "X" button kill window action.
Currently it opens a window "An Action is Pending Terminate the Action and close"
It will not allow you to cancel the creation of a feature.
Can you change this to kill the process instead of bringing up the warning window?

Cheers - BillT
 

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7597
    • View Profile
    • Cambam V1.0 French Doc
Re: New Plugin - CADTools
« Reply #23 on: November 23, 2016, 23:21:05 pm »
Hello,

I'm working on adding this plugin to the website, but I can't find the DLL that is working for Linux, the .zip (0.89) contain only .cs file and I'm not able to compile anything on Linux  ;D (and I don't know how to compile a linux file on visual studio for windows)

++
David

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 525
    • View Profile
Re: New Plugin - CADTools
« Reply #24 on: November 24, 2016, 09:10:52 am »
Hi David, EddyCurrent could give you some advice, he is the kind fellow who compiles my works for windows.

In tehory you have to create a empty C# project in VS (in the same manner you create a CamBam plugin), then you have to copy the files in my zip in the project Directory, if I didn't go wrong the predefined Visual Studio file is MyClass.cs so copying my files will overwrite the empty MyClass.cs VS has created.

Now you have to add to the references all the Libraries System, Sytem.Forms and so on and the Cambam.dll and then compile the plugin.

When I'm done with the Windows Machine  I will compile the plugin myself, but at the moment I haven't an usable Windows Machine.

Regards
Carlo D. (onekk)

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

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5333
  • Made in England
    • View Profile
Re: New Plugin - CADTools
« Reply #25 on: November 24, 2016, 17:20:28 pm »
Version 089 dll attached
Filmed in Supermarionation

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7597
    • View Profile
    • Cambam V1.0 French Doc
Re: New Plugin - CADTools
« Reply #26 on: November 26, 2016, 01:18:17 am »
Hello,

Thanks to both

I just experiment the plugin on Windows.

There is some features that already exists, like extents or arc center (maybe not working on linux ?)

Just a question: it's the same dll that must be used on both windows and linux ?

Quote
In tehory you have to create a empty C# project in VS (in the same manner you create a CamBam plugin), then you have to copy the files in my zip in the project Directory, if I didn't go wrong the predefined Visual Studio file is MyClass.cs so copying my files will overwrite the empty MyClass.cs VS has created.

And it is not needed to redo the window (Form and buttons) in visual studio ?

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5333
  • Made in England
    • View Profile
Re: New Plugin - CADTools
« Reply #27 on: November 26, 2016, 07:21:14 am »
Hello,

And it is not needed to redo the window (Form and buttons) in visual studio ?

++
David

That's right, the Form code is in a .cs Class, it does not use Visual Studio designer.
Filmed in Supermarionation

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 525
    • View Profile
Re: New Plugin - CADTools
« Reply #28 on: November 27, 2016, 02:03:16 am »
Hello,

And it is not needed to redo the window (Form and buttons) in visual studio ?

++
David

That's right, the Form code is in a .cs Class, it does not use Visual Studio designer.

I Explicitly avoid Visual Studio compatibility as in Linux System.Windows.Form is implemented in a slight different manner than on windows (due to the mono framework).
As for Linux there is no Visual Designer, i have to code the interface byt hand, so if you have a look at my code you see some "automation" methods in the interface code, to save some lines of code and make the code more readable.

Some plugins didn't work on Linux and for me having a unique plugin instead of many is better to find out incompatibilities, a simple recompilation will point out the problems when Cambam version change (hoping it will retain Linux Compatibility).

Now I'm working on a modularized version fo Box Auto, i've rewritten almost from scratch most of the code, and I'm working on some modular routine to draw the crenelated side giving an arbitrary line, giving a start point, a length and the angle. (almost finished now)

Regards.
 
Carlo D. (onekk)

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