How can I configure the program to not add a stroke width to paths in an Opened DXF?
Currently:
Preventing stroke width on DXF open
Preventing stroke width on DXF open
Last edited by chrisjj on Sun Apr 14, 2013 2:28 am, edited 1 time in total.
Re: Preventing stroke width on DXF open
So in either the Inkscape window, or SVG file, it is a square path, filled but with no stroke? Oh wait, no, you're showing a Rectangle shape (configured as a square), rather than a path. Then you Save As DXF. And then when you open the DXF again in Inkscape, the rectangle shape has been changed to a path? I just want to make sure I understand the problem correctly.
I would guess that when Inkscape saves as DXF it automatically converts shapes into paths. It seems like Inkscape must have to guess about what kind of style parameters to use. ("style" includes color, opacity, stroke, stroke width, and several other values) I wonder if you convert shape to path (Object to Path) before saving as DXF, if that would solve the problem? (After you do Object to Path, you can set the style for filled with no stroke.) (Or whatever you want )
I would guess that when Inkscape saves as DXF it automatically converts shapes into paths. It seems like Inkscape must have to guess about what kind of style parameters to use. ("style" includes color, opacity, stroke, stroke width, and several other values) I wonder if you convert shape to path (Object to Path) before saving as DXF, if that would solve the problem? (After you do Object to Path, you can set the style for filled with no stroke.) (Or whatever you want )
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Preventing stroke width on DXF open
brynn wrote: I wonder if you convert shape to path (Object to Path) before saving as DXF, if that would solve the problem?)
Thanks but it doesn't.
Re: Preventing stroke width on DXF open
chrisjj wrote:brynn wrote: I wonder if you convert shape to path (Object to Path) before saving as DXF, if that would solve the problem?)
Thanks but it doesn't.
Hhmm, interesting! Well, that was my best shot, so these next comments probably won't help much either.
I'm just wondering if you could save an SVG every time you save a DXF. Then if you ever need to edit the DXF, you can open the SVG, edit it, and save again as DXF (and be sure to re-save the SVG again, with the new edit). I'm just thinking that DXF is an AutoCAD format, and Inkscape is not an AutoCAD program. Maybe Inkscape is just not capable of editing a DXF file? And please note all the "maybes" and "wonderings". I'm no expert on DXF
The only other tidbit I might be able to offer, is that maybe the Files chapter of the manual will have some comments about Inkscape's ability with DXF.
Hopefully someone else will be able to explain
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Preventing stroke width on DXF open
brynn wrote:I'm just wondering if you could save an SVG every time you save a DXF.
Thanks, but I can't. Most of the programs in which I save DXF do not save SVG.
brynn wrote:Maybe Inkscape is just not capable of editing a DXF file?
I've seen no evidence of that.
brynn wrote:maybe the Files chapter of the manual will have some comments about Inkscape's ability with DXF.
In the future, you mean? That would be nice. At the moment it saying nothing useful. Just:
.dxf (AutoCAD) Imported via internal script. The import is geared for AutoCAD release 13 and newer files (use QCad to update older files). Note that the imported objects may be very small, use 4 to zoom in on them.
Thanks anyway for the suggestion.
Re: Preventing stroke width on DXF open
chrisjj wrote:brynn wrote:I'm just wondering if you could save an SVG every time you save a DXF.
Thanks, but I can't. Most of the programs in which I save DXF do not save SVG.
I'm confused. In your op you show the filled rectangle in Inkscape. What I meant is saving that file as SVG. Then save as DXF. Then you'll always have an editable SVG. So if you later need to edit the DXF file, you can open the last SVG version, edit that, save an updated SVG and then save again as DXF.
Or do you mean that you just made that first screenshot as an illustration? Do you normally not use Inkscape to create the DXF?
At first I was thinking, if you're using some other program to create the DXF, maybe it was something about that program, rather than the DXF format, that was causing the problem. But I just did a test with Inkscape alone. I saved a black filled square shape in a file as DXF. When I opened in Inkacape again, it had become 4 disinct open paths, in the form of a square, but not actually connected.
I did notice a few options, both in the Save As dialog, and a few more when I opened the DXF file. Unless one of those options affects this (and it didn't look like it would) it looks like this is just the way Inkscape handles DXF. But again, maybe someone else will know something that I don't
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Preventing stroke width on DXF open
brynn wrote:you just made that first screenshot as an illustration?
Correct.
brynn wrote:Do you normally not use Inkscape to create the DXF?
I often use a CAD program.
brynn wrote:At first I was thinking, if you're using some other program to create the DXF, maybe it was something about that program, rather than the DXF format, that was causing the problem.
My illustration with Inkscape show otherwise.