CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 11, 2017, 11:17:53 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Getting Started writing Plug-ins  (Read 611 times)
Bob La Londe
CNC Jedi
*****
Offline Offline

Posts: 3023


^ 8.5 pounds on my own hand poured bait.


View Profile WWW
« on: May 18, 2017, 18:20:46 pm »

Once upon a time I used to want to be a computer programmer.  I wrote my own absolute read write or or fat driven hex editor once upon a time in C+ under DOS once upon a time.  I also wrote some applications and key driven rotation based data encoders in CHASM (Cheap Assembler).  I was pretty good with a half dozen versions of BASIC upto QuickBASIC, and I once tutored Cobol 74 (and several other languages) in the computer lab in college.  That was so long ago I have forgotten most of it.   

Its been so long ago I think I would struggle to write "Hello World" in anything but one of the older simpler version of BASIC. 

I'd ask a question at this point, but I don't know what questions to ask. 

Logged

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
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 4783



View Profile WWW
« Reply #1 on: May 18, 2017, 19:15:52 pm »

Hello

In my case, I use Visual Basic .net (plugins) and Visual Basic Script (Script)

To begin, I think that the script is the best way because you can do all in CB and test immediatly ; no compilation to do a dll, no need to stop/run CB so the dll is loaded .. etc

CB can use VBscript, Python Script an Java script.

For me, the advantage of VB script, is that I understand it better than C (and I hate python) ... and when the 'core' is working in a script, it's easy to convert it to a plugin with few changes.

To learn VB script on CB, I think that the better way is to explore existing scripts and snippets ... and ask questions  Grin

http://www.cambam.co.uk/forum/index.php?topic=3878.0

PS: Vbscript is not yet implemented on the last 1.0 R12 version of CB, but exists in the R13 (ftp), and of course it works on the 0.98

Quote
Its been so long ago I think I would struggle to write "Hello World" in anything but one of the older simpler version of BASIC.  

easy !, menu: Script/New/VBscript .... and the "Hello" is done as example ; you just need to add "World"   Grin

++
David
Logged
EddyCurrent
CNC Jedi
*****
Offline Offline

Posts: 3253



View Profile
« Reply #2 on: May 18, 2017, 22:15:19 pm »

Bob,

My plan would be to use C# and Visual Studio 2015 Community (it's free  ; https://www.visualstudio.com/downloads/

I could post a basic project that would get you started writing a CamBam plugin.

If you install VS 2015, don't get put off right away because there are a few things that need done before writing any plugins, I can give you details of those requirements if you decide to use VS 2015
It took me a while to get going with it but once I got the first plugin to compile and run the rest was easy (easier Cheesy)
« Last Edit: May 18, 2017, 22:19:53 pm by EddyCurrent » Logged
Garyhlucas
CNC Jedi
*****
Offline Offline

Posts: 1027


View Profile
« Reply #3 on: May 19, 2017, 00:06:22 am »

I just volunteered for the Board of the Robotics club my grandson will be joining as part of the STEM prgram he got into for high school.  The Vex robots use something called RobotC, so I guess it is finally time to get back into programming something other than CNCs and PLCs!
Logged

Gary H. Lucas

Have you read my blog?
 http://a-little-business.blogspot.com/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.121 seconds with 18 queries.

Copyright © 2008 HexRay Ltd. | Sitemap