python help

More
9 years 10 months ago #84517 by jtc
Replied by jtc on topic python help
jtctech.pt/download/dxf_drilling_v0.1.rar

most part of the code are documented. As I say before is not finished, but is working.


João

Please Log in to join the conversation.

More
9 years 10 months ago #84526 by phillc54
Replied by phillc54 on topic python help
This may be of some help.

Please Log in to join the conversation.

More
9 years 10 months ago #84527 by beltramidave
Replied by beltramidave on topic python help
Thank you!

Please Log in to join the conversation.

More
9 years 10 months ago #84532 by andypugh
Replied by andypugh on topic python help
Did you look at my (fairly simple) example?

Please Log in to join the conversation.

More
9 years 10 months ago #84533 by beltramidave
Replied by beltramidave on topic python help
Andy, Are you talking about the bender example? I haven't had much time to look at any of the ideas yet in detail.
Thanks

Please Log in to join the conversation.

More
9 years 10 months ago #84534 by andypugh
Replied by andypugh on topic python help
Yes. It allows you to type in bends and angles in the GUI (and, with more work, save and load from file). Not a big step to make it XY hole positions.

Please Log in to join the conversation.

More
9 years 10 months ago #84540 by beltramidave
Replied by beltramidave on topic python help
I am still at Ver. 2.5, so I am guessing that it will not work.

Please Log in to join the conversation.

More
9 years 10 months ago #84546 by andypugh
Replied by andypugh on topic python help

beltramidave wrote: I am still at Ver. 2.5, so I am guessing that it will not work.


Well, you won't be able to simply run the demo config as-is.

But, making the same changes to a 2.5 config ought to work.
In the INI file this part loads the table GUI:
Code:
# add GladeVCP panel where PyVCP used to live: EMBED_TAB_NAME=Bending EMBED_TAB_COMMAND= gladevcp -c bender -x {XID} -u bender.py bender.ui

bender.ui is the glade GUI, bender.py does the actions.

You could edit the UI with Glade to have the columns you want.

bender.py contains Python code that handles editing values and adding/removing lines in the table. This is also where file save / load would go, but it isn't currently there. Currently there is a bit of code in here that runs when the "start" button on the GUI is pressed, but it would probably be better if this was operated by a hardware button, which is fairly easy to do. When the "Start" button is pressed all that happens is that the g-code program bender.ngc is run. This could contain anything, and is quite possibly the only file (other than the INI) that would need to be changed to make this into a driller rather than a bender.

Please Log in to join the conversation.

More
9 years 10 months ago #84548 by beltramidave
Replied by beltramidave on topic python help
Andy,
Thanks again for your input into this. I have not tried using Glade yet, so I am going to have to look into this further. I was hoping to have another tab to click on and then fill in a table all in Axis. Your suggestion may work for me,but it will have to wait until I have more time to look into it as I am trying to finish up another project first.
I appreciate your help!

Please Log in to join the conversation.

More
9 years 10 months ago #84549 by andypugh
Replied by andypugh on topic python help

beltramidave wrote: I have not tried using Glade yet, so I am going to have to look into this further. I was hoping to have another tab to click on and then fill in a table all in Axis.


That is exactly what you would get.

Attachment not found



(This is running in a VM on the Mac, which is why there is a realtime delay)

Please Log in to join the conversation.

Time to create page: 0.220 seconds
Powered by Kunena Forum