Display full version of the post: Open a dxf file in lisp

paulodavid2004
24.02.2021, 03:52
Hi, I found a partial answer  to a question that I have. I need to know how to open a dxf file in a lisp. The following code opens a dwg file but not a dxf type of file. Could someone kindly help me to modify this code to open a dxf type of file. Thanks in advance!(setq acApp (vlax-get-acad-object))
(setq acDocs (vla-get-documents acApp))
(vla-open acDocs "d:/drawings/mydrawing.dwg")

Vladimir Michl
24.02.2021, 06:15
Try:[CODE](setq newDoc (vlax-invoke acadDocs 'open "myfile.dxf"))[/CODE]