Import gcode into polylines

Is there a easy way to import gcode into Rhino and create the polylines and arcs within the gcode?

This could obviously be done within Grasshopper, but it’s still a bit tedious writing the script, deleting the feed rates, ignoring all the extraneous commands and lines of notes. And different machines with slightly different gcode formats would complicate the issue; that’s understood.

Just wondering, thanks.

I’ve used GHpython for this purpose and it works well.

It’s very easy to ignore any codes that you don’t want to detect , just don’t write code to detect them.

Pythons handling of text is ideal for this situation.

Thanks for the info; unfortunately I don’t know Python and this minor task is not worth the time trying to learn it. I was hoping there was already a plug-in somewhere.

Here’s an interesting plugin in development by a forum member here:

There are also some results when searching food4rhino.com