Jump to content

Defining 3DSOLIDs in DXF files


andycee

Recommended Posts

Hello, and apologies for the noob level question ! Beginners Area seems the only place for it...

 

I'm working on a project that creates a dynamically sized construction from sheet timber materials.

 

I'd like to get my code to output this design as a DXF file, so it can be imported, viewed and edited in AutoCAD.

 

I'm struggling at the first hurdle of defining 3D solids in DXF files. I've read many articles on the DXF specification, and am able to use LINE to create simple lines from X1,Y1,Z1 > X2,Y2,Z2 as the format is fairly clear (http://www.autodesk.com/techpubs/autocad/acad2000/dxf/index.htm)

 

For example..

0
SECTION
 2
ENTITIES
999
This is just a line.
 0
LINE
 8
0
10
1.0
20
2.0
30
3.0
11
3.0
21
4.0
31
5.0
 0
ENDSEC
 0
EOF

 

However...the definition for 3DSOLID (http://www.autodesk.com/techpubs/autocad/acad2000/dxf/index.htm) is massively vague, just quoting 'Proprietary data (multiple lines)' for presumably the shape data.

 

What format is this data supposed to be in ?? And indeed, is 3DSOLID the best way to create these objects anyway ?

 

I did try to work this out by reverse engineering - creating one simple 3D box in AutoCAD and saving it as .DXF.....the resulting file was 98 pages long, and contained 24 LINE references :cry:

 

Any help or a simple example appreciated !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...