Go Back  RCU Forums > RC Airplanes > Scratch Building, Aircraft Design, 3D/CAD
Reload this Page >

Batch Airfoil Coords Input in AutoCAD?

Notices
Scratch Building, Aircraft Design, 3D/CAD If you are starting/building a project from scratch or want to discuss design, CAD or even share 3D design images this is the place. Q&A's.

Batch Airfoil Coords Input in AutoCAD?

Old 01-24-2007, 03:18 PM
  #1  
mmattockx
Thread Starter
 
Join Date: Apr 2005
Location: Calgary, AB, CANADA
Posts: 2,428
Likes: 0
Received 1 Like on 1 Post
Default Batch Airfoil Coords Input in AutoCAD?

As the title says, I would like to use a batch file to input a string of coordinates for an airfoil in AutoCAD LT 2006. I have done this previously in other versions of AutoCAD, but I cannot find the correct command in LT 2006. Is it still there? Am I just missing it?

Thanks,
Mark
Old 01-24-2007, 05:02 PM
  #2  
Pilot352
Senior Member
 
Join Date: Nov 2005
Location: Chicago, IL
Posts: 223
Likes: 0
Received 0 Likes on 0 Posts
Default RE: Batch Airfoil Coords Input in AutoCAD?

If you've done it in ACad Lt, it will work in all newer versions. Acad Lt doesn't support Lisp, so, I'm curious what command you used?? Maybe knowing the command you used will help. There are methods of importing data but to have Acad automatically plot it usually requires a LISP or "C" add-on tool to do so. And, like I said, ACad Lt doesnt support those tools.

-Pilot
Old 01-24-2007, 05:33 PM
  #3  
mmattockx
Thread Starter
 
Join Date: Apr 2005
Location: Calgary, AB, CANADA
Posts: 2,428
Likes: 0
Received 1 Like on 1 Post
Default RE: Batch Airfoil Coords Input in AutoCAD?

Pilot352,

It was a few years ago and I was probably using full Autocad, not LT.

I do not remember it being very difficult, though. I certainly didn't write a lisp routine for it, I do know. IIRC, I simply hit "line" and picked a start point, then had an option to import the coords, probably on the command line. Then you would point it at the coordinate file and it would simply draw the line to each pair of coords in turn. Sure saved a lot of typing numbers in...


Mark
Old 01-24-2007, 05:59 PM
  #4  
Tall Paul
Senior Member
 
Join Date: Jun 2002
Location: Palmdale, CA
Posts: 5,211
Likes: 0
Received 1 Like on 1 Post
Default RE: Batch Airfoil Coords Input in AutoCAD?

Way back when,. A-Cad used 'script' files to import lots of points.
I wrote a BASIC program which computed all the points for all the ribs in a wing, and output the data to a script file.
In Acad, I'd plunk on the "script" command to get it to import the ribs.
Watching it draw them was fascinating!
I haven't seen anything newer that Release 12.. so who knows what has happened since then.
Old 01-24-2007, 06:06 PM
  #5  
mmattockx
Thread Starter
 
Join Date: Apr 2005
Location: Calgary, AB, CANADA
Posts: 2,428
Likes: 0
Received 1 Like on 1 Post
Default RE: Batch Airfoil Coords Input in AutoCAD?

Tall Paul,

That is what I was looking for! I just tried it and it went to a file open window.

Many Thanks,
Mark
Old 01-24-2007, 06:13 PM
  #6  
mmattockx
Thread Starter
 
Join Date: Apr 2005
Location: Calgary, AB, CANADA
Posts: 2,428
Likes: 0
Received 1 Like on 1 Post
Default RE: Batch Airfoil Coords Input in AutoCAD?

Except, I can't recall how to get to a script file...

Tall Paul, do you recall where/how to save as that type? Word and Excel didn't do it for me and I tried plain text as well as ASCII text, with a renamed extension. No dice.

So close, yet so far.


Mark
Old 01-24-2007, 06:48 PM
  #7  
CoosBayLumber
Senior Member
My Feedback: (1)
 
Join Date: Jan 2002
Location: San Bernardino Calif
Posts: 3,757
Likes: 0
Received 1 Like on 1 Post
Default RE: Batch Airfoil Coords Input in AutoCAD?

Have you been to Cadalog? They have a couple of software files for including airfoils into Autocad. Used to be one for LT as I remember. You simply call up the routine, then it asks were are coordinates located, and boom, you got one, to a scale of 100. I use the routine in my full version as offered by a RCU reader who contributes there too. The routines are listed a couple places.

Wm.
Old 01-24-2007, 08:34 PM
  #8  
Tall Paul
Senior Member
 
Join Date: Jun 2002
Location: Palmdale, CA
Posts: 5,211
Likes: 0
Received 1 Like on 1 Post
Default RE: Batch Airfoil Coords Input in AutoCAD?

