On Fri, Jun 12, 2009 at 08:07:50PM -0700, Kirk Wallace wrote:
> Knowing what AXIS/EMC2 input options there are, would
> help me to know how close to this goal, I might be able to get. Right
> now, I have to block copy/paste, and file copy across three or four
> applications to get a similar outcome.
You can use the [FILTER] section to have AXIS run a filter program to
turn another sort of file into an ngc file.
http://linuxcnc.org/docs/html/config_ini_config.html#sub:[FILTER]-Section
You can use the shell command 'axis-remote --reload' to make axis reload
the current file, or 'axis-remote filename' to make it load a new file.
http://linuxcnc.org/docs/html/gui_axis.html#r1_7
If your editor can't automatically invoke a shell command after it saves
a file, use your favorite scripting language to check whether a file has
changed, and then cause axis to reload it when it does change:
#!/usr/bin/python
import sys, os, time
def timestamp(filename):
try: return os.stat(filename).st_mtime
except os.error: return None
filename = sys.argv[1]
last = timestamp(filename)
while 1:
time.sleep(1)
new = timestamp(filename)
if new != None and new != last:
last = new
print 'file changed. reloading'
os.spawnvp(os.P_WAIT, 'axis-remote', ['axis-remote', filename])
Jeff
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users