CamBam
News:
 
*
Welcome, Guest. Please login or register. September 09, 2010, 10:55:49 am


Login with username, password and session length


Pages: 1 [2]
  Print  
Author Topic: How to write a CamBam plugin  (Read 8251 times)
bigbigblue
Droid
**
Offline Offline

Posts: 58



View Profile WWW
« Reply #15 on: September 30, 2008, 20:50:27 pm »

Hi Armando
I'm fascinated - how did you produce that diagram?
Half of the stuff in there does not seem to be exposed in Visual Studio - I cannot find any reference to CircleEditMode.

I'll gladly publish the plugin and provide the source - but it is in Visual Basic, not C# Smiley
Logged
lazer
Droid
**
Offline Offline

Posts: 79



View Profile
« Reply #16 on: September 30, 2008, 22:23:43 pm »

Hi Peter
Jewel is free http://www.codeproject.com/KB/cs/AutoDiagrammer.aspx

 http://www.codeproject.com/index.aspx

Visual Basic OK  Wink
« Last Edit: October 01, 2008, 15:15:34 pm by lazer » Logged
Johanescnc
CNC Ewok
*
Offline Offline

Posts: 2



View Profile
« Reply #17 on: November 01, 2008, 15:59:28 pm »

You can download the plugin below if you want to try it out.  You must put it in CamBam's plugin folder.
Project files and code will follow shortly.
Demo_Plugin.rar
The link seems to be bad... Huh
« Last Edit: November 01, 2008, 16:01:51 pm by Johanescnc » Logged
mrbean
Administrator
Storm Trooper
*****
Offline Offline

Posts: 212


Web Jedi


View Profile WWW
« Reply #18 on: November 01, 2008, 17:23:55 pm »

You're right.  That's odd... Roll Eyes
I'll see if I still have the files kicking around.  I'll re-upload them once I find them.  Smiley
Logged
10bulls
Administrator
CNC Jedi
*****
Offline Offline

Posts: 1123


Coding Jedi


View Profile WWW
« Reply #19 on: November 01, 2008, 23:23:32 pm »

I just copied some files back from an old backup... I think we had a few hiccups when upgrading to a new server a while back.

Attachment links should be good now! Smiley
Logged
mrbean
Administrator
Storm Trooper
*****
Offline Offline

Posts: 212


Web Jedi


View Profile WWW
« Reply #20 on: November 01, 2008, 23:47:00 pm »

Nice one.  I remember some things going astray when we moved the server.
Thought we'd caught them all.  Obviously not. Roll Eyes
All good now though.
Logged
ahtanner53
CNC Ewok
*
Offline Offline

Posts: 16


View Profile
« Reply #21 on: June 26, 2009, 18:22:30 pm »

Mr. Bean,
I tried to use Demo_Plugin.dll.   First I used the one from the .rar file. I put it in

C:\Program Files\CamBamPlus\plugins

CamBam+ didn't see it.  I tried to recompile.  I put the new file (same name) into the directory.  Still CamBam+ didn't see the file.

When I say CamBam+ didn't see it, I mean that it did not appear when I selected Plugins.  I restarted CamBam+ each time I had a new file to try.

Appreciate what you do.

Allen Tanner
Logged
10bulls
Administrator
CNC Jedi
*****
Offline Offline

Posts: 1123


Coding Jedi


View Profile WWW
« Reply #22 on: June 27, 2009, 02:02:13 am »

There was a change a little while back with the code required to hook into the CamBam menus.

There old code was something like...

Code:
MenuItem mi = new MenuItem();
mi.Text = "HeightMap Generator";
mi.Click += new EventHandler(HeightMap_Click);
ui.Menus.mnuPlugins.MenuItems.Add(mi);

This was changed to

Code:
ToolStripMenuItem mi = new ToolStripMenuItem();
mi.Text = "HeightMap Generator";
mi.Click += new EventHandler(HeightMap_Click);
ui.Menus.mnuPlugins.DropDownItems.Add(mi);

Plugins containing the old style code will display an error message when you try to load them in later CamBam versions.

There have also been other API changes in subsequent versions which can cause older plugins to break.
Most of these errors will surface when you try to compile the plugins.
Make sure the References section of your .NET project point to the latest CamBam .dlls in the CamBamPlus folder.

In the CamBamPlus\plugins folder, there is also a .zip file containing the source for the heightmap plugin.
This is another good example to look at to help get you started.
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

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

Copyright © 2008 HexRay Ltd. | Sitemap