![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: how to get the baseline module property values Topic Summary: Created On: 27-Aug-2003 21:25 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi
I have DXL script called Inventory that will gives the all properties of the module under the project, like the following Created date: Created By: Module Name: Module Description: Version: Some modules have Baselines, I want to get the baseline info which are, baseline creation date, who created base line and baseline version. I want to add the baseline info the DXL . could any one help me to get the baseline attribute values. This is the script int tDate = intOf today string modName string real1,real2,real3,real4,real5,real6,real7 Module modref string attributeName Module m = current () string createdOn = "Created on" int numOpen = 0 Project pRef=current () string projectName = name(pRef) bool found = true string vsion void attr () { for modName in pRef do { numOpen = numOpen + 1 Module s = read(modName, true) string attr = "Created on" vsion = version (Module s) Date created = s.attr string Mversion = vsion string Desc = "Description" string creatby = "Created By" string MDescription = s.Desc string cby = s.creatby real1 = "Work Product ID : "modName" " real5 = "Document Description : "MDescription " " real2 = "CM Control Date : "created " " real3 = "Created By : "cby " " real4 = "Version : "Mversion " " real6 = "-------------------------------------------" print real1 "\n" print real5 "\n" print real2 "\n" print real3 "\n" print real4 "\n" print real6 "\n" close (Module s) } } real7 = "Doors Inventory for " projectName print real7 "\n" attr //close (file) Thanks Ananda |
|
![]() |
|
![]() |
|
Here is a script that may help
//The script will print the name of the module and the current version name //Return the baseline history for the module. Must be runned from a formal module Module m= current Baseline b Date d = m."Last Modified On" print "The Module name is " m."Name" """\n" print "Current Version: "(version current Module) "\n" print "Last Modified On: " d "\n" //This section will give every baseline date for the module for b in m do { print (major b) "." (minor b) (suffix b) " \t" //prints the two digit number and the suffix print "Baseline Date: " (dateOf b) "\t" //prints the date of the baseline print " Created By: " (user b) "\n" // prints the user who created baseline } JJ ------------------------- jobina.l.johnson@boeing.com ![]() Edited: 28-Aug-2003 at 14:08 by Jobina Johnson |
|
![]() |
|
![]() |
|
hi,
I am doing something similar but using itemRef capabilities to scan thru my projects. I am able to print module names in my project and maybe can add attributes in my print option but how can i get the baseline info in this script. I can get the baseline info individually from a module but this info is needed for all the mods in the project. Is there a way the getMostRecentBaseline(m) function take the module handle referenced by itemRef or can itemRef get a handle of the module whose name is being printed and reference that in getMostRecentBaseline(m) function |
|
![]() |
|
![]() |
|
You need to open the module:
|
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.