Greetings,
I'm trying to save a figure (see attached) made by multiple lines of 2 different colors (red & black) into a 2D .dxf file (of a series of lines). I tried the existing functions DXFLIB and DXFWRITE in the community but can't seem to get them working. Do you guys have any idea on how to get around this, and/or if you have done a similar job?
Thanks in advance!

댓글 수: 1

Hans Sunaryanto
Hans Sunaryanto 2019년 8월 15일
Just realized I forgot to attach the file - Here it is!

댓글을 달려면 로그인하십시오.

 채택된 답변

Yair Altman
Yair Altman 2019년 8월 15일

1 개 추천

I think it may be simplest to save the figure as PDF and then use one of the multiple available converters from PDF to DXF.

댓글 수: 4

Hans Sunaryanto
Hans Sunaryanto 2019년 8월 15일
Thanks for your reply, Yair, but that doesn't sound like a viable solution for me. I'm trying to automate this process for the long run, not just to process one file but closer to 50 a day for the next couple of months. Do you know of any potential solutions/functions to use to get this working?
Thanks!
Yair Altman
Yair Altman 2019년 8월 15일
Well, it's really not complicated to automate this:
  1. save the temporary PDF file using saveas(hFig,'filename.pdf') or using the export_fig utility
  2. Then use the system() function to invoke the command-line version of your favorite PDF-to-DXF converter
  3. finally, call delete('filename.pdf') to delete the temporary PDF file
Bahaa
Bahaa 2022년 12월 26일
how i can find Command- line for programme, please
Walter Roberson
Walter Roberson 2022년 12월 26일
https://thinkmoult.com/how-to-bulk-convert-pdf-to-dxf-or-dwg.html
https://download.cnet.com/PDF-to-DWG-DXF-Converter-Command-Line/3000-18496_4-78400558.html

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Desktop에 대해 자세히 알아보기

태그

질문:

2019년 8월 15일

댓글:

2022년 12월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by