Autodesk Technology Managers Forum
Share your knowledge, ask questions, and engage with fellow CAD/BIM Managers.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 23
bgillis
375 Views, 22 Replies

Need Advice

It is important that I learn about options for converting ascii files produced from a limitedly distributed software application to DXF for use in AutoCAD. If this can be done within AutoCAD, I will recommend my company purchase one or more seats after a successful trial period. If it can be accomplished successfully using a reasonably priced conversion software, I will recommend the purchase of both.

Any advice on this matter would be greatly appreciated.

Sincerely,
Bob Gillis
22 REPLIES 22
Message 2 of 23
Anonymous
in reply to: bgillis

bgillis said the following on 12/29/2005 12:02 PM:
> It is important that I learn about options for converting ascii files
> produced from a limitedly distributed software application to DXF for
> use in AutoCAD. If this can be done within AutoCAD, I will recommend
> my company purchase one or more seats after a successful trial
> period. If it can be accomplished successfully using a reasonably
> priced conversion software, I will recommend the purchase of both.
>
> Any advice on this matter would be greatly appreciated.
>


What format are your ASCII files? P,N,E,Z,D ?

What DXF entity type do you require for each coordinate value? Just a
POINT entity?

There are much cheaper alternatives than AutoCAD if this is all you need
to do.



--
R.K. McSwain
http://rkmcswain.blogspot.com
Message 3 of 23
bgillis
in reply to: bgillis

Honestly, I don't know what type of ASCII files they are. However, they are relatively simple text files in column format defining points in 2d space with several different sets of y values plotted against a single set of x values. The parent application essentially produces a series of overlain line graphs that are dumb and uneditable. My goal is to convert this to a format that is editable and capable of producing distances, line lengths and angles when queried. Ultimately I'd like to be able to construct a full scale graphical, quantitative, 2d model of the parent data. Due to the large number of points involved, they should ideally be connected by Plines to reduce the file size. The 2d model will be constructed using lines and arcs that are snapped to selected points or line intersections.

Bob Gillis
Message 4 of 23
Anonymous
in reply to: bgillis

Bob,
Your best bet is to look into products such as
http://www.stylusstudio.com/text_file_to_xml.html to convert the ascii into
xml. You will want to do this instead of dxf. This will give you the
capability to translate the xml file to designxml or landxml. The data will
be better structured for use in a multitude of programs and can then be used
for anything from autocad to the web. You can even get tools for using the
xml file created for excell charts and reports. I have not used the
stylusstudio program before but it lools alot easier than performing xslt
transformations with ascii data alot easier than by creating a custom
program handle the processing.

Good luck,
--
CB


wrote in message news:5047324@discussion.autodesk.com...
It is important that I learn about options for converting ascii files
produced from a limitedly distributed software application to DXF for use in
AutoCAD. If this can be done within AutoCAD, I will recommend my company
purchase one or more seats after a successful trial period. If it can be
accomplished successfully using a reasonably priced conversion software, I
will recommend the purchase of both.

Any advice on this matter would be greatly appreciated.

Sincerely,
Bob Gillis
Message 5 of 23
Anonymous
in reply to: bgillis

I would think that all he needs is a lisp routine
to plot the .txt file into autocad?

--
Dave

"CB" wrote in message
news:5047487@discussion.autodesk.com...
Bob,
Your best bet is to look into products such as
http://www.stylusstudio.com/text_file_to_xml.html to convert the ascii into
xml. You will want to do this instead of dxf. This will give you the
capability to translate the xml file to designxml or landxml. The data will
be better structured for use in a multitude of programs and can then be used
for anything from autocad to the web. You can even get tools for using the
xml file created for excell charts and reports. I have not used the
stylusstudio program before but it lools alot easier than performing xslt
transformations with ascii data alot easier than by creating a custom
program handle the processing.

Good luck,
--
CB


wrote in message news:5047324@discussion.autodesk.com...
It is important that I learn about options for converting ascii files
produced from a limitedly distributed software application to DXF for use in
AutoCAD. If this can be done within AutoCAD, I will recommend my company
purchase one or more seats after a successful trial period. If it can be
accomplished successfully using a reasonably priced conversion software, I
will recommend the purchase of both.

Any advice on this matter would be greatly appreciated.

Sincerely,
Bob Gillis
Message 6 of 23
Anonymous
in reply to: bgillis

David Allen said the following on 12/29/2005 5:03 PM:
> I would think that all he needs is a lisp routine
> to plot the .txt file into autocad?

If the OP already has AutoCAD.

I interpreted the following as if AutoCAD were the subject:


will recommend my company purchase one
or more seats after a successful trial period


--
R.K. McSwain
http://rkmcswain.blogspot.com
Message 7 of 23
Anonymous
in reply to: bgillis

Post one of the text files.

