![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Assign a Module var w/o using read/edit/share??? Topic Summary: Created On: 12-Nov-2007 18:30 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: You can get a handle to it via a database loop. If its not open, you won't find it. | |
![]() |
|
OK,
Is there a way to assign a Module variable without using the read/edit/share functions? I have the fullName of the module, and I want to check if it is open and then if it is open, check what open state is in (i.e. read, share or edit). I can check if the module is opened by using the the module reference i.e. if (open (module (modFullName))) { } But if I want to use the isEdit (), isRead () isShare () functions I need a Module type variable. I'm probably overlooking something really simple, but any ideas? Thanks, ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
You can get a handle to it via a database loop. If its not open, you won't find it.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com Edited: 12-Nov-2007 at 21:22 by David Pechacek |
|
![]() |
|
![]() |
|
You can do this by looking at the locks on the module.
The attached is hacked out of a larger script, so I apologise if it does not run. Anyway, you can get a list of locks on the module and loop through the list and find out what locks there are on the module, both yours and other users. Hope this helps. ------------------------- Tony Goodman http://www.smartdxl.com Edited: 13-Nov-2007 at 09:46 by Tony Goodman |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
In the DXL manual, see chapter 'Modules' section 'Module references' command 'module(handle)'; see attached.
If you are asking if someone ELSE has it open, then you've got a significant problem. When I tried to do this a couple years ago, I could find know way to find out if someone else has it open Shared if YOU also have it opened shared. However, using locks, I could find out if someone else had it edit or shared, and I believe IIRC that I could find out if someone had it open Read. - Louie |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.