CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 15, 2019, 04:30:35 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Advanced tool library  (Read 747 times)
MrJTJinx
CNC Ewok
*
Offline Offline

Posts: 40


View Profile
« on: May 13, 2019, 10:25:40 am »

I would like to produce a plug in which could access the tools XML file and present the tool library on a windows form, this form would have the ability to manipulate the tool library to add, remove, edit and export the library.

I'm curious haw cambam interfaces with the library, my current understanding is that its loaded from the Xml fill at startup and then never accessed again.  This would inevitably render a plugin of this type useless without a program restart, even an offline version would require a restart to upload new tool values.

am i correct or would it be possible to manipulate the tool library at run time.
Logged
MrJTJinx
CNC Ewok
*
Offline Offline

Posts: 40


View Profile
« Reply #1 on: May 13, 2019, 10:50:20 am »

My Thoughts are something along the line of Espirits or autodesk's library.
Covering more information such as woc and doc and perhaps a feed and speed table for that particular tool.  Bring together all the snippets of information we either have to calculate or remember and make it all accessible in one place.


* images.jpg (7.32 KB, 242x208 - viewed 67 times.)
Logged
onekk
Wookie
****
Offline Offline

Posts: 473


View Profile
« Reply #2 on: May 13, 2019, 11:55:49 am »

Maybe there is some function in the code to reload the xml file, if you modify it via the "system" tab the modification is taken in account and if you recalculate the toolpaths they use the new value.

I have to check as it is not a thing that i do every day, but in my remembering it works.

Regards

Carlo D.
Logged

Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam
MrJTJinx
CNC Ewok
*
Offline Offline

Posts: 40


View Profile
« Reply #3 on: May 14, 2019, 12:45:25 pm »

Hi Carlo,
I did realise after reading your comments that it does indeed update in real time at run time.
On another post I have requested information of how to obtain system/job information to produce a job sheet.  The access to the internal workings of cambam must be similar to what i will need for this plugin.

Logged
ajawamnet
CNC Ewok
*
Offline Offline

Posts: 19


View Profile
« Reply #4 on: June 18, 2019, 13:34:51 pm »

Hi Carlo,
I did realise after reading your comments that it does indeed update in real time at run time.
On another post I have requested information of how to obtain system/job information to produce a job sheet.  The access to the internal workings of cambam must be similar to what i will need for this plugin.



Would be nice to be able to import tools from a CSV file.For DolphinCAM I was able to edit the tool library XML in EXCEL, import my 215 tools from Visual Mill,  and export back out to XML...

Cambam - not so much. Excel gives the:
"excel cannot save or export xml data the xml maps in this workbook are not exportable"
error due to some denormalized issues.


* XMLerror.jpg (712.83 KB, 2945x1125 - viewed 50 times.)
« Last Edit: June 18, 2019, 13:37:02 pm by ajawamnet » Logged
dave benson
CNC Jedi
*****
Offline Offline

Posts: 1131


View Profile
« Reply #5 on: June 18, 2019, 14:51:11 pm »

You can convert your tool libs to and from Json files.
and then to the other formats.
Dave 


* tool library as Json file.PNG (213.3 KB, 1360x548 - viewed 50 times.)
Logged
ajawamnet
CNC Ewok
*
Offline Offline

Posts: 19


View Profile
« Reply #6 on: June 18, 2019, 15:24:16 pm »

You can convert your tool libs to and from Json files.
and then to the other formats.
Dave  

How?

And then, how do I get a CSV into JSON and back to XML?

Too much man-ban Java jockey it seems...
« Last Edit: June 18, 2019, 15:26:17 pm by ajawamnet » Logged
ajawamnet
CNC Ewok
*
Offline Offline

Posts: 19


View Profile
« Reply #7 on: June 18, 2019, 16:32:06 pm »

Got it to import my old Visual MIll lib - see attached

* out.xml (95.19 KB - downloaded 26 times.)
Logged
dave benson
CNC Jedi
*****
Offline Offline

Posts: 1131


View Profile
« Reply #8 on: June 19, 2019, 00:23:21 am »

I'm sorry, I thought you could program.
Here's your file.

Simply take your file (out.xml) and put in the tool's lib of cambam, it'll show up as a (.Json) file.
then open it and save it. it'll be converted into a .xml file.
You can then use it in CB. If you wan't to use this file in Excel then that depends on the version of Excel.
Give it a try and see how you go, if it doesn't work then get back to the forum and tell us what version of Excel
you are using.

There are many file conversion utilities on the web with which you can freely convert from one format to another.


Dave

* Tools.xml (89.69 KB - downloaded 21 times.)

* Your tool library.PNG (183.18 KB, 967x650 - viewed 49 times.)
« Last Edit: June 19, 2019, 00:29:54 am by dave benson » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

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

Copyright © 2018 HexRay Ltd. | Sitemap