×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Trouble creating DXF code for an ellipse
2

Trouble creating DXF code for an ellipse

Trouble creating DXF code for an ellipse

(OP)
This thread referred to a problem with creating an ellipse with DXF code. There was no resolution to this problem.

I am a new DXF programmer and I am encountering the same problem. Are there any suggestions as to how to solve thsi problem?

thread555-173361: trouble getting DXF code right for ellipse

0
SECTION
2
ENTITIES
0
ELLIPSE
8
0
10
629.4185943561319
20
564.6465625762273
30
0.0
11
0.0
21
-182.0310286257299
31
0.0
210
0.0
220
0.0
230
1.0
40
0.3696612519921331
41
0.0
42
6.283185307179586
0
ENDSEC
0
EOF

 

RE: Trouble creating DXF code for an ellipse

Why you want to use DXF?

No ACAD available??




  

RE: Trouble creating DXF code for an ellipse

Why do you want to generate ellipses?

Seriously, somehow they're treated differently inside AutoCAD from any other curve, and the internal conversions that should allow manipulation just like any other curve are either incomplete or buggy... and have been for decades.



 

Mike Halloran
Pembroke Pines, FL, USA

RE: Trouble creating DXF code for an ellipse

(OP)
I have a Excel spreadsheet where users enter dimensions for a pressure vessel. The Excel sheet converts the dimensions into LINE and ARC commands to create a 2D drawing of the vessel in a DXF file.

The ARC does not accurately represent the actual geometry which is a 2:1 ellipse shape. I want to use the ELLIPSE command instead of the ARC command. I've read the DXF documentation several times but had no luck with generating the correct syntax in the DXF file to generate an ellipse. I get an error message "Undefined group code 10 for object" when I open the DXF file in AutoCad.

RE: Trouble creating DXF code for an ellipse

If eventually you just want to create a drawing, instead of Excel why not have user enter data via a lisp or VBA routine in AutoCAD?

(or were you the one at another site who said you're using LT version so that's not an option...)

RE: Trouble creating DXF code for an ellipse


Another approach would be to have Excel create the AutoCAD commands to draw the ellipse, either with a script file, or as a series of commands you could paste into the command line.

RE: Trouble creating DXF code for an ellipse

Create a test case that will produce known geometry, run your program, generate the same geometry in AutoCAD, save that as a DXF file, and compare the two DXF files, bit for bit.

You've got an extra|missing CR|LF or a leading or trailing space that AutoCAD can't parse correctly.


 

Mike Halloran
Pembroke Pines, FL, USA

RE: Trouble creating DXF code for an ellipse

(OP)
I created a simple ellipse and tried to reverse engineer a simple DXF. The DXF for only the ellipse had a ton of other code in the file. I still haven't been able to work this out yet.  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources