Can MATLAB read or write files for CAD programs using the DXF format?

22 views (last 30 days)
I would like to read images created in CAD programs into MATLAB, or write MATLAB data out to be loaded into a CAD program. CAD programs use the universal Drawing Exchange Format (DXF).

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
MATLAB cannot read or write DXF files.
As a workaround for importing DXF files, you could convert your image into one of the formats currently supported by IMREAD.
As a workaround for exporting DXF files, you could write out your MATLAB image into one of the formats supported by IMWRITE, and then convert this into the DXF format. For a list of supported image formats type "help imread".
Finally, there are several files on the MATLAB Central File Exchange which allow basic DXF file functionality. For more information, please visit the following URL:

More Answers (0)

Categories

Find more on Model Import in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!