I'm considering use of the Python gcode module as a backplot/sanity check for a 
CAM plugin, unrelated to a running EMC instance.

To understand for myself what's going on, I've done an example and documented 
its Canon methods (see http://git.mah.priv.at/gitweb/rs274-python.git)

There are three issues which I dont yet understand:

- intended use of gcode.parse(filename, canon, unitcode, initcode):
  unitcode is always executed before initcode - I dont understand the benefits 
of having two arguments then?

- gcode.calc_extents() returns 9e+99 .. -9e+99 ranges - am I missing some 
initialization?

- gcode.linecode.* members usage is unclear: is this the interpreter state? how 
is it accessed?
    I dont see any use of these members in emc2 - I'd appreciate usage hint. 
    
    This is what I get - they arent callables or subscriptable either:

    print "gcodes", gcode.linecode.gcodes
    print "sequence_number", gcode.linecode.sequence_number
    
        gcodes <attribute 'gcodes' of 'gcode.linecode' objects>
        sequence_number <member 'sequence_number' of 'gcode.linecode' objects>


If the latter is a bug, I'll be happy to fix it, but I'd rather know
    
once complete, I'll put it up this example on the Wiki.

thanks in advance,

Michael

ps: the questions are marked with XXX in 
http://git.mah.priv.at/gitweb/rs274-python.git/blob/39d96b69f34435c3829e0312ae53d5b34107affa:/src/rs274demo.py


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to