Hi
I've managed to open a drawing without loading it into the drawing editor using Visual Lisp:
Code:
;; Create a unbound drawing object
(setq objDWG
(vla-GetInterfaceObject
(vlax-Get-Acad-Object)
(strcat
"ObjectDBX.AxDbDocument."
(substr (getvar "AcadVer") 1 2)
)
)
)
;; Open the drawing and bind it to our object
(setq errObj (vl-catch-all-apply
'vla-Open
(list objDWG
(cond (tmpFile)
(FullNameAndPath)
)
(if optOpenReadOnly
:vlax-true
:vlax-false
)
)
)
)
Now that the drawing is open, is there a way to load it into the drawing editor and make it visible? I'm processing the drawing first before allowing the user to see it.