|
Welcome, Guest.
|
||||||
| AutoLISP AutoLISP or Visual LISP, learn both here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: 2001-10
Location: Drummondville, Quebec, Canada
Posts: 6
![]() |
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 |
|
|
|
|
|
#2 |
|
I could stop if I wanted to
Join Date: 2003-05
Posts: 335
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
The short answer is no.
Sorry,
__________________
Good Blockin' Will DeLoach AutoCad / ADT 2006 |
|
|
|
|
|
#3 |
|
Administrator
Join Date: 2000-11
Location: Turlock, CA
Posts: 3,411
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
The short answer is no, since by itself ObjectDbx only open dwg's that are not read-only. But the long answer is yes. I have a cls on the Exchange that handles this error by opening a temp file instead. It also handles dwt's in the same manner by opening a copy as a dwg. See EX001229
__________________
──□ Ed □── |
|
|
|
|
|
#4 |
|
Member
Join Date: 2001-10
Location: Drummondville, Quebec, Canada
Posts: 6
![]() |
That is the work-around I found, I just tought there was another way.
Thanks |
|
|
|
|
|
#5 |
|
I could stop if I wanted to
Join Date: 2003-05
Posts: 335
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Sorry about giving my answer too hastily. I thought we were only talking about Lisp.
__________________
Good Blockin' Will DeLoach AutoCad / ADT 2006 |
|
|
|
|
|
#6 |
|
Administrator
Join Date: 2000-11
Location: Turlock, CA
Posts: 3,411
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Oops, I wasn't paying attention to what forum I was in. However, you can duplicate the same functionality in lisp.
__________________
──□ Ed □── |
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FORUM WILL BE READ ONLY AS OF 5PM 5-26-04 | czoog | Announcements | 5 | 2004-05-26 04:27 PM |
| Marking forum read | kimheaver | Suggestions | 0 | 2004-03-26 11:15 PM |
| READ ONLY FORUM. | beegee | Revit - Known Issues & Work-Arounds (Read only) | 0 | 2003-12-13 03:44 AM |
| Reselect Previous Selection(s) | gregcashen | Revit Architecture - Tips & Tricks | 7 | 2003-07-19 07:05 AM |
| Direct Attachments Enabled!!! - PLEASE READ | czoog | Announcements | 3 | 2003-05-08 09:18 AM |