Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How open an existing Drawing with Vlisp

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
185 Views, 2 Replies

How open an existing Drawing with Vlisp

I don't remembe how open in ACAD a saved drawing with Vlisp.

I remember that now isn't with older : (command "_OPEN" file) but i
don't know how ...

I look for it in help ACAD but i don't find it.

Thanks in advance for all your help!
2 REPLIES 2
Message 2 of 3
EC-CAD
in reply to: Anonymous

Check here:
http://discussion.autodesk.com/thread.jspa?messageID=1223807

Bob
Message 3 of 3
Anonymous
in reply to: Anonymous

Hi Jose
Test this code
[code]
(setq filename "D:/YBI/Drawing/Lat/Test-1.dwg")
(setq vgao (vlax-get-acad-object))
(setq vgad (vla-get-activedocument vgao))
(setq vgd (vla-get-documents vgao))
(if
(= 0 (getvar "SDI"))
(vla-activate (vla-open vgd filename)) ; if
sdi = 0
(vla-sendcommand vgad (strcat "(command \"_open\")\n" filename "\n")); if
sdi = 1
)
[/code]

"Jose Carlos Troncoso" wrote in message
news:5837031@discussion.autodesk.com...
I don't remembe how open in ACAD a saved drawing with Vlisp.

I remember that now isn't with older : (command "_OPEN" file) but i
don't know how ...

I look for it in help ACAD but i don't find it.

Thanks in advance for all your help!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost