Re: DXF filter
- To: mathgroup at christensen.cybernetics.net
- Subject: [mg1901] Re: [mg1877] DXF filter
- From: John Fultz <jfultz>
- Date: Mon, 14 Aug 1995 01:45:22 -0400
> 8:34 PM 8/8/95 > DXF filter > Hi > > I have fould the DXF.m package on MathSource (0201-643 v1.0, Aug 91 by John > Novak) that converts Graphics3D objects to a file in the AutoCAD dxf format. Has > anyone out there improved on this package? > > Regards > > Jiri > > Jiri Vitesnik > Technical Specialist > > PICA Software > 212 Berkeley Street > CARLTON 3053 > VICTORIA > > Ph: 03 9349 4155 > Fax: 03 9349 4166 > e-mail: jiri at pica.com.au Actually, if you have Mathematica 2.2, this is part of the standard packages. The package is Utilities`DXF`. What particular improvements were you thinking of that you'd like to see? I'm not aware of anything that transmits any information beyond basic polygon and line information, so you're probably out of luck there unless you write something yourself. However, several people have asked if there is a way to convert 2D graphics to DXF. If this is what you want, than this can be easily accomplished by converting the 2D graphic to a 3D graphic: gr3d = Graphics3D[gr2d[[1]] /. {x_?NumberQ,y_?NumberQ} :> {x,y,0}] This should work for most gr2d, where gr2d is a Graphics[] object (for example, the output of a Plot or ParametricPlot). gr3d can not be written as a DXF file. John Fultz Wolfram Research, Inc.