Jan 10, 2002 #1 V VL Usenet Archive Joined Jan 10, 2002 Messages 33 Reaction score 0 IS anyone can give me some comment on how to open and read a file to Autocad through AutoLISP VL
Jan 10, 2002 #2 P Paul Turvill Usenet Archive Joined Jan 4, 2000 Messages 2,691 Reaction score 0 Which version of AutoCAD? There's quite a difference, whether you're using R14 or earlier, or A2K or later, with MDI enabled. ___ "VL" wrote: IS anyone can give me some comment on how to open and read a file to Click to expand... Autocad through AutoLISP Click to expand...
Which version of AutoCAD? There's quite a difference, whether you're using R14 or earlier, or A2K or later, with MDI enabled. ___ "VL" wrote: IS anyone can give me some comment on how to open and read a file to Click to expand... Autocad through AutoLISP Click to expand...
Jan 10, 2002 #3 B broadbent Usenet Archive Joined Apr 30, 2001 Messages 13 Reaction score 0 and what sort of file?
Jan 10, 2002 #4 P Paul Turvill Usenet Archive Joined Jan 4, 2000 Messages 2,691 Reaction score 0 Yeah, but one would sorta assume .dwg ... ___ "broadbent" wrote: and what sort of file? Click to expand...
Yeah, but one would sorta assume .dwg ... ___ "broadbent" wrote: and what sort of file? Click to expand...
Jan 14, 2002 #5 B broadbent Usenet Archive Joined Apr 30, 2001 Messages 13 Reaction score 0 the sort of file to store the data in!
Jan 20, 2002 #6 H Humberto Usenet Archive Joined Jan 20, 2002 Messages 1 Reaction score 0 It is possible if SDI is set to 1; but then you can't open multiple drawings in a single session. Another solution, originally suggested by Frank Whaley of Autodesk, I believe, would be the following: (defun cmdOpen (name) (vl-load-com) (if (= 0 (getvar "SDI")) (vla-activate (vla-open (vla-get-documents (vlax-get-acad-object)) name)) (vla-sendcommand (vla-get-activedocument (vlax-get-acad-object)) (strcat "(command \"_.OPEN\")\n" name "\n") ) ) ) "VL" wrote: IS anyone can give me some comment on how to open and read a file to Click to expand... Autocad through AutoLISP VL Click to expand...
It is possible if SDI is set to 1; but then you can't open multiple drawings in a single session. Another solution, originally suggested by Frank Whaley of Autodesk, I believe, would be the following: (defun cmdOpen (name) (vl-load-com) (if (= 0 (getvar "SDI")) (vla-activate (vla-open (vla-get-documents (vlax-get-acad-object)) name)) (vla-sendcommand (vla-get-activedocument (vlax-get-acad-object)) (strcat "(command \"_.OPEN\")\n" name "\n") ) ) ) "VL" wrote: IS anyone can give me some comment on how to open and read a file to Click to expand... Autocad through AutoLISP VL Click to expand...