CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 11125
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedOpen a dxf file in lisp

 Post Reply Post Reply
Author
paulodavid2004 View Drop Down
Newbie
Newbie


Joined: 24.Feb.2021
Location: United States
Using: AutoCAD 2021
Status: Offline
Points: 2
Direct Link To This Post Topic: Open a dxf file in lisp
    Posted: 24.Feb.2021 at 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")
Paulo
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2015
Direct Link To This Post Posted: 24.Feb.2021 at 06:15
Try:

(setq newDoc (vlax-invoke acadDocs 'open "myfile.dxf"))
Vladimir Michl (moderator)
Arkance Systems - arkance-systems.cz - Autodesk reseller
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,305 seconds.