Author Topic: File Clean Plugin  (Read 5782 times)

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1322
    • View Profile
File Clean Plugin
« on: June 06, 2015, 11:21:24 am »
HI All
Here are the files for the file cleaner plugin which is a branch of the collision detector plugin
which is still on going.
I will post a "collision detector jr"  in the next few days and then continue on with the original  plugin.
the .zip includes  A  .dll  to put into your plugin folder and the source code as well as a instructional .cb file  and a pdf
Enjoy!
Dave.

Offline BR52

  • Wookie
  • ****
  • Posts: 335
    • View Profile
Re: File Clean Plugin
« Reply #1 on: June 07, 2015, 13:38:30 pm »
Hi Dave,

One thing, I am intrigued your Windows has "C:\Program Files (x86)" folder  ???
Default CamBam is installed in "C:\Program Files (x86)" folder.

I have had to change your "File Cleaner.csproj" file in the text editor.
See image below.

Many thanks for your code.

   Armando

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1322
    • View Profile
Re: File Clean Plugin
« Reply #2 on: June 08, 2015, 00:18:05 am »
HI Armando
Yes the address is correct if you are using the debugger (so you can debug in real time as cambam is running)
as there are some debugger  files that need to in the plugin folder as well.
On a side note I checked out the C# libraries you pointed out on OpenCV (Emgucv) someone has done a lot of work on that project (good work).
But what I want to do is run OpenCV on a stand alone microcontroller (for a machine fault detector) and after a lot of research I've found out that Qt with C++ on a beaglebone Black or (the upcoming beaglebone Green) may be my best choice for maximum response time, as the beaglebone has two independent PRU's running at 200 mhz :o so I can do other things (send reports to the web) with the core while the fault detector runs independently.
Dave
« Last Edit: June 08, 2015, 00:22:00 am by dave benson »

Offline Jeff_Birt

  • CNC Jedi
  • *****
  • Posts: 821
    • View Profile
Re: File Clean Plugin
« Reply #3 on: June 08, 2015, 11:13:57 am »
You just don't need your build output going to the CamBam plug-in folder. You just need a post build action to copy the dll there and then set up CamBam as the program to start when you hit 'play'.

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1322
    • View Profile
Re: File Clean Plugin
« Reply #4 on: June 08, 2015, 13:29:10 pm »
HI Jeff
Thanks I'll start an empty project tomorrow and see what happens.
Dave

Offline Jeff_Birt

  • CNC Jedi
  • *****
  • Posts: 821
    • View Profile
Re: File Clean Plugin
« Reply #5 on: June 08, 2015, 15:13:40 pm »
Go to your project properties, use something like this for Post Build Events:

Quote
cd $(ProjectDir)\obj\debug
copy FileMerge.dll  "C:\Program Files (x86)\CamBam plus 0.9.8\plugins" /y

Under Debug tab set the start up program to CamBam:
Code: [Select]
C:\Program Files (x86)\CamBam plus 0.9.8\CamBam.exe

It would be better to use the proper path variables to make this a generic path on any OS but I did not :(



Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1322
    • View Profile
Re: File Clean Plugin
« Reply #6 on: June 09, 2015, 01:15:47 am »
HI Jeff
I followed your advice and used this line in my post build options:
cd $(ProjectDir)\obj\Debug
copy $(TargetFileName)  "C:\Program Files\CamBam plus 0.9.8\plugins"

I appreciate your help and after testing the debugger, have made a New template for future projects.
Dave

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1322
    • View Profile
Re: File Clean Plugin
« Reply #7 on: August 06, 2016, 13:17:27 pm »
HI All
While working with George Races stick fonts I discovered an error in converting regions and have also added some representative  values for the polyline doctor.
Dave