Hi all,..
in some case, I have this issue..
(setq blkobj (vla-handletoobject dbx_file "36B"))
Automation Error. Unknown handle
but the Handle is correct.
This situation happen only if the external file is open and user perform a QSAVE.
then,..the function vla-handletoobject do not recognize the handle "36B"...but it still there.
I've made some research on the net and validate the presence of the "36B" handle with this awesomne LeeMac programmer...
hereit recognize the "36B" handle,...
here is the part of my code:
(setq xref-ename (handent sec_hand))
(setq vla-xref (vlax-ename->vla-object xref-ename))
(if (not dbx_file) (setq dbx_file (_dbxopenfile (vla-get-path vla-xref))))
(setq blkobj (vla-handletoobject dbx_file prim_hand));;<----ERROR
any help will be appreciated.
thank you.