Templot Club Archive 2007-2020                             

topic: 1661Exporting to DXF - something is not working for me
author remove search highlighting
 
posted: 22 Oct 2011 16:20

from:

leo_sandstrom
 
Sweden

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Hi

Hope someone can help me explain why my DXF exports look like the attached image.
(rails and timbers are distorted)
Seems to be some sort of rounding problem.

2094_221118_540000000.png2094_221118_540000000.png

I checked the help files and searched all over but didnt find anything.

Regards
/Leo

posted: 22 Oct 2011 19:20

from:

leo_sandstrom
 
Sweden

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
I might add that PDF export works fine, but I still got no idea as to why the dxf export looks like this.

Regards
/Leo

posted: 22 Oct 2011 22:34

from:

Martin Wynne
 
West Of The Severn - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Hi Leo,

Which program are you using to display the DXF? I can't reproduce that effect.

A good way to test exported DXF files from Templot is to re-import them into Templot as background shapes. main > background shapes > dxf import tab.

As a matter of interest, which method did you use to convert the H0 templates to N gauge?

Have you made any changes at main > program panel > program > expert > step size... ? For NMRA N scale (1:160) you should be seeing 4.14mm step size.

Please can you post the .box file from which this DXF was created.

regards,

Martin.

posted: 23 Oct 2011 00:17

from:

leo_sandstrom
 
Sweden

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Martin Wynne wrote:
Hi Leo,

Which program are you using to display the DXF? I can't reproduce that effect.

A good way to test exported DXF files from Templot is to re-import them into Templot as background shapes. main > background shapes > dxf import tab.

As a matter of interest, which method did you use to convert the H0 templates to N gauge?

Have you made any changes at main > program panel > program > expert > step size... ? For NMRA N scale (1:160) you should be seeing 4.14mm step size.

Please can you post the .box file from which this DXF was created.

regards,

Martin.
Hi Martin

I checked by reimporting the file into Templot and it works just fine, I also cheked the step size and its 4.14mm so that seems ok to.

I got a feeling that its the viewer thats messing up, strange thing is that I tried both Autodesks free DWG TrueView 2012 viewer and Solidworks DWG Editor.
Autodesks viewer can be found here: (600MB download...)
http://usa.autodesk.com/adsk/servlet/pc/index?siteID=123112&id=9078813

I attached the dxf file as well. But seing as it works when reimporting it Im sure its fine.

Ill check some of the programs listed in the DXF and beyond thread.
topic 815

As to how I converted the templates to N scale, I cant remember, that was one of the first things I did, so cant have been hard :)

Regards
/Leo
Attachment: attach_1208_1661_Y2_v26.dxf 180
Last edited on 23 Oct 2011 00:18 by leo_sandstrom
posted: 23 Oct 2011 00:39

from:

leo_sandstrom
 
Sweden

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Hi again

Downloaded Doublecad XT Pro and opened the dxf file in there only to find the exact same problem.
Its strange that I can reimport it into Templot and it looks fine, but trying to open the DXF export in 4 different programs yields the same result.

Ill see if I can get more information.

Regards
/Leo

posted: 23 Oct 2011 00:47

from:

leo_sandstrom
 
Sweden

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
I tried this:

Started a new Templot TDV session with standard preferences and press the workpad button.
Stored the default template and then exported it. Unfortunately the problem persists:

2094_221947_010000000.png2094_221947_010000000.png

Since this template is a larger scale its not as visible, but its still there, especially when zooming in closer.
Attachment: attach_1209_1661_market_street_11_10_23_0142_06_mm.dxf 208

posted: 23 Oct 2011 00:49

from:

leo_sandstrom
 
Sweden

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
And here is the corresponding DXF file.

Im sure this has a really simple solution, I just cant figure out what Im doing wrong :)
Maybe if someone sent me a dxf so I can try and open it when exported from someone elses Templot?

Regards
/Leo
Attachment: attach_1210_1661_market_street_11_10_23_0142_06_mm.dxf 201
Last edited on 23 Oct 2011 00:52 by leo_sandstrom
posted: 23 Oct 2011 03:12

from:

Martin Wynne
 
West Of The Severn - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Hi Leo,

The problem is the decimal separator character in the Windows international settings.

(Comma for decimal fractions instead of dot.)

There is a bug in Templot related to this, but I'm not sure it explains what you are seeing in DoubleCad.

Please could you draw a very simple DXF file in DoubleCad on your system and post it here. i.e. just a few straight lines at random. Thanks.

The reason it imports into Templot is that Templot ignores all the header stuff on import.

3am here and I'm too tired to write proper English, sorry.

Martin.

posted: 23 Oct 2011 10:14

from:

Alan Turner
 
Dudley - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
This is my export into DoubleCAD.

 
Attachment: attach_1211_1661_Example.bmp 183

posted: 23 Oct 2011 10:39

from:

leo_sandstrom
 
Sweden

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Martin Wynne wrote:
Hi Leo,

