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!