Case sensitivity - dxf2gcode integration
23 Jan 2016 19:21 #68993
by wycker
Case sensitivity - dxf2gcode integration was created by wycker
When integrating dxf2gcode in linuxcnc, case sensitivity comes into play if the extension is in capital letters (.DXF). In my case, I made the following changes:
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
PROGRAM_EXTENSION = .py Python Script
PROGRAM_EXTENSION =.DXF 2D ACad/QCad Drawing
PROGRAM_EXTENSION =.dxf 2D ACad/QCad Drawing
dxf = dxf2gcode.py
DXF = dxf2gcode.py
PROGRAM_FILTER = python
PROGRAM_EXTENSION = *.py Python Script
Is there a way to remove case sensitivity (as applies to the .dxf extension) without redundancy?
I ran into this problem when I downloaded a sample .DXF file from the web. The edit above was my weak attempt at solving the issue. However, it doesn't cover all possibilities.
I have a little programming knowledge and that helped me see the problem, but not everyone is in the same boat. It would also be a relatively simple fix to point out to users that extensions would need to be converted to lowercase, at the very least.
Thanks in advance
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
PROGRAM_EXTENSION = .py Python Script
PROGRAM_EXTENSION =.DXF 2D ACad/QCad Drawing
PROGRAM_EXTENSION =.dxf 2D ACad/QCad Drawing
dxf = dxf2gcode.py
DXF = dxf2gcode.py
PROGRAM_FILTER = python
PROGRAM_EXTENSION = *.py Python Script
Is there a way to remove case sensitivity (as applies to the .dxf extension) without redundancy?
I ran into this problem when I downloaded a sample .DXF file from the web. The edit above was my weak attempt at solving the issue. However, it doesn't cover all possibilities.
I have a little programming knowledge and that helped me see the problem, but not everyone is in the same boat. It would also be a relatively simple fix to point out to users that extensions would need to be converted to lowercase, at the very least.
Thanks in advance
Please Log in or Create an account to join the conversation.
24 Jan 2016 09:08 #69029
by ArcEye
Replied by ArcEye on topic Case sensitivity - dxf2gcode integration
Linux is case sensitive.
If you ask it to find xxx.dxf, it will not find xxx.DXF
You can have
PROGRAM_EXTENSION =.DXF,.dxf 2D ACad/QCad Drawing
and save one line in your ini file
The better solution is to stop using capitalised extensions.
That is a nasty windoze habit which goes right back to the enforced capitalisation and 8.3 filename limits with the first 16 bit DOS
Unfortunately some software producers think it gives their software more impact, to 'shout' the file extension
regards
If you ask it to find xxx.dxf, it will not find xxx.DXF
You can have
PROGRAM_EXTENSION =.DXF,.dxf 2D ACad/QCad Drawing
and save one line in your ini file
The better solution is to stop using capitalised extensions.
That is a nasty windoze habit which goes right back to the enforced capitalisation and 8.3 filename limits with the first 16 bit DOS
Unfortunately some software producers think it gives their software more impact, to 'shout' the file extension
regards
Please Log in or Create an account to join the conversation.
Time to create page: 0.070 seconds