![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: module documentation Topic Summary: Created On: 11-Apr-2006 19:40 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: thanks, dan. Thats what i can use. still like to know whats up with the kitchen script, but this will work for my needs. for all of you out there, this is what i modified the code to look like for attributes and views...also took out the line to close the dxl editor cause that message was annoying... Folder f = current Item i AttrDef ad for i in f do { string s = type i if(s != "Formal") continue s = name i print s "\n" Module m = read(s, false) for ad in current Module do { print "\tAttribute:" ad.name print " {" ad.typeName "}" "\n" } for s in views m do print "\t" "View:" s "\n" close m } | |
![]() |
|
is there a wizard that creates a document or report type output of all the attributes and views in a module? similar to the docuementor tool in MS Access
|
|
![]() |
|
![]() |
|
Yes, there is a kitchen script that allows you to maintain a module that catalogues all views and attributes in a project.
The menu option is Projects->catalogue. The source file is addins/kitchen/projects/catalogue.dxl I have posted the kitchen here. Boring note: If you are going to use kitchen scripts, test them first before using on live data. The kitchen comes with no warranty and you use it at your own risk! ------------------------- Tony Goodman http://www.smartdxl.com Edited: 12-Apr-2006 at 08:49 by Tony Goodman |
|
![]() |
|
![]() |
|
ran the script and got this..i just kept hitting "confirm" on all the questions about attributes the script asked me...
-R-E- DXL: <Line:88> null Module parameter was passed into argument position 1 -I- DXL: execution halted |
|
![]() |
|
![]() |
|
This is normal with kitchen scripts - they never seem to work first time.
Try ammending the "for item in project" loop (line 84) so that null and deleted items are excluded. Example attached ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
that didnt work tony. got the same error. :-\
|
|
![]() |
|
![]() |
|
I am surprised that didn't work.
What line number was in the error mesage? ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
-R-E- DXL: <Line:88> null Module parameter was passed into argument position 1
-I- DXL: execution halted |
|
![]() |
|
![]() |
|
Remove the following line (line 88) - this assumes that the item is a module before testing for it's type.
string modType = type module_ mn Then add in it's place the following: // we are only interested in modules if (!module mn) continue string modType = type(it) ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
commented out "string modType = type module_ mn" and pasted
****** // we are only interested in modules if (!module mn) continue string modType = type(it) ******* got these errors.... -E- DXL: <Line:448> (modType) already declared in this scope -E- DXL: <Line:451> incorrect arguments for (!=) -E- DXL: <Line:451> incorrect arguments for (&&) -E- DXL: <Line:451> incorrect arguments for (if) -E- DXL: <Line:451> undeclared variable (modTypeC) -I- DXL: all done with 5 errors and 0 warnings |
|
![]() |
|
![]() |
|
You might just print all associated views in all formal modules within a given folder, then copy the output to an MS Word file.
Folder f = current Item i for i in f do { string s = type i if(s != "Formal") continue s = name i print s "\n" Module m = read(s, false) for s in views m do print "\t" s "\n" close m } |
|
![]() |
|
![]() |
|
thanks, Dan, but i dont need only the view info. I wanted the attributes and their types as well. i changed "views" to "attributes" in your code but that didnt give all the attributes, let alone their types.
|
|
![]() |
|
![]() |
|
These mods should do get you attr name and type...
Best Regards, Dan Folder f = current Item i AttrDef ad for i in f do { string s = type i if(s != "Formal") continue s = name i print s "\n" Module m = read(s, false) for ad in current Module do { print "\tAttribute: " ad.name " --- " print "type \"" ad.typeName "\"\n" } close m } |
|
![]() |
|
![]() |
|
thanks, dan. Thats what i can use. still like to know whats up with the kitchen script, but this will work for my needs.
for all of you out there, this is what i modified the code to look like for attributes and views...also took out the line to close the dxl editor cause that message was annoying... Folder f = current Item i AttrDef ad for i in f do { string s = type i if(s != "Formal") continue s = name i print s "\n" Module m = read(s, false) for ad in current Module do { print "\tAttribute:" ad.name print " {" ad.typeName "}" "\n" } for s in views m do print "\t" "View:" s "\n" close m } Edited: 31-May-2006 at 20:45 by Baher Mohamed |
|
![]() |
|
![]() |
|
I'm not a big fan of the kitchen scripts, except to dig out specific application info in areas I am weak. Tony is right, they never seem to work 'out of the box'.
Dan |
|
![]() |
|
![]() |
|
You mentioned that you removed the line 'close m'. Not a good idea. This will leave every module in the folder open in ReadOnly, hidden view.
The best way to run this is to close all modules then run it from the folder you want to archive information from (not a within an open module) This way, you should get no message about closing the DXL editor and it will give you a complete listing of all (formal) modules in the current folder. |
|
![]() |
|
![]() |
|
glad i checked this post again....thanks!!!
|
|
![]() |
Telelogic DOORS
» General Discussion
»
module documentation
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.