With the
latest version (trunk\source) I'm experiencing a few bugs (some I had already
with a few of the previous versions as well):
1.
With the latest version the about screen isn't popping up.
With the
previous version for windows: The
compressed file did not contain the images\dxf2gcode_logo.png - this had the
result that the about screen did not show this picture and instead it showed a
broken picture (which indicates file cannot be found, obviously)
2.
When you start dxf2gcode.py
it shows the following message in the message box
Version pyQT Beta ($Date:: 2013-07-24 20:22:16#$:)
while one of the previous dxf2gcode showed the following
Version pyQT Beta ($Date: 2013-04-01 20:05:08 +0200 (Mo, 01 Apr 2013) $)
Also I would say the current version should show pyQT4 instead of pyQT.
3.
Then with the file I have added to this Topic "2DSAMP2.DXF" (sample
file from gcode2000) I am experiencing some selecting errors. For instance, if
I click on the most left circle (shape 0) it automatically selects the big
outer shape (shape 2) - the same happens when I try to select the other circle
(shape 1). Also the outer shaper (shape 2) is damn hard to deselect. Even if
you succeed in deselecting it you can see it select him again (99%)…
So when
trying to detect where I click it makes some sort of fault (also happened in
the previous version).
4.
When you export the shapes it says (by default) save as G-CODE for EMC2 (*.ngx)
So what you actually would expect when you press save, that it saves a file as “filename.ngx”, but instead it saves it as “filename.ngx.ngx”. Now I know this is not something you have just recently, but I cannot understand why you would do it like this. I cannot come up with any other program that saves a file with a double output_format.
A consequence of this is that when you have already exported shapes in to a file, let’s say “filename.ngx.ngx”, then when you double click on this file a window will pop-up with the message “filename.ngx.ngx” already exists. Do you want to replace it? Then when you press yes what will happen is that it saves it as “filename.ngx.ngx.ngx”. So basically it did not replace the file at all, but made a new one with “.ngx” behind it. So that double output_format is causing some unwanted situations.
About bug 1 it states the following reason
...\dxf2gcode.py, line 408, in about "</body></html>") % (c.VERSION, c.REVISION,c.DATE,c.AUTHOR) UnicodeDecodeError: �scii' codec can't decode byte 0c3 in position 24: ordinal not in range(128)
So bug 1 and 2 are related must have something to do with Core.constants
On Sunday, August 11, 2013 3:13:02 PM UTC+2, JP wrote:
With the latest version (trunk\source) I'm experiencing a few bugs (some I had already with a few of the previous versions as well):
1.
With the latest version the about screen isn't popping up.
My mistake, i will fix this for next issue. Thats the 2nd time i deleted some of the required files. Next time i won't delete anything ...With the previous version for windows:� The compressed file did not contain the images\dxf2gcode_logo.png - this had the result that the about screen did not show this picture and instead it showed a broken picture (which indicates file cannot be found, obviously)
2.
When you start dxf2gcode.py
it shows the following message in the message box
Version pyQT Beta ($Date:: 2013-07-24 20:22:16#$:)
while one of the previous dxf2gcode showed the following
Version pyQT Beta ($Date: 2013-04-01 20:05:08 +0200 (Mo, 01 Apr 2013) $)
Also I would say the current version should show pyQT4 instead of pyQT.
3.
Then with the file I have added to this Topic "2DSAMP2.DXF" (sample file from gcode2000) I am experiencing some selecting errors. For instance, if I click on the most left circle (shape 0) it automatically selects the big outer shape (shape 2) - the same happens when I try to select the other circle (shape 1). Also the outer shaper (shape 2) is damn hard to deselect. Even if you succeed in deselecting it you can see it select him again (99%)�
So when trying to detect where I click it makes some sort of fault (also happened in the previous version).
I worked a lot on the selecting function of pyQt4 and also on the function of Tkinter before. But finally i didn't succeed to get a better result then this. The only way to improve selecting is to zoom into the plot and then select based on the higher zoom, this improves accuracy.
4.
When you export the shapes it says (by default) save as G-CODE for EMC2 (*.ngx)
No special reason for this. I just copied it from the Tkinter Version and changed it to match with pyQt4 but it seems like i did forget something.� Don't hesitate to improve it, i would apreciate that.So what you actually would expect when you press save, that it saves a file as �filename.ngx�, but instead it saves it as �filename.ngx.ngx�. Now I know this is not something you have just recently, but I cannot understand why you would do it like this. I cannot come up with any other program that saves a file with a double output_format.
A consequence of this is that when you have already exported shapes in to a file, let�s say �filename.ngx.ngx�, then when you double click on this file a window will pop-up with the message �filename.ngx.ngx� already exists. Do you want to replace it? Then when you press yes what will happen is that it saves it as �filename.ngx.ngx.ngx�. So basically it did not replace the file at all, but made a new one with �.ngx� behind it. So that double output_format is causing some unwanted situations.
--
--
You received this message because you subscribed to the Google
Groups-group "dxf2gcode-dev".
To post a message, send mail to dxf2gc...@googlegroups.com
To unsubscribe, send mail to dxf2gcode-de...@googlegroups.com
See http://groups.google.de/group/dxf2gcode-dev?hl=en for more options
and the dxf2gcode project page at http://code.google.com/p/dxf2gcode/
---
You received this message because you are subscribed to the Google Groups "dxf2gcode-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dxf2gcode-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
�
�
I think bug 3 isn't PyQt related; it has
to with the function self.currentItems=self.items(rect) (located in
mycanvasclass.py). This one isn't working properly. Zooming doesn't make a
difference at all! Check for instance (in 2DSAMP2.DXF) the two outer lines (the most left and right one of the big shape)
if you want to select them from the outside you really have to click (almost)
on the black line, but if you approach it from the inside then you can select
the item WAY earlier. With this design you can really find all kind of errors like this.
I also found a new bug (this one has to something with treehandling.py)
see the attached file Drawing2.
Here are three boxes on three layers. Then if you look in the entities tab you
will see that they are ordered 0 1 2 but in the layer tab they are ordered as 0
2 1.
The error you get is that when you
select an item, for instance item 1 in the entities tab and then you go to the
layer tab and select item 0, then switch back to the entities tab you will
directly see the error.
It isn't updating correctly (if you select an item in the entities tab you only
change a selection of the name in the layer tab, but the [en] selection stays
the same with what you had pressed in the layer tab. Vice versa…)
Also found a bug with shape 0 when you optimize it shows the line really short , or not at all (only the arrows of shape 0 stays; the line, and number disappear). But when you optimize and export then it will appear again…
So two new bugs, together with bug 3 of the first post are in my opinion really bugs in the code and are not related to PyQt at all. Sadly enough I find it way too hard to fix it in this code. Maybe somebody else can look at it.
I think bug 3 isn't PyQt related; it has to with the function self.currentItems=self.items(rect) (located in mycanvasclass.py). This one isn't working properly. Zooming doesn't make a difference at all! Check for instance (in 2DSAMP2.DXF) the two outer lines (the most left and right one of the big shape) if you want to select them from the outside you really have to click (almost) on the black line, but if you approach it from the inside then you can select the item WAY earlier. With this design you can really find all kind of errors like this.
I also found a new bug (this one has to something with treehandling.py)
see the attached file Drawing2.
Here are three boxes on three layers. Then if you look in the entities tab you will see that they are ordered 0 1 2 but in the layer tab they are ordered as 0 2 1.
The error you get is that when you select an item, for instance item 1 in the entities tab and then you go to the layer tab and select item 0, then switch back to the entities tab you will directly see the error.
It isn't updating correctly (if you select an item in the entities tab you only change a selection of the name in the layer tab, but the [en] selection stays the same with what you had pressed in the layer tab. Vice versa�)
�
Also found a bug with shape 0 when you optimize it shows the line really short , or not at all (only the arrows of shape 0 stays; the line, and number disappear).� But when you optimize and export then it will appear again�
�
So two new bugs, together with bug 3 of the first post are in my opinion really bugs in the code and are not related to PyQt at all. Sadly enough I find it way too hard to fix it in this code. Maybe somebody else can look at it.
--
Great find of bug 3. It indeed looks quite similar
to that one. Will look into that later on.
Yeah Xavier did indeed a great job, although there were some bugs and functions
not completed. I have fixed them all (at least, the ones I noticed ;) ). Still,
I want to do some work on the optimal path selection in the tree. At the moment
it isn't working as I would like to see it. Now you have to check them
individually (even with the shortcut ctrl+o), but I want that it works with the
already highlighted selections. But momentarily I don't know what function I
could use for that - have to search the net for it or I might come up with some
kind of trick.
For bug6 I don't think I will find the solution in shape.py I think I have to
search it in the function where optimal path is located. Since now I know what
it actually does: it calculates one path to much while still having only three
lines. So what it does it places two of them on each other. I can see this if I
look closely to the displayed numbers.
But I will find that error later. Unless somebody else wants to do it :P
I have also updated the title bar a bit: added the icon and the file location
of the current file - makes it look more professional.
Alright bug 3 is sort of fixed (it's still present with the rubber band, but yeah that's also not really meant for
accurate selection anyway).
Tried to fix it with self.items(rect) in combination with QRectF, but sadly
that one does not support Floats, even though
http://nullege.com/codes/search/PyQt4.QtCore.QRectF states it should accept
it...
But I used http://www.riverbankcomputing.com/pipermail/pyqt/2013-April/032612.html
in combination with the old method (otherwise it was too slow if I wanted some
high accuracy in combination with a large amount of shapes). Result is with a
single click you can only select a single item (this is in the exact selection range
as before but now it will select the item which is located the nearest to your
mouse point).
bug 6 remains, and will not fix that one atm - currently got no time for that.
Alright bug 3 is sort of fixed (it's still present with the rubber band, but yeah that's also not really meant for accurate selection anyway).
Tried to fix it with self.items(rect) in combination with QRectF, but sadly that one does not support Floats, even though http://nullege.com/codes/search/PyQt4.QtCore.QRectF states it should accept it...
But I used http://www.riverbankcomputing.com/pipermail/pyqt/2013-April/032612.html in combination with the old method (otherwise it was too slow if I wanted some high accuracy in combination with a large amount of shapes). Result is with a single click you can only select a single item (this is in the exact selection range as before but now it will select the item which is located the nearest to your mouse point).
bug 6 remains, and will not fix that one atm - currently got no time for that.
On Wednesday, August 14, 2013 10:14:35 PM UTC+2, JP wrote:Great find of bug 3. It indeed looks quite similar to that one. Will look into that later on.
Yeah Xavier did indeed a great job, although there were some bugs and functions not completed. I have fixed them all (at least, the ones I noticed ;) ). Still, I want to do some work on the optimal path selection in the tree. At the moment it isn't working as I would like to see it. Now you have to check them individually (even with the shortcut ctrl+o), but I want that it works with the already highlighted selections. But momentarily I don't know what function I could use for that - have to search the net for it or I might come up with some kind of trick.
For bug6 I don't think I will find the solution in shape.py I think I have to search it in the function where optimal path is located. Since now I know what it actually does: it calculates one path to much while still having only three lines. So what it does it places two of them on each other. I can see this if I look closely to the displayed numbers.
But I will find that error later. Unless somebody else wants to do it :P
I have also updated the title bar a bit: added the icon and the file location of the current file - makes it look more professional.
--
Well that's not the bug 6 that I had in
mind - let's call that one number 7 :P
but I have seen this error as well, but if I reproduce the exact same picture
with AutoCAD 2004... then this bug does not appear. So then we have the
question is this really a bug of dxf2gcode...
So this one is not yet clear to me.
But all AutoCAD 2004 files (don't know if other versions also) show two error
messages in the beginning of the loading, even though everything is loaded
correctly (check the added file to this post)...
I have partially fixed issue 11 Entry/Exit moves should start in
the middle of an edge
Implemented a split edges function specially for EMC users
http://code.google.com/p/dxf2gcode/issues/detail?id=11
not yet functioning for arcs and rect (option is selectable in option list and
default is set in config.cfg – default is false) and I have to say this works
really great especially with the fix of bug 3
bug 6 has to do with: when you go to options=>optimize paths. Just run that
file I have added to that post (Drawing2.dxf, have added it again to this post)
then click optimize and you will see what I meant. Watch the arrows (those dark
ones). You will also see those two error messages
So with bug 6 (saw there went something
wrong with previous post (no attachment))
Please see the attachments. This error happens when I work on multiple layers.
With shape 0 when you optimize it shows the G0 line really short,(or not at
all). What it probably does is that it calculates one path to optimize too
much. So what it does it places two of them on each other Look at path (3,1)
and (0,1) they are placed on each other... Also where is (1.1)????
When working on multiple layers the optimization is just not working as it is
supposed to.
But when you press export it is sort of fixed (still wrong numbering though).
Please just try some things out. I think the error is quite easy to fix as soon
as we have located the origin of the problem.
Let me know what you think (also about the displayed errors of "Drawing2.dfx" - which happens always with AutoCAD2004, while it still does shows everything....)
So with bug 6 (saw there went something wrong with previous post (no attachment))
Please see the attachments. This error happens when I work on multiple layers.
With shape 0 when you optimize it shows the G0 line really short,(or not at all). What it probably does is that it calculates one path to optimize too much. So what it does it places two of them on each other Look at path (3,1) and (0,1) they are placed on each other... Also where is (1.1)????
When working on multiple layers the optimization is just not working as it is supposed to.
But when you press export it is sort of fixed (still wrong numbering though).
Please just try some things out. I think the error is quite easy to fix as soon as we have located the origin of the problem.
Let me know what you think (also about the displayed errors of "Drawing2.dfx" - which happens always with AutoCAD2004, while it still does shows everything....)
But when you optimize and export then it will appear again�
On Saturday, August 17, 2013 5:21:51 PM UTC+2, JP wrote:
Well that's not the bug 6 that I had in mind - let's call that one number 7 :P
but I have seen this error as well, but if I reproduce the exact same picture with AutoCAD 2004... then this bug does not appear. So then we have the question is this really a bug of dxf2gcode...
So this one is not yet clear to me.
But all AutoCAD 2004 files (don't know if other versions also) show two error messages in the beginning of the loading, even though everything is loaded correctly (check the added file to this post)...
I have partially fixed issue 11 Entry/Exit moves should start in the middle of an edge
Implemented a split edges function specially for EMC users http://code.google.com/p/dxf2gcode/issues/detail?id=11
I also did implement something which kind of fixed this issue befor. Within the context menu of the canvas you are able to change the starting point of the shape. Did you check that too.not yet functioning for arcs and rect (option is selectable in option list and default is set in config.cfg � default is false) and I have to say this works really great especially with the fix of bug 3
bug 6 has to do with: when you go to options=>optimize paths. Just run that file I have added to that post (Drawing2.dxf, have added it again to this post) then click optimize and you will see what I meant. Watch the arrows (those dark ones). You will also see those two error messages
--
Traceback (most recent call last):
File "./dxf2gcode.py", line 354, in exportShapes
pp_file_nr = self.MyPostProcessor.output_format.index(fileExtension)
ValueError: '' is not in list
Traceback (most recent call last):
File "./dxf2gcode.py", line 354, in exportShapes
pp_file_nr = self.MyPostProcessor.output_format.index(fileExtension)
ValueError: '.ngc' is not in list
No I'm not using Linux...
But this error that you have seems to be related to PyQt and not really our
sourcecode, since on windows it just works as it is supposed to.
"default_name = os.path.join(g.config.vars.Paths['output_dir'],
(fileBaseName + ".ngc"))" this is really a dirty fix, which I
dislike...but we can do something like that with the file extension.
The ngx ngc is definitely wrong... saw that already a long time ago but yeah
you are free to change that to whatever you want just change it in the config
file.. (like you did).
--
"default_name = os.path.join(g.config.vars.Paths['output_dir'], (fileBaseName + ".ngc"))" this is really a dirty fix, which I dislike...but we can do something like that with the file extension.
Alright I have fixed it
Just update it from the svn ;)
What it now does: it checks which output format is selected. If it's not
present in the name it adds it.
So if you try to save a file as test.txt then it changes it to test.txt.ngc (if
ngc was selected). I believe other programs, at least in windows, act in the precise same way.
Well I'm not going to change it to that. If
another developer thinks it should be changed ok, but I'm not going to do that :P
This is how notepad and all those other basic programs do it, so I stay with
this logic! But the source code is available for a reason.. you can tweak it
the way you want to... so go ahead tweak it.
ps I will only still make a small change with overwriting files that already
exists such that it will not add this additional file extension.
This is how notepad and all those other basic programs do it, so I stay with this logic!
I'm sorry but you are truly missing the
whole concept of the file type format selection. This has nothing to do with
dos or what so ever!!!
And I still will not implement this truly dirty fix. It is now as like all
programs work even non dos based programs!!!
The only thing that I am still willing to add is in the type selection an
additional option such that you can save it to whatever you want. But for now
you should change it in the config file or make dirty fixes like that one.
You still don't get the idea of the list
where you can select file types.
When you select
Files of type: All Files (*.*) (or something like that)
Then only you could specify whatever you want (even no extension at all). In
all other case it should make sure it has the specified file type extension.
And this idea has nothing to do with what platform you are working on. This is
just how it works, so don't focus too much on a program that I had listed as an
example, because I can name a million programs that works like this.
Now we don't have this option All Files (*.*). Voila, so let’s quit this
conversation because this truly leads to nothing. Unless you have found a
different problem.