Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: cfell on January 21, 2013, 07:05:49 PM

Title: Call for editor
Post by: cfell on January 21, 2013, 07:05:49 PM
I have a question concerning how Mach3 calls the editor.  I am using a Tormach build of mill and when I go to [change-g-code] it forgets my program and simply sits with a blank program window.  I then have to reload or open the code again.  Oddly, on the same computer the Tormach build of Duality lathe works as it should.  I checked the config xml and it appears to be the same for both and ok.  I don’t have access to a config screen as in the standard build of Mach.  Tormach support does not appear to want to go into the inner working of the program.  Windows 7 computer, yes I have reinstalled the software.
Any insight would be appreciated. Thank you CF
Title: Re: Call for editor
Post by: BR549 on January 22, 2013, 11:16:32 AM
It is probably a permission problem with W7. Have you tried starting the program as ADMIN ? sometimes that helps.

(;-) TP
Title: Re: Call for editor
Post by: cfell on January 26, 2013, 08:41:55 AM
I have struggled a bit more on this issue.  I have observed that the Tormach build of Mach3 turn (duality lathe) consistently brings up notepad and works every time.  The Tormach build of Mill attempts to bring up Notepad++. Notepad++ is loaded into the PCNC1100 directory structure during installation of the Tormach Mill build.  From a cold start of the computer I am able to start notepad++ from that directory or Mach3. Regardless after 1 or 2 instances it no longer works unless I shut completely down and start again. So this is not a Mach issue.

My problem is Tormach does not give you access to a configuration screen so I can change my editor.  Does anyone know how I can get around this?  The Windows 7 machine is not my controller.  I am simply trying to keep the screen sets the same on my development machine as my controller computer.
Title: Re: Call for editor
Post by: Hood on January 26, 2013, 09:08:39 AM
Can you attach your mill xml please.
Hood
Title: Re: Call for editor
Post by: BR549 on January 26, 2013, 09:21:12 AM
Hood that is cheating(;-)

(;-) TP
Title: Re: Call for editor
Post by: Hood on January 26, 2013, 09:24:11 AM
Not cheating, just bending the rules a wee bit :)
Hood
Title: Re: Call for editor
Post by: cfell on January 26, 2013, 12:03:57 PM

I have found two xml files each named PCNC1100M3-II.  One in the PCNC3 sub directory (along with Mach3), the other in the PCNC3/NotpadPluPlu/Ansi sub directory (along with NotepadPlusPlus).  To identify the second file I added “_2009” to the name. There is no <editor> tag in the _2009 file that I can find.  I was going to try changing the tag in the first file but couldn’t figure out what to put.  I appreciate your help.
Title: Re: Call for editor
Post by: Hood on January 26, 2013, 01:39:56 PM
Place this in your Mach3 folder and use the loader to open it and see if it works.
Hood
Title: Re: Call for editor
Post by: cfell on January 26, 2013, 02:40:05 PM
Thanks but no joy.  I exchanged the files. Loaded a program and could see the code and file name on the Mach screen.  When I clicked change G-code button the file name immediately changed to "no file loaded".  I then had to reload my file.
If I hover near the button when I press it, I see the blue circle (hour glass thing) briefly then it goes away.
Title: Re: Call for editor
Post by: Hood on January 26, 2013, 02:46:11 PM
Ok must be more to it than simply the path changed. Can you attach the lathe xml so I can compare, might manage to work out what they are doing.
Hood
Title: Re: Call for editor
Post by: cfell on January 26, 2013, 03:00:58 PM
Here is the Duality xml.  I couldn't even find the editor tag in it.
Title: Re: Call for editor
Post by: Hood on January 26, 2013, 03:08:34 PM
I presume you use a shortcut to open your mill profile? If you do can you right click it and select properties then tell me what the target is, that will let me know which xml is being used.
Hood
Title: Re: Call for editor
Post by: cfell on January 26, 2013, 03:20:59 PM
C:\PCNC3\PCNC1100M3-II Start.BAT
Title: Re: Call for editor
Post by: Hood on January 26, 2013, 03:39:30 PM
Ah ok so they are using a batch file to open things up. Will send you a PM in a few mins.
Hood
Title: Re: Call for editor
Post by: cfell on January 27, 2013, 10:53:18 AM
I want to express many thanks to Hood for his attention yesterday. I am getting further but still unable to change the editor used in the OEM Tormach build.

I have observed that PCNC does actually bring up notepad++ with my code in it one time after a complete cold start. It does not after that first time.  I loose my code and have to reload it. I have also noticed I can start notepad++ from the command prompt once after a cold start but I am unable to run it a second time after closing.  If I close it then enter the same path command it does not open.

Clearly this is a Windows7/notepad++ issue.  It would be so easy to resolve if I could change my editor.

Title: Re: Call for editor
Post by: Hood on January 27, 2013, 11:00:15 AM
Bit of  a long shot but what if you copy notepad.exe form the system32 folder and place in your pcnc folder and use the xml that I changed to open notepad?
Hood
Title: Re: Call for editor
Post by: cfell on January 27, 2013, 11:20:07 AM
YOU GOT IT !!!!!  that looks like it worked.

Thanks is an understatement.
Title: Re: Call for editor
Post by: Hood on January 27, 2013, 11:22:01 AM
hopefully it will keep working :)
Hood