Hi Norbert (and the others..),
As shown in my last post , I started to use the macro facility for supporting small repetitive tasks, for which a CAM system is too much effort.
While configuring that, I ran into the problem that the subroutines_path in the RC274NGC sectio in the ini file, is supposed to support multiple directory definitions, separated by a colon, :. (According to the linuxcnc documentation).
The GMOCCAPY.PY program is not supporting that function, it assumes the parameter contains only a single path.
Therefore I coded, and tested (in simulation mode on a 2.8 pre version) , a small code change.
This is what I changed in gmoccapy.py, starting at line 1768:
# What to do if a macro button has been pushed
def _on_btn_macro_pressed( self, widget = None, data = None ):
o_codes = data.split()
subroutines_path = self.get_ini_info.get_subroutine_path()
if not subroutines_path:
message = _( "**** GMOCCAPY ERROR ****" )
message += _( "\n**** No subroutine folder or program prefix is given in the ini file **** \n" )
message += _( "**** so the corresponding file could not be found ****" )
dialogs.warning_dialog( self, _( "Important Warning" ), message )
self._add_alarm_entry( message )
return
# Start of modification by Franstrein to support multiple directories, separated by colons, : .
# Created on top of the 1.5.2.1 version. Done on March 8, 2015
files = subroutines_path.split(":")
macrofound = False
counter = 0
while not macrofound and counter < len(files) :
file = files[counter] + "/" + o_codes[0] + ".ngc"
if os.path.isfile(file):
macrofound = True
counter += 1
if not file:
message = _( "**** GMOCCAPY ERROR ****" )
message += _( "\n**** File %s of the macro could not be found ****\n" % [o_codes[0] + ".ngc"] )
message += _( "**** we searched in all subdirectory %s ****" % subroutines_path )
dialogs.warning_dialog( self, _( "Important Warning" ), message )
self._add_alarm_entry( message )
return
# End of modification FransTrein, March 8, 2015
Could you add this (if myy coding is acceptable

) to the official version?
I did this as a trial to setup a development and simulation environment (using VMWare), and might try an attempt on some more macro related improvements I would like to have.
Thanks,
Frans