Jump to content

DXF 3D Anatomy


Mbeis

Recommended Posts

Can anyone help me find a good resource on how to create a 3D DXF file from scratch? I am a developer working on a tool that can create cylindrical shapes from schematic drawing coordinates.

Link to comment
Share on other sites

Maybe a simpler way looking at this yesterday just use VL commands to create 3d objects using lisp is it really needed to use DXF.

 

this is the VBA
RetVal = object.AddCylinder(Center, Radius, Height)

lisp
(vla-AddCylinder Center Radius Height)

(setq doc (vla-get-activedocument (vlax-get-acad-object)))
(setq mspace (vla-get-modelspace doc))
(setq pt1 (vlax-3d-point (getpoint "\nCenter point: ")))
(setq rad (getreal "\nRadius: " pt))
(setq hgt (getreal "\nHeight: " pt))
(vla-addcylinder mspace pt1 rad hgt)

Edited by fuccaro
Just closing a CODE tag
Link to comment
Share on other sites

I assume your tool does not work within AutoCAD. If I'm right read on, but if your tool does work within AutoCAD look at what BIGAL said and save the resulting drawing as a DXF file.

 

If you want to create a DXF file have a look at this article from Paul Bourke http://paulbourke.net/dataformats/dxf/min3d.html

 

A DXF file can be very large and its must be syntactically perfectly correct or you will not be able to open it. A missing line of code will be fatal.

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...