Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: setPartitionMask_
Topic Summary:
Created On: 14-Apr-2004 14:00
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 14-Apr-2004 14:00
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Anybody know what setPartitionMask_(Folder/Item, Bit) does? It takes a Folder or Item parameter and some sort of BIT mask; in this case "0x10000000".

setPartitionMask_(current Folder, 0x10000000)

I think it unmarks the thing as being in a partition.

- Louie
Report this to a Moderator Report this to a Moderator
 15-Apr-2004 12:34
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

The following dxl explains how this is used. I did this a few years back, probably on DOORS 5.


// UnlockPartitionedData.dxl
/*
Problem:
--------
module set up for sharing at level 2
certain level 2 headings were locked and partitioned
so their access rights could not be changed.

the object properies showed inherited access and also
"this object is partitioned in with RCMD"

this could not be changed even as administrator.

doors support have never seen this before.

Fix:
----
the following is the fix. The Object version run on each
object did the trick. (followed by unchecking the inherit box
on the object properies page).

Please try the following

1. Log into DOORS as the Administrator.

2.1 For partitioned locked folders - open the offending Folder. Select
Tools->Edit DXL. Run the following DXL Function:

Folder f = current Folder
print setPartitionMask_(f, 0x10000000)

2.2 For partitioned locked modules - open the offending Folder. Select
Tools->Edit DXL. Run the following DXL Function:

Module m = current Module
print setPartitionMask_(m, 0x10000000)

If this is successful it will return an empty string.

Our tracking number is 050302OPRSH37739.

*/

Object o = current Object
print setPartitionMask_(o, 0x10000000)


-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 20-Oct-2006 15:37
User is offline View Users Profile Print this message


Michael Cors

Posts: 7
Joined: 17-Aug-2006

I found this to work for a module:

print setPartitionMask_(m, 0x10000000)

But could not get these two to work:

print setPartitionMask_(f, 0x10000000)
print setPartitionMask_(o, 0x10000000)

After running either of the two commands above, I still get "This ... has been partitioned in.." when checking the access rights.

I am running DOORS 7.1.  Has there been a change that prevents these from working?

The end result I really want, is to be able to COPY a READ ONLY partitioned in module, make the copy writeable, and recreate links using Link-By-Attribute. It is important that the copied module still have the same absolute numbers as the original. 
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.