Author Topic: Custom CAM Toolbar buttons  (Read 17671 times)

Offline BaNoBi

  • Droid
  • **
  • Posts: 51
    • View Profile
Custom CAM Toolbar buttons
« on: January 05, 2015, 15:19:45 pm »
I developed a new plugin which adds all the not default machining operation types (for example: Thread Mill, Lathe and V-Engrave) to the CAM toolbar.

I hope it helps someone.

Online dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7408
    • View Profile
    • Cambam V1.0 French Doc
Re: Custom CAM Toolbar buttons
« Reply #1 on: January 05, 2015, 15:32:25 pm »
Hello,

Thanks for this plugin, and welcome in Cambam world  ;)

What language are you using to do the plugin ?

++
David

Offline BaNoBi

  • Droid
  • **
  • Posts: 51
    • View Profile
Re: Custom CAM Toolbar buttons
« Reply #2 on: January 05, 2015, 15:47:52 pm »
Thanks David.

I'm using C#. My starter code is the View Toolbar plugin code (http://www.cambam.info/ref/plugin.viewtoolbaraddins).

Please find in attach the source code of my plugin.

Online dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7408
    • View Profile
    • Cambam V1.0 French Doc
Re: Custom CAM Toolbar buttons
« Reply #3 on: January 05, 2015, 15:51:25 pm »
Thanks for the sources ;)

++
David

Offline Bubba

  • CNC Jedi
  • *****
  • Posts: 3355
    • View Profile
Re: Custom CAM Toolbar buttons
« Reply #4 on: January 05, 2015, 17:15:06 pm »
Thanks for great addition. ;) :D
My 2ยข

Win11, CB(1.0)rc 1(64 bit) Mach3, ESS, G540, 4th Axis, Endurance Laser.

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5262
  • Made in England
    • View Profile
Re: Custom CAM Toolbar buttons
« Reply #5 on: January 05, 2015, 17:53:06 pm »
Useful, thanks
Filmed in Supermarionation

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8969
    • View Profile
Re: Custom CAM Toolbar buttons
« Reply #6 on: January 05, 2015, 23:00:00 pm »
And... BaNoBi...Welcome to the group.  I like that you shared the code.  We have a tendency to do that more than not, here.

I _also_ like very much that you dove right in and started writing plugins even before you'd had much interaction here.  (Self-motivation AND sharing!  Can't beat it!)

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

Offline Garyhlucas

  • CNC Jedi
  • *****
  • Posts: 1463
    • View Profile
Re: Custom CAM Toolbar buttons
« Reply #7 on: January 06, 2015, 18:18:54 pm »
Yes it is very nice. I wish I still had the programming skills for this stuff.  Gave it up back when Borland's Paradox database went OOP in Windows and completely confused the hell out of me.  I still program PLCs with boolean logic but that is so much like a wiring diagram that I have no trouble following the logic even when I step away for long periods.
Gary H. Lucas

Have you read my blog?
 http://a-little-business.blogspot.com/

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8969
    • View Profile
Re: Custom CAM Toolbar buttons
« Reply #8 on: January 06, 2015, 23:04:48 pm »
Gary,
I was away from C (Borland, yup!) for over 20 years before I took it back up in the CamBam environment with C#.

Is it like the old stuff?  Naw.  Can you re-learn and re-apply your old skills?  Yep.

OOP is still causing me many "oops".  But what's changed since I was doing procedural programming is the wealth of help, advice, and examples available now on the web.

You (I) can muddle through, even if you (I) don't fully understand.

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

Offline Bob La Londe

  • CNC Jedi
  • *****
  • Posts: 4484
  • ^ 8.5 pounds on my own hand poured bait.
    • View Profile
    • CNC Molds N Stuff
Re: Custom CAM Toolbar buttons
« Reply #9 on: June 29, 2021, 22:46:27 pm »
Has there been an update that allows for adding the thread mill icon to 1.0? 
Getting started on CNC?  In or passing through my area?
If I have the time I'll be glad to show you a little in my shop. 

Some Stuff I Make with CamBam
http://www.CNCMOLDS.com

Offline driedeker

  • Storm Trooper
  • ***
  • Posts: 162
    • View Profile
Re: Custom CAM Toolbar buttons
« Reply #10 on: June 30, 2021, 07:14:22 am »
I thought that the thread mill icon was working in v 1.0 as it appears in my mop list in the top bar
Made in England in 53

Online dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7408
    • View Profile
    • Cambam V1.0 French Doc
Re: Custom CAM Toolbar buttons
« Reply #11 on: June 30, 2021, 15:16:51 pm »
Hello

I just installed it on CB 1.0 and the thread MOP is here ....

(plugin V 1.0.5483.25515 - date: 05 January 2015)

++
David

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1967
    • View Profile
    • pixelmaker
Re: Custom CAM Toolbar buttons
« Reply #12 on: October 28, 2022, 09:13:40 am »
Hello

the CAM Toolbar Addin shows in V1 different icons twice.
For example, the Slotter Plugin icon and the one for Laser Dotter machining operation are shown twice.
I use the CAM Toolbar Addin so that the Thread Mill machining is displayed.
If the fantastic programmers of the machining operations would please include the icons in their plugins the CAM Toolbar Addin would be obsolete. Or maybe add a query to the CAM Toolbar Addin to show new icons only if they are not already present.

Thanks
Ralf

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1967
    • View Profile
    • pixelmaker
Re: Custom CAM Toolbar buttons
« Reply #13 on: October 28, 2022, 09:35:15 am »
When I delete the translation of the plugin name from the language file, the icons are displayed only once.
If there is a translation, an icon with original name and an icon with translated name are displayed once.

I have now completely removed the translation for the name of the plugin in the German language file. Then you can use the CAM toolbar addin. I did the same with the laser dotter mop.


ralf

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5262
  • Made in England
    • View Profile
Re: Custom CAM Toolbar buttons
« Reply #14 on: October 28, 2022, 13:21:38 pm »
Filmed in Supermarionation