Mbeis Posted December 28, 2012 Posted December 28, 2012 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. Quote
BIGAL Posted December 30, 2012 Posted December 30, 2012 (edited) 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 December 31, 2012 by fuccaro Just closing a CODE tag Quote
Tyke Posted December 30, 2012 Posted December 30, 2012 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. Quote
Recommended Posts
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.