Author Topic: feedback to text file  (Read 4932 times)

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6013
    • View Profile
    • Cambam V1.0 French Doc
feedback to text file
« on: June 20, 2012, 19:32:32 pm »
Hello All,

Someone know how to redirect or copy the data displayed in the status windows to a text file (as a log file) ?

The goal is to obtain a list of MOP and their machining time ; currently I do a screen capture of the status window, but its not as usable that a text file.

++
David

Online pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1746
    • View Profile
    • pixelmaker
Re: feedback to text file
« Reply #1 on: June 20, 2012, 20:51:21 pm »
hello David,

no way to print it out. And I found no way to copy this text.
I ask for this feature last year.

I would like to print or copy it to to compare the machining times when I do changes in the mop. I do a screenshot now and print it out.

ralf 

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6013
    • View Profile
    • Cambam V1.0 French Doc
Re: feedback to text file
« Reply #2 on: June 20, 2012, 22:08:28 pm »
Hello Ralf,

Yes I remember that you ask for this feature.

I try to access to the window by vbscript, but I can only write in it, I can't found how to get the existing data in the window.

++
David

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8288
    • View Profile
Re: feedback to text file
« Reply #3 on: June 20, 2012, 22:18:20 pm »
Is there an "error channel" in the language Andy uses?

In 'IX programming, I was always able to re-direct errors to a log by redirection of the error channel.

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

Online pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1746
    • View Profile
    • pixelmaker
Re: feedback to text file
« Reply #4 on: June 20, 2012, 22:49:46 pm »
hello David,

I can´t do this in vbscript. I dont know the syntax. Please show me script  that I can see how you write into the window.
May I can help for this without learning vbs.

ralf

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6013
    • View Profile
    • Cambam V1.0 French Doc
Re: feedback to text file
« Reply #5 on: June 21, 2012, 17:46:21 pm »
Hello Ralf,

Quote
I can´t do this in vbscript. I dont know the syntax

It's not really a syntax problem, VB keywords and functions can be found on MSDN, but a lack of infos about Cambam specific functions. Only Andy can deliver info about that ....

Quote
Please show me script

I did not much tired to find it lol! :-[

this is the one that appears by default when creating a new script

Code: [Select]
' New CamBam VBScript

sub main
app.log("Hello")
end sub

It writes "Hello" in the bottom windows

++
David

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2164
  • Coding Jedi
    • View Profile
    • www.cambam.info
Re: feedback to text file
« Reply #6 on: June 21, 2012, 19:36:32 pm »
Sorry for the lack of progress on this one... It hasn't been forgotten, it just got pushed a bit down the priority list.
I was intending a significant rewrite of the message logging, but there is something we can do in the meantime.

I have attached a plugin for you (unzip to the plugins folder).

This adds a new Plugins menu item : MessageLog Copy
When selected, all text in the message log will be copied to the clipboard.

I hope this helps!

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6013
    • View Profile
    • Cambam V1.0 French Doc
Re: feedback to text file
« Reply #7 on: June 21, 2012, 21:23:04 pm »
Hello Andy,

Yes !! very thanks that help well  ;)

Now I can do a VB tools that extract and sort the data that I want from the copied file.

I've a file with 34 Mop that I must optimize, to reduce machining time for mass production.

good night
++
David