This is the output of the file that computes and outputs a .scr file in AutoCad format..
It begins by outlining the area the rib will be plotted in... then draws a 1" square box, and then the airfoil.
It's text, save it as a .scr file.. and give'er a try..
POINT
-1,-2
LINE
0,0
@12,0
@0,5
@-12,0
c

0,3
@1,0
@0,-1
@-1,0


TEXT
3.25,0

NACA 6418 chord 10


TEXT
1.25,2.25

1 inch plotter scaling square.


ZOOM
A


LINE
10,1.890012E-02
9.799999,9.981255E-02
9.599999,.178391
9.4,.2546744
9.2,.3286977
9,.4004911
8.8,.4700814
8.599999,.5374915
8.4,.6027392
8.2,.6658391
8,.7268013
7.8,.7856311
7.6,.8423299
7.4,.8968946
7.2,.9493175
7,.9995861
6.8,1.047683
6.599999,1.093587
6.4,1.13727
6.2,1.1787
6,1.217839
5.8,1.254643
5.6,1.289065
5.4,1.321047
5.2,1.350527
5,1.377437
4.8,1.4017
4.6,1.423231
4.4,1.441938
4.2,1.457716
4,1.470452
3.8,1.48002
3.6,1.486283
3.4,1.489084
3.2,1.488252
3,1.462759
2.8,1.444887
2.6,1.421053
2.4,1.390968
2.2,1.354294
2,1.310632
1.8,1.259493
1.6,1.200273
1.4,1.132196
1.2,1.054227
9999999,.9649155
8,.8620846
6,.7421371
4,.5981584
2,.4124666
016,.1098519
012,9.479351E-02
008,7.706679E-02
004,5.418729E-02
0,0
0,0
004,-.0517885
008,-7.227159E-02
012,-8.760431E-02
016,-.1002711
2,-.2954666
4,-.3701584
6,-.4091372
8,-.4300845
9999999,-.4399156
1.2,-.4422274
1.4,-.4391962
1.6,-.4322732
1.8,-.4224929
2,-.4106315
2.2,-.3972942
2.4,-.3829677
2.6,-.3680529
2.8,-.3528872
3,-.337759
3.2,-.309585
3.4,-.3010838
3.6,-.291616
3.8,-.2813537
4,-.2704517
4.2,-.259049
4.4,-.247271
4.6,-.2352315
4.8,-.2230336
5,-.2107705
5.2,-.1985271
5.4,-.1863799
5.6,-.174398
5.8,-.1626436
6,-.1511721
6.2,-.1400331
6.4,-.1292698
6.599999,-.1189202
6.8,-.1090166
7,-.0995861
7.2,-.0906508
7.4,-8.222796E-02
7.6,-7.432982E-02
7.8,-6.696429E-02
8,-6.013449E-02
8.2,-5.383909E-02
8.4,-4.807249E-02
8.599999,-4.282467E-02
8.8,-3.808143E-02
9,-3.382437E-02
9.2,-3.003092E-02
9.4,-2.667445E-02
9.599999,-2.372428E-02
9.799999,-2.114573E-02
10,-1.890012E-02


ZOOM
ALL.
.
Can't get a new-fangled screen print from a DOS program... here's the Quick Basic output, and the same file imported into AutoCad..
Had to take digital images..

Attached Thumbnails Click image for larger version

Name:	Lj21437.jpg
Views:	16
Size:	57.2 KB
ID:	605907   Click image for larger version

Name:	Yt60792.jpg
Views:	10
Size:	49.2 KB
ID:	605908  
Old 01-25-2007, 10:35 AM
  #9  
mmattockx
Thread Starter
 
Join Date: Apr 2005
Location: Calgary, AB, CANADA
Posts: 2,428
Likes: 0
Received 1 Like on 1 Post
Default RE: Batch Airfoil Coords Input in AutoCAD?

Hey Paul,

Thanks for the example, that sorted it for me. I had the syntax slightly wrong in my scr file and Autocad had refused to read it. Got it now and saved myself a ton of typing (it's a Mark Drela HLG airfoil, have you ever seen how many data points he uses??!).

Thanks for the help,
Mark
Old 01-25-2007, 11:52 AM
  #10  
Tall Paul
Senior Member
 
Join Date: Jun 2002
Location: Palmdale, CA
Posts: 5,211
Likes: 0
Received 1 Like on 1 Post
Default RE: Batch Airfoil Coords Input in AutoCAD?

Yeah, I really prefer the old NACA "one point every 10%" method, when hand-inputting data.
Profili exports DXF files which AutoCad can import.
Old 01-25-2007, 11:08 PM
  #11  
SoCal GliderGuider
Senior Member
 
Join Date: Mar 2004
Location: SoCal, CA
Posts: 1,195
Likes: 0
Received 0 Likes on 0 Posts
Default RE: Batch Airfoil Coords Input in AutoCAD?

Get ConCord from Martin Hepperle's web site.

http://www.mh-aerotools.de/airfoils/index.htm

Can take most any data file format and make a DXF file out of it.

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Thread Tools
Search this Thread

Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.