check to see if a view is checked out

V

vlsidesign

Guest
I have a script that remasters some of the instances. The script opens
certain views for readonly, and then if it contains instances that I
want to remaster, I then check it out, open for edit, and do the
changes, and then check in.

However, if I already have the cell checked out, I don't want to do
the remastering of the instances, so I am trying to find a way to
check to see if a cell is already checked out and then way I can
ignore that cell. I can't seem to find a function or an attribute to
do that. I was thinking that ddCheckout would return 'nil' if it was
already checked out, but it doesn't. ... Any help is appreciated.
 
On Feb 23, 10:44 am, "vlsidesign" <ford...@gmail.com> wrote:
I have a script that remasters some of the instances. The script opens
certain views for readonly, and then if it contains instances that I
want to remaster, I then check it out, open for edit, and do the
changes, and then check in.

However, if I already have the cell checked out, I don't want to do
the remastering of the instances, so I am trying to find a way to
check to see if a cell is already checked out and then way I can
ignore that cell. I can't seem to find a function or an attribute to
do that. I was thinking that ddCheckout would return 'nil' if it was
already checked out, but it doesn't. ... Any help is appreciated.
Hmmm... Maybe I can just use the 'dbIsCellViewModified function as a
workaround, since I can't seem to find a way to check to see if a view
is checked out (there is probably some simple way to do it that I'm
missing).
 
On Feb 26, 2:56 pm, "vlsidesign" <ford...@gmail.com> wrote:
On Feb 23, 10:44 am, "vlsidesign" <ford...@gmail.com> wrote:

I have a script that remasters some of the instances. The script opens
certain views for readonly, and then if it contains instances that I
want to remaster, I then check it out, open for edit, and do the
changes, and then check in.

However, if I already have the cell checked out, I don't want to do
the remastering of the instances, so I am trying to find a way to
check to see if a cell is already checked out and then way I can
ignore that cell. I can't seem to find a function or an attribute to
do that. I was thinking that ddCheckout would return 'nil' if it was
already checked out, but it doesn't. ... Any help is appreciated.

Hmmm... Maybe I can just use the 'dbIsCellViewModified function as a
workaround, since I can't seem to find a way to check to see if a view
is checked out (there is probably some simple way to do it that I'm
missing).
The other way to handle it may be to look at whether it has a lock
file? I believe when the cellview is checked out, it creates a lock
file.

Interestingly, when I try using 'geGetLockInfo', it is an unrecognized
function, so maybe I can somehow use 'ddLockDescribe' or
'ddLockGetStatus' or something?
 
On Feb 26, 3:49 pm, "vlsidesign" <ford...@gmail.com> wrote:
On Feb 26, 2:56 pm, "vlsidesign" <ford...@gmail.com> wrote:





On Feb 23, 10:44 am, "vlsidesign" <ford...@gmail.com> wrote:

I have a script that remasters some of the instances. The script opens
certain views for readonly, and then if it contains instances that I
want to remaster, I then check it out, open for edit, and do the
changes, and then check in.

However, if I already have the cell checked out, I don't want to do
the remastering of the instances, so I am trying to find a way to
check to see if a cell is already checked out and then way I can
ignore that cell. I can't seem to find a function or an attribute to
do that. I was thinking that ddCheckout would return 'nil' if it was
already checked out, but it doesn't. ... Any help is appreciated.

Hmmm... Maybe I can just use the 'dbIsCellViewModified function as a
workaround, since I can't seem to find a way to check to see if a view
is checked out (there is probably some simple way to do it that I'm
missing).

The other way to handle it may be to look at whether it has a lock
file? I believe when the cellview is checked out, it creates a lock
file.

Interestingly, when I try using 'geGetLockInfo', it is an unrecognized
function, so maybe I can somehow use 'ddLockDescribe' or
'ddLockGetStatus' or something?- Hide quoted text -

- Show quoted text -
Looks like 'ddNeedCheckout()' will do the trick.
 

Welcome to EDABoard.com

Sponsor

Back
Top