Saturday, November 21, 2009
Home   |   Search   |   About AUGI   |   My AUGI   |   Join Now

Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP
 Welcome, Guest. 

Login

Join Now FAQ Members List Calendar Search Today's Posts Mark Forums Read

AutoLISP AutoLISP or Visual LISP, learn both here!

Reply
 
Thread Tools Display Modes
Old 2004-06-10, 04:43 PM   #1
richardl
Member
 
Join Date: 2001-10
Location: Drummondville, Quebec, Canada
Posts: 6
richardl appears to be going the right way
Default Read-only using Odbx

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
richardl is offline   Reply With Quote
Old 2004-06-11, 03:00 PM   #2
whdjr
I could stop if I wanted to
 
Join Date: 2003-05
Posts: 335
whdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of light
Default RE: Read-only using Odbx

The short answer is no.

Sorry,
__________________
Good Blockin'

Will DeLoach
AutoCad / ADT 2006
whdjr is offline   Reply With Quote
Old 2004-06-11, 04:12 PM   #3
Ed Jobe
Administrator
 
Ed Jobe's Avatar
 
Join Date: 2000-11
Location: Turlock, CA
Posts: 3,411
Ed Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining star
Default

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 ──
Ed Jobe is offline   Reply With Quote
Old 2004-06-11, 04:18 PM   #4
richardl
Member
 
Join Date: 2001-10
Location: Drummondville, Quebec, Canada
Posts: 6
richardl appears to be going the right way
Default RE: Read-only using Odbx

That is the work-around I found, I just tought there was another way.

Thanks
richardl is offline   Reply With Quote
Old 2004-06-11, 05:32 PM   #5
whdjr
I could stop if I wanted to
 
Join Date: 2003-05
Posts: 335
whdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of lightwhdjr is a beam of light
Default RE: Read-only using Odbx

Sorry about giving my answer too hastily. I thought we were only talking about Lisp.
__________________
Good Blockin'

Will DeLoach
AutoCad / ADT 2006
whdjr is offline   Reply With Quote
Old 2004-06-11, 05:52 PM   #6
Ed Jobe
Administrator
 
Ed Jobe's Avatar
 
Join Date: 2000-11
Location: Turlock, CA
Posts: 3,411
Ed Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining starEd Jobe is a shining star
Default

Oops, I wasn't paying attention to what forum I was in. However, you can duplicate the same functionality in lisp.
__________________
──Ed ──
Ed Jobe is offline   Reply With Quote
Reply


Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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


All times are GMT +1. The time now is 03:54 PM.