LinuxCNC Features - a kind of NGCGUI

More
11 years 9 months ago #54960 by Russianwolf
Replied by Russianwolf on topic LinuxCNC Features - a kind of NGCGUI
Privet Nick

I would love to work on this from the view of a completely new user (I am new to CNC, Linux, LinuxCNC and to your efforts here).

I have copied the files from GitHub onto my Linux computer that also has LinuxCNC installed. I only just got my machine up and running.

If you can provide simple instructions on how to install (remember that Linux and LinuxCNC are new to me so the instructions need to be pretty basic), I am more than willing to complete the install and see what I can get to work and what I can't.

Mike

Ya izuchil ryskie yazik kogda ya beil na flote, no ya amerikanskie

Sorry, my Russian is VERY rusty. :unsure:

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

More
11 years 9 months ago #54972 by Nick
Replied by Nick on topic LinuxCNC Features - a kind of NGCGUI
Hi!

Have you tried to do installation instructions from readme.md?

See here at the bottom of the page.
github.com/cnc-club/linuxcnc-features

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

More
11 years 9 months ago #55315 by FernV
Replied by FernV on topic LinuxCNC Features - a kind of NGCGUI
Hi Nick,

I have a little problem that needs your help :

When I copy a Feature the new Feature has the same ID and if it uses #<self_id-.....> I end up with 2 features with the same ID and it bugs. If I simply add a new feature, it gives it a new ID which is OK.

In this function
def copy(self, *arg) :
f,iter = self.get_selected_feature()
if f :
path = self.treestore.get_string_from_iter(iter)
xml = self.treestore_to_xml()
src = xml.find(".//*[@path='%s']"%path)
cp = deepcopy(src)
parent = src.getparent()
parent.insert(parent.index(src)+1, cp)
self.treestore_from_xml(xml)
self.action(xml)

after deepcopy it should give a new ID. I do not know python enough so I am asking you how I should do it ?

Regards
Fern

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

More
11 years 8 months ago #55709 by turbospeedskater
Replied by turbospeedskater on topic LinuxCNC Features - a kind of NGCGUI
Hi Nick,

first of all: many thanks for writing this great tool and releasing it to the public!!!!

I spent the last days playing with the software and porting all subroutines I had written for
ngcgui to it. That job is mostly done, and when 100% finished, I would like to release it to
the public.

During my tests I have found two things that don't work as expected (at least not the way I expect :) )

1.) The issue with copying features and the #<self-id... FernV mentioned in another post,

and

2.) A grouping problem:
To make it simple: Try from scratch to make two groups each having two pocket elements:
1st add two pockets to the 1st group, then add two pockets to the 2nd group. During this will
find the 1st pocket you have put into the 2nd group will move from the 2nd group to the 1st
group. ... and there is no way to bring it back to the 2nd... Same issue is is with arrays....

I have spend some days now to understand your python code (and I tried to find a working
IDE for python without success...), but you are using too many external functions and libraries
that I don't know. So I have a basic idea how your code works, but no chance to solve the a.m.
problems on my own. (Normally I write software for microcontrollers for machine control, so
I am not an expert when it comes to "XML", "User interface", "Windows" etc... :( )

If you need more info, please give me a hint, but I think that should explain what I mean...

BTW: How do you debug your python code? I am still looking for a good way to work on
bigger python projects....

best regards,

Martin.

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

More
11 years 8 months ago #55712 by Nick
Replied by Nick on topic LinuxCNC Features - a kind of NGCGUI
Hi!

Great! I'll be looking forward for your subroutines!

My IDE is gedit :). In fact it's the best choice for me.
Python is interpreter so usually debuging is easy - i just add print into the code. Or if there are any syntax or dev nul errors - they are shown in the console.

turbospeedskater wrote: Hi Nick,
1.) The issue with copying features and the #<self-id... FernV mentioned in another post,
2.) A grouping problem:

1. Can you explain this bug?
2. I've noticed that problem to, just have no time to get rid of this bug. Anyway I thought it is possible to remove the element from the group and move it to another.

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

More
11 years 8 months ago #55716 by turbospeedskater
Replied by turbospeedskater on topic LinuxCNC Features - a kind of NGCGUI
Hi Nick,

to explain bug #1:

Start from scratch.
1.) Add "Tool->set cutting parameters"
2.) Add "Tool->set tool parameters"
3.) Add "Cutting->Circles->Circle from center"
4.) Add "Grouping->Array"
5.) Put the circle from step 3 inside the array
6.) Click "refresh" and you see 5 circles in side LinuxCNC. So far so good, but now it comes:

7.) Select the array and click on "copy".
8.) Now you have the array twice.
9.) Click "refresh" again. Now you see an error message inside LinuxCNC.

Root cause is (at least I think so): the unique-ID of an element is copied, so it is not unique anymore...

...I hope this helps locating the problem....

best regards,

Martin.

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

Time to create page: 0.272 seconds
Powered by Kunena Forum