Templot Club Archive 2007-2020                             

topic: 502Import DXF
author remove search highlighting
 
posted: 25 Jul 2008 13: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
Martin,

I am trying to import a DXF file. My problem is that most but not the entire file comes in. This includes some of the lines representing the track. My problem is that I don't really understand what I am doing with the DXF file. I have TurboCAD but don't really know how to use it. :(

Help appreciated.

Alan

posted: 26 Jul 2008 13:02

from:

richard_t
 
Nr. Spalding, South Holland - 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
Alan Turner wrote:
I am trying to import a DXF file. My problem is that most but not the entire file comes in. This includes some of the lines representing the track. My problem is that I don't really understand what I am doing with the DXF file. I have TurboCAD but don't really know how to use it. :(

Help appreciated.
Templot, and other software, doesn't implement "CLOSED" lines. (I know some etching companies don't like CLOSED lines either)

[If you think of a square, this can be made up of 4 lines, i.e. (start at 0,0): LINE(1,0), LINE(1,1), LINE(0,1), LINE(0,0). Which Templot would import OK. But you could also define the square as (start at 0,0): LINE(1,0), LINE(1,1), LINE(0,1), CLOSE. Where the software knows that the line's started at 0,0, so the close draws a line back there. LINE and CLOSE aren't DXF commands, just something to I've made up!]

The solution would be not to CLOSE any lines in TurboCAD (although I haven't used TurboCAD, so I can't help there.).

Richard.


PS: I reported this at: topic 205 - message 1018

posted: 26 Jul 2008 14:42

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
trouble is it's not my drawing and I don't know enough about TurboCAD to correct anything like that.

Alan

posted: 26 Jul 2008 14:51

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
Alan Turner wrote:
trouble is it's not my drawing and I don't know enough about TurboCAD to correct anything like that.
Hi Alan,

It's difficult to help without seeing the file. Can you attach it here? DXFs are accepted and you can go up to 5MB.

If it's track I think it's probably not the closing of polylines which Richard mentioned.

Most likely it contains blocks. Templot doesn't do blocks, they should be exploded before saving the DXF file. There's an option in TurboCad's Save dialog to explode any blocks.

regards,

Martin.

posted: 26 Jul 2008 17:27

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

Martin Wynne wrote:
It's difficult to help without seeing the file. Can you attach it here? DXFs are accepted and you can go up to 5MB.


Attached. Thanks for the help. I've just joined W'ton MRC and offered to do their new layout plan and help with the track construction. The DXF file is theirs.

Alan
Attachment: attach_321_502_Final.dxf 349

posted: 26 Jul 2008 17:52

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
Alan Turner wrote
Attached. Thanks for the help. I've just joined W'ton MRC and offered to do their new layout plan and help with the track construction. The DXF file is theirs.
Hi Alan,

Thanks for the DXF. The missing tracks are elliptical, used as an approximation to transition curves. Templot doesn't do ellipses (nor do railways, of course :) ) in the DXF import. I will replace them with the best match to a transition curve I can get, and return a modified file.

The plan looks impressive. :)

regards,

Martin.

posted: 9 Aug 2008 15:05

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
Sorry to bother you again on this but I produced a track plan and converted it to DXF.

I can import this into TurboCAD and also into a freeware DXF reader with no problem.:)

However when the member of the club tries to load it into Auto CAD for printing it off he gets the following error::(

Command: dxfin
 Syntax error or premature end of file on line 466959.
Invalid or incomplete DXF input -- drawing discarded.
; User warning: Namespace for closing Document is not found
Regenerating model


any idea what is going on?

I attach the DXF file.

Alan
Attachment: attach_328_502_Old_Mill.dxf 415

posted: 9 Aug 2008 16:14

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 Alan,

The DXF file which you attached was not created by Templot.

I can't see anything wrong in line 466959. It loads into TurboCad ok, but I don't have AutoCad here to try.

Perhaps you attached the wrong file? Was this one saved from TurboCad?

p.s. I notice two 3-throw turnouts in there! :) Is this a Midland Railway design?

regards,

Martin.

posted: 9 Aug 2008 19:35

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

Martin Wynne wrote:
The DXF file which you attached was not created by Templot.

It was but it went via TurboCAD and I probably saved it from there.

here is the "straight from Templot" DXF.

 

regards

Alan
Attachment: attach_329_502_Old_Mill.dxf 458

posted: 9 Aug 2008 20:06

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
Alan Turner wrote:
here is the "straight from Templot" DXF.
Hi Alan,

That's reduced the file size from 4.7MB from TurboCad to 2.7MB direct from Templot.

However, it has only 415,778 lines, so it can't be the source of an error on line 466,959.

You seem to have got in a muddle with your files -- I suggest sending this file to your friend instead of the previous one. :)

regards,

Martin.

posted: 10 Aug 2008 15:43

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
Alan Turner wrote:
However when the member of the club tries to load it into Auto CAD for printing it off he gets the following error::(

Command: dxfin
Syntax error or premature end of file on line 466959.
Invalid or incomplete DXF input -- drawing discarded.

Hi Alan,

Did you send the file as an email attachment? It's a large file -- it is very likely that it has exceeded the allowed attachment size and been truncated.

Now that you have uploaded it here, you can invite your friend to download it from here instead. The link is:

 http://85a.co.uk/forum/attachment.php?id=329

regards,

Martin.

posted: 10 Aug 2008 16:25

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

Martin Wynne wrote:

Hi Alan,

Did you send the file as an email attachment? It's a large file -- it is very likely that it has exceeded the allowed attachment size and been truncated.



I did but I subsequently gave him a CD with the same result.

You also asked about the Midland Railway. Yes, as it happens I am a student of the Midland Railway but this particular section of track isn't. I suppose track practises just get ingrained!

Alan 



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