wrote in message news:5047324@discussion.autodesk.com...
It is important that I learn about options for converting ascii files
produced from a limitedly distributed software application to DXF for use in
AutoCAD. If this can be done within AutoCAD, I will recommend my company
purchase one or more seats after a successful trial period. If it can be
accomplished successfully using a reasonably priced conversion software, I
will recommend the purchase of both.

Any advice on this matter would be greatly appreciated.

Sincerely,
Bob Gillis
Message 8 of 23
bgillis
in reply to: bgillis

To the former comment, right. I do not currently have access to AutoCAD, so I am not able to write an Autolisp routine specific to converting my ascii files.

I will look into posting an example of an ascii file, but will likely have to get company permission first.

Thanks,
Bob
Message 9 of 23
Anonymous
in reply to: bgillis

You don't even have to write a Lisp routine. Making a copy of the file and
making a few simple changes to it would probably let you run it as a script.
If the files are as you describe this would be no problem at all.

If you can't post the actual files try creating a file of about 10 points in
the same format and post that.

Allen

wrote in message news:5047917@discussion.autodesk.com...
To the former comment, right. I do not currently have access to AutoCAD, so
I am not able to write an Autolisp routine specific to converting my ascii
files.

I will look into posting an example of an ascii file, but will likely have
to get company permission first.

Thanks,
Bob
Message 10 of 23
bgillis
in reply to: bgillis

Alright, attached is an example of the text file format. The parent program plots each set of values against the left-most column (length), and each curve/length point is connected by a line (preferably a polyline in AutoCAD).
Message 11 of 23
Anonymous
in reply to: bgillis

bgillis wrote:

> Alright, attached is an example of the text file format.

I don't think this group allows attachments, because your attachment
doesn't appear. I wish none of them did except the group created just
for that, which is customer-files. Post it there, then let us know
here, and recommendations can be made.

Terry
--
The Ultimate Productivity Add-On for AutoCAD
ToolPac 9.0 from http://www.dotsoft.com
Message 12 of 23
bgillis
in reply to: bgillis

Sample text file attached to "Need advice" under Customer Files.
Message 13 of 23
Anonymous
in reply to: bgillis

Terry W. Dotson said the following on 12/31/2005 8:40 AM:
> I don't think this group allows attachments

Testing for that...


--
R.K. McSwain
http://rkmcswain.blogspot.com
Message 14 of 23
Anonymous
in reply to: bgillis

What do the xxx's imply? Are they output by the program you are using as
some kind of label to indicate the type of data in the column of text?

Length(ft) Variab1(xxx) Variab2(xxx) Variab3(xxx) Variab4(xxx) Variab5(xxx)
10.00000 12.00000 46.2 11.20 19.00 33.22


<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/



wrote in message news:5049621@discussion.autodesk.com...
Sample text file attached to "Need advice" under Customer Files.
Message 15 of 23
Anonymous
in reply to: bgillis

BTW -- keeping the name of the software you are using a secret is lame don't
you think?


<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/


wrote in message news:5049621@discussion.autodesk.com...
Sample text file attached to "Need advice" under Customer Files.
Message 16 of 23
bgillis
in reply to: bgillis

Sorry, x's are space holders for the variable units.
Message 17 of 23
Anonymous
in reply to: bgillis

Sorry. I was out last week. You presented the files as being X,Y data. Your
sample contains a Length column and multiple variable columns. I don't see
immediately how these would be plotted. Unless it would be something like a
line @ 10,12; Line @ 10,46.2; Line @ 10,11.2; etc.

Allen

wrote in message news:5049716@discussion.autodesk.com...
Sorry, x's are space holders for the variable units.
Message 18 of 23
bgillis
in reply to: bgillis

Yeah, I wasn't very clear. The data would be plotted as a line from 10,12 to 20,4.2 to 30,0.52; from 10,46.2 to 20,41.5 to 30,54.9; etc. So basically each column of data plotted individually against length.

Bob
Message 19 of 23
Anonymous
in reply to: bgillis

If the data could be rearrange so as to appear in that manner it would be
very easy to plot using a script file. A script file basically hold text as
it would be entered at the command line. It would look like this:

Line
0,0
@10,12
@20,4.2
@30,0.52
Line
0,0
@40,46.2
@20,41.5
@20,54.9

This takes the length as a positive movement in the X and the variable as a
positive deflection in the Y. Otherwise they could be entered as actual X,Y
coordinates. Same format without the @ symbol.

If you couldn't easily produce a file similar to that then a Lisp or VBA
routine would have to be written that could be pointed at the correct line
an column in the ASCII file.

Allen

wrote in message news:5054047@discussion.autodesk.com...
Yeah, I wasn't very clear. The data would be plotted as a line from 10,12 to
20,4.2 to 30,0.52; from 10,46.2 to 20,41.5 to 30,54.9; etc. So basically
each column of data plotted individually against length.

Bob
Message 20 of 23
bgillis
in reply to: bgillis

Thanks Allen.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Administrator Productivity


Autodesk Design & Make Report