richardl
2004-06-10, 04:43 PM
I currently use this to open drawings using odbx:
(setq DBXOBJ (vla-GetInterfaceObject (vlax-get-acad-object) "ObjectDBX.AxDbDocument"))
(vla-open DBXOBJ filename)
but this opens the file in read/write access (so if the file is already opened it generates an error), is there a way to open a file for access using odbx in read-only mode ?
thanks to all
(setq DBXOBJ (vla-GetInterfaceObject (vlax-get-acad-object) "ObjectDBX.AxDbDocument"))
(vla-open DBXOBJ filename)
but this opens the file in read/write access (so if the file is already opened it generates an error), is there a way to open a file for access using odbx in read-only mode ?
thanks to all