The problem is the decimal separator character in the Windows international settings.

(Comma for decimal fractions instead of dot.)

There is a bug in Templot related to this, but I'm not sure it explains what you are seeing in DoubleCad.

Please could you draw a very simple DXF file in DoubleCad on your system and post it here. i.e. just a few straight lines at random. Thanks.

The reason it imports into Templot is that Templot ignores all the header stuff on import.

3am here and I'm too tired to write proper English, sorry.

Martin.
Hi Martin

Thanks for the help so far, please dont loose any sleep over this, Im sure it can be solved somehow.

I think you misunderstood me when I said the imports work in Templot, what I meant is that I can export and reimport the same dxf file created in Templot with retained accuracy.

However, when I try to import a dxf file from either of the other programs the coordinates all end up as 0 in templot. I have not tried saving them in an older format, Ill try that as well and get back to you on the result.

Attached are two files, each created in different programs.

Regards
/Leo
Attachment: attach_1213_1661_Solidowrks_DWGeditor_saved_as_AutoCAD2007_ASCII.dxf 188

posted: 23 Oct 2011 10:41

from:

leo_sandstrom
 
Sweden

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Couldnt get more then one attachment per post, here is the second file.

Regards
/Leo
Attachment: attach_1215_1661_DoubleCAD_XT_Pro_saved_as_DXF_-_2010_-_2011.dxf 186
Last edited on 23 Oct 2011 10:52 by leo_sandstrom
posted: 23 Oct 2011 11:23

from:

leo_sandstrom
 
Sweden

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
And here is another version saved as DXF 2000-2003.
Tried importing this one into Templot as well and it ends up with 0 on all coordinates like all the others.
Hope this helps you solve it, if you need anything else just let me know.

Regards
/Leo
Attachment: attach_1216_1661_DoubleCAD_XT_Pro_saved_as_DXF_-_2000-2003.dxf 175
Last edited on 23 Oct 2011 11:24 by leo_sandstrom
posted: 23 Oct 2011 11:40

from:

Martin Wynne
 
West Of The Severn - United Kingdom

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Hi Leo, Alan,

Many thanks for the sample files.

The problem is the decimal separator character in the Windows international settings.

Leo, you can cure the problems temporarily by changing the international settings on your computer to a country which uses a dot as a separator for decimal fractions, rather than a comma. e.g. USA, UK, etc., or most English-speaking countries.

(In the Windows Control Panel > Regional and Language Options )

However, that's probably not something you want to do on a permanent basis. :)

There is a bug in Templot in this regard. Templot uses (or is intended to be using) the local decimal separator (a comma for you) in all input and displays. As shown in one of your screenshots:

2094_221225_200000000.png2094_221225_200000000.png

(If you should find that this is not the case anywhere, please let me know.)

However, Templot is also doing this in DXF files, where the format standard appears to require a dot in all cases (I haven't been able to find this documented anywhere). So Templot's own DXFs work ok when exported and re-imported with commas, but others don't.

I will fix this bug in the next TDV update. Thanks for reporting it.

And apologies, I should have gone into this properly after this topic earlier this year:

 message 9167

regards,

Martin.

posted: 23 Oct 2011 12:36

from:

leo_sandstrom
 
Sweden

click the date to link to this post
click member name to view archived images
view images in gallery view images as slides
Thanks Martin

I replaced all the commas with dots in an export and now it works!
2094_230731_000000000.png2094_230731_000000000.png

Funny thing is, I tried doing this last night before going to bed, but when opening the file I saw some dots in the beginning and tired as I was I replaced all dots with commas believing Templot exported with the wrong decimal operator and used a dot instead of a comma... :facepalm

Had I been less tired I might have used my brain and realized it should have replaced more instances.

Now that I did it the other way around it works like a charm, so for now Ill just use that as a workaround :)

Thanks again!

Regards
/Leo
Last edited on 23 Oct 2011 12:46 by leo_sandstrom


Templot Club > Forums > Templot talk > Exporting to DXF - something is not working for me
about Templot Club

Templot Companion - User Guide - A-Z Index Templot Explained for beginners Please click: important information for new members and first-time visitors.
indexing link for search engines

back to top of page


Please read this important note about copyright: Unless stated otherwise, all the files submitted to this web site are copyright and the property of the respective contributor. You are welcome to use them for your own personal non-commercial purposes, and in your messages on this web site. If you want to publish any of this material elsewhere or use it commercially, you must first obtain the owner's permission to do so.
The small print: All material submitted to this web site is the responsibility of the respective contributor. By submitting material to this web site you acknowledge that you accept full responsibility for the material submitted. The owner of this web site is not responsible for any content displayed here other than his own contributions. The owner of this web site may edit, modify or remove any content at any time without giving notice or reason. Problems with this web site? Contact webmaster@templot.com.   This web site uses cookies: click for information.  
© 2020  

Powered by UltraBB - © 2009 Data 1 Systems