DXF Converson distorts image created in SVG

Bug #606071 reported by jim sutton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Medium
Unassigned

Bug Description

I continue to receive reports of DXF file distortions from the machinist assisting me in creating a medallion.

My design in SVG looks like this (saved as png):
[img]http://www.wirelesstechradio.com/images/DharmaShield8.png[/img]

However, when SAVED AS DXF and loaded into CAMBAN program, the DXF displays like this with many parts rearranged:

[img]http://www.wirelesstechradio.com/images/ScreenshotofDXFfile.png[/img]

Here's the SVG file:
[url]http://www.wirelesstechradio.com/images/DharmaShield8.svg[/url]

Inkscape v0.47 OS WIN7 Ultimate 64bit

Any idea what might be going on here? All help is appreciated; my time on this project is running out.
Jim

Tags: dxf exporting
Revision history for this message
su_v (suv-lp) wrote :

reproduced with Inkscape r9607 (trunk) on OS X 10.5.8

tags: added: dxf exporting
Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

related discussion in Inkscape Forum:
<http://www.inkscapeforum.com/viewtopic.php?f=5&t=5604>

related bug reports (possibly all duplicates of bug #487648):
Bug #600473 “dxf save for autocad does not translate correctly”
Bug #585021 “save as .dxf does not handle transformations”
Bug #487648 “Problem with DXF save files”

Revision history for this message
Alvin Penner (apenner) wrote :

attached is a version of the dxf output I obtained by using a combination of the methods of Bug 600472 and Bug 600473. Basically what I did was to select each group and use the procedure Object->Ungroup in order to remove transform elements.

I am working on a permanent solution to this but it may take a few weeks to complete, it is a bit more complicated than expected.

Revision history for this message
Alvin Penner (apenner) wrote :

a new version of the file dxf_outlines.py is attached to Bug 600473, https://bugs.launchpad.net/inkscape/+bug/600473/comments/6

this will take account of the transform element. Could you try this and see if it helps?
When I run this on the file DharmaShield8.svg the text element '2010' is not output.
In order to output this text, it is necessary to select the text and use the menu item Path->Object to Path.

Revision history for this message
jim sutton (jim-sutton) wrote : Re: [Bug 606071] Re: DXF Converson distorts image created in SVG

I found another FIX resource:

ttp://www.bobcookdev.com/inkscape/inkscape-dxf.html<http://www.bobcookdev.com/inkscape/inkscape-dxf.html>

He developed it for version .46 it says.

And this update to Bob Cook's work:
http://tim.cexx.org/?p=590

I used this latter update and followed ~suv 's instructions to correct my
most recent work and the problem's have disappeared. I applied the clean up
instructions and loaded the script update so I cannot attribute the correct
to either singular source. I would say the problem has not resurfaced,
though.

Jim

On Sun, Jul 18, 2010 at 1:33 PM, Alvin Penner <email address hidden> wrote:

> a new version of the file dxf_outlines.py is attached to Bug 600473,
> https://bugs.launchpad.net/inkscape/+bug/600473/comments/6
>
> this will take account of the transform element. Could you try this and see
> if it helps?
> When I run this on the file DharmaShield8.svg the text element '2010' is
> not output.
> In order to output this text, it is necessary to select the text and use
> the menu item Path->Object to Path.
>
> --
> DXF Converson distorts image created in SVG
> https://bugs.launchpad.net/bugs/606071
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Inkscape: A Vector Drawing Tool: Confirmed
>
> Bug description:
> I continue to receive reports of DXF file distortions from the machinist
> assisting me in creating a medallion.
>
> My design in SVG looks like this (saved as png):
> [img]http://www.wirelesstechradio.com/images/DharmaShield8.png[/img]
>
> However, when SAVED AS DXF and loaded into CAMBAN program, the DXF
> displays like this with many parts rearranged:
>
> [img]http://www.wirelesstechradio.com/images/ScreenshotofDXFfile.png[/img]
>
>
>
> Here's the SVG file:
> [url]http://www.wirelesstechradio.com/images/DharmaShield8.svg[/url]
>
> Inkscape v0.47 OS WIN7 Ultimate 64bit
>
> Any idea what might be going on here? All help is appreciated; my time on
> this project is running out.
> Jim
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/inkscape/+bug/606071/+subscribe
>

Revision history for this message
su_v (suv-lp) wrote :

> followed ~suv 's instructions

To clarify: this refers to my comments in the InkscapeForum topic:
<http://www.inkscapeforum.com/viewtopic.php?f=5&t=5604>
and specifically to the latest which deals with a mix of layers with and without a transform attribute (some have been added after the page was resized, some are older):
<http://www.inkscapeforum.com/viewtopic.php?f=5&t=5604#p24005>

> I found another FIX resource:

I would not recommend to install/mix different DXF output extensions (written for older Inkscape versions) unless you verified that
a) it does not overwrite more current versions of e.g. inkex.py
b) it is properly adapted to run under 0.47 (e.g. the specs for the inx files have changed)

Revision history for this message
Alvin Penner (apenner) wrote :

anyone interested in trying the new version posted at Bug 600473, comment 6?
I believe this should automatically take into account any transform elements that are present.

Revision history for this message
su_v (suv-lp) wrote :

The three versions of the DharmaShield8.svg file attached to the forum topic export correctly with regard to preserved transforms on groups and objects with the new version of dxf_outlines.py from bug #600473 (verified by viewing the DXF file in QCad).

Revision history for this message
Alvin Penner (apenner) wrote :

thanks ~suv, much appreciated.

Revision history for this message
jim sutton (jim-sutton) wrote :

Thanks ~suv, very much.
Jim

Revision history for this message
Alvin Penner (apenner) wrote :

- a new output routine to deal with the effects of transform elements has been posted in Bug 600473 comment 6
- https://bugs.launchpad.net/inkscape/+bug/600473/comments/6
- could you indicate whether this resolves the issue for you?
- if there are remaining problems which have not been addressed, would you be willing to file them as separate bug reports?

Changed in inkscape:
status: Confirmed → Incomplete
Revision history for this message
su_v (suv-lp) wrote :

Fix confirmed with Inkscape 0.48+devel r9819 on OS X 10.5.8
(refers to changes committed in r9640)

Linking as duplicate to more recent Bug #600473 “dxf save for autocad does not translate correctly”. Please add a comment here and revert the duplicate status if you don't agree and think these are different issues.

Changed in inkscape:
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.