Hello Guest it is April 24, 2024, 04:05:37 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ya-Nvr-No

441
Oh ya I see now
    "", "TXT files (*.txt)|*.txt|NC files (*.nc)|*.nc|TAP files (*.tap)|*.tap", wx.wxFD_DEFAULT_STYLE);

    This is what I was expecting when they displayed that they all showed,
    I keep different extensions in different folders.
    And just expected to see them all and not have to change the pull down. My Bad
    Thanks always good to have visual aids.
   
    "", "GCode files (*.txt;*.nc;*.tap)|*.txt;*.nc;*.tap", wx.wxFD_DEFAULT_STYLE);

442
Mach4 General Discussion / Re: Screen Set Ideas
« on: May 07, 2014, 12:08:58 PM »
Ya I thought this would be a great project for Klaus  the new version machscreen4

443
What do you mean, "does not like this"?
that it only displayed the nc files and not the tap files

444
Mach4 General Discussion / Re: Screen Set Ideas
« on: May 07, 2014, 11:45:59 AM »
I learned this feature because I'd created an endless loop in the PLC Script and had to edit the xml file to make the screen set functional again.
Also used it to set position of buttons, led and dro's I find the the alignment features a pain at times. Would be nice if there was a nudge feature to move items using the arrow keys. Moving a selected group with a mouse is a bit touchy.

445
Did get this work

Code: [Select]
local inst = mc.mcGetInstance();
local myGCodePath = "C:/Mach3/GCode";

local fileDialog = wx.wxFileDialog(wx.NULL, "Open file", myGCodePath,
        "", "All files(*)|*", wx.wxFD_DEFAULT_STYLE);

  if fileDialog:ShowModal() == wx.wxID_OK then

    local fileName = string.reverse(fileDialog:GetFilename());
    local pos = string.find(fileName, "%.");
    local fileExt = string.reverse(string.sub(fileName, 1, pos-1));

    if fileExt == "tap" or fileExt == "nc" or fileExt == "txt" then
        local filePath = fileDialog:GetPath();
        local result = mc.mcCntlLoadGcodeFile(inst, filePath);
        if not result then
            wx.wxMessageBox("Sorry, I could not open file.");
        end
    else
        local message = string.format("%s is wrong file type",

fileExt);
        wx.wxMessageBox(message);
    end
  end

Just does not like this, though I do like your added check, thanks

"", "NC files (*.nc)|*.nc|TAP files (*.tap)|*.tap", wx.wxFD_DEFAULT_STYLE);

Jury still out on the Lua until we see some docs,  :o
Were liking most of it. Kind of a Love Hate thing
Different woman, new issues to deal with.

446
"", "NC files (*.nc)|*.nc|TAP files (*.tap)|*.tap", wx.wxFD_DEFAULT_STYLE);

I don't find it reading any other than the nc files

447
Sorry, I followed that, just was letting others know it can do double duty. Now it makes me wonder if you can open several more at the same time? Like plugging in a usb thumb drive and accessing it at the same time. Or looking on a network for remote drives.

Thanks again, this is the kind of things that drive a communities interest in sharing and feeling like anything is possible.

448
Nice job Jeff,

if you have the Left up option field set to "Gcode Load"
Like that it can open both the Mach4 gcode folder and the Mach3 gcode folder

Thanks for sharing/posting

449
Tangent Corner / Re: Murphy’s Law strikes again.
« on: May 07, 2014, 07:52:43 AM »
Have to assume you sawed through it? Cause I have no idea what it says.
Nice clean graphics work your providing.

450
Mach4 General Discussion / Re: Screen Set Ideas
« on: May 07, 2014, 07:36:56 AM »
Thanks Brian and Steve
Your team has made it possible, its up to us to push, explore & create our own environment. Providing you with more work to keep up with our needs.
Get ready for grey or no hair ;D


Wanted to enlighten all, to the ability at looking at the root of the script, that is the Screen.set.

If you change the name of your screen set from dot set to dot zip
then Extract the zip file to a new folder you will find a folder named "images" with all the inserted graphic images

I find it easier to edit and add to the images folder this way.

You will also find a file called 'screen.xml"

The screen.xml file is the core of all the scripting code and the attributes of the controls. This file can be edited, it is a text file. Open with any xml editor or program that formats the file correctly and saves it as a text file. Make any edits you need or like. When done, select both the file and images folder and "Add to Archive" make them a zip file again. Rename the zip file back to the dot set extension.  You can put it back in the Screens folder, but I don't believe you have too.

Now to figure out how to merge two or more sets. My thinking is as individuals share their sets, and we would like to add some great features to our set. What is the best way to merge the data? Remember property device names can not be the same. And grouping is critical.

Image below shows a content clip of the xml file

Have Fun, keep exploring :)
Thanks again