Author Topic: XOPEN file in Read-Only  (Read 1477 times)

0 Members and 1 Guest are viewing this topic.

RolandOrzabal

  • Newt
  • Posts: 86
  • "memories fade but the scars still linger"
XOPEN file in Read-Only
« on: January 24, 2013, 11:51:02 PM »

Hi swampers...

i often work in a group and there's always an instance where in i need to open other's drawing using XOPEN but i need it to be read-only as to avoid editing / saving the drawing which is not mine and that the owner of that drawing can still open his drawing and edit it if he wants...

 Is there a way that i can use XOPEN and that the file being opened  will be on read-only mode?
"memories fade but the scars still linger"

irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: XOPEN file in Read-Only
« Reply #1 on: January 25, 2013, 12:43:01 AM »
I don't think the XOpen command has a ReadOnly option.

Does your code already "know" the xref's entity/name/path? If not there are various ways to get it.

Once you have the path to the xref you could use the ActiveX Documents Collection's Open method. Note it has a readonly parameter.
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.

BlackBox

  • King Gator
  • Posts: 3770
Re: XOPEN file in Read-Only
« Reply #2 on: January 25, 2013, 08:51:33 AM »
Once you have the path to the xref you could use the ActiveX Documents Collection's Open method. Note it has a readonly parameter.

Here's an old example.
"How we think determines what we do, and what we do determines what we get."

Randall Culp

  • Newt
  • Posts: 50
Re: XOPEN file in Read-Only
« Reply #3 on: January 10, 2017, 08:10:26 PM »
"BUMP"

Anyone have anything that will trip XOPEN to read-only?? 

Or failing that a reactor of some kind that can redefine XOPEN to copy the selected XREF to a local junk directory and open it there??
Randy Culp
(AKA CADaver)