Inkscape PlasmaC g-code generation

More
13 Oct 2020 22:13 #186035 by tommylight

I'm curious how @tommylight handles this.

fwiw I've poked around the gcode extension's python code and figured out how to make it output #<_hal[plasmac.cut-feed-rate]>. Untested and I don't recommend it but hey, maybe it'll be fine.

Around line #3337 change:
f = " F{:f}".format(tool)
to
f = " F{}".format(tool)

Line 5158 change:
"feed": 400.,
to
"feed": "#<_hal[plasmac.cut-feed-rate]>",
(you can change the rest of your defaults here too)

Line 5347 just comment it out:
self.tool["feed"] = float(self.tool["feed"])
to
#self.tool["feed"] = float(self.tool["feed"])

Line 3091 change:
"feed": 400.0,
to
"feed": "400.0",

I think that's all the changes I made... again, I don't recommend it :)

I modify the gcodetools.py file, always.
And i did try to add PlasmaC feed rate but it would not accept non numerical values, so i had to move on after some 20 wasted minutes to other stuff and never got a chance to get back to it.
Thank you for the solution, will try to do a how to edit gcodetools.py if at all possible.
The following user(s) said Thank You: AgentWD40

Please Log in or Create an account to join the conversation.

More
14 Oct 2020 01:40 #186052 by AgentWD40
It might not be too bad to set up the plugin to read a material.cfg file and give the user a drop down to select a material.
The following user(s) said Thank You: Doug @ Design8Studio.com

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.094 seconds
Powered by Kunena Forum