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: Is there a DXL to indicate module size?
Topic Summary:
Created On: 14-Jan-2004 22:01
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-Jan-2004 22:01
User is offline View Users Profile Print this message


Janet Ma

Posts: 115
Joined: 12-Sep-2002

I seem to remember seeing a DXL someone wrote for getting the module file size. Is there one available?

Also, is it possible to get an indentured report listing the modules ID under their respective projects?

Report this to a Moderator Report this to a Moderator
 15-Jan-2004 08:59
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

The attached generates a spreadsheet listing module information.


-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 15-Jan-2004 16:12
User is offline View Users Profile Print this message


Janet Ma

Posts: 115
Joined: 12-Sep-2002

thank you, but is there a way to get the actual file size of each module?

Report this to a Moderator Report this to a Moderator
 15-Jan-2004 16:56
User is offline View Users Profile Print this message


Pete Kowalski

Posts: 301
Joined: 7-Feb-2003

You could develop a script that will automatically archive each module and then check the size on the disk

-------------------------
pete.kowalski(at)motorola.com
Report this to a Moderator Report this to a Moderator
 19-Jan-2004 20:41
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You need to be more specific about what "size" is. Do you mean counting all the characters in Object Text and Object Heading? Counting Objects? Size on the file system? Archived size?

- Louie
Report this to a Moderator Report this to a Moderator
 19-Jan-2004 22:11
User is offline View Users Profile Print this message


Janet Ma

Posts: 115
Joined: 12-Sep-2002

Louie:
- size on the file system.
We do have a chron job which will give us the file size, but it would be nice for DXL to give us the information:


p1000003f.pro = projectA
...m100000.mod = System Spec
34K /opnet-doors/doors/data6/p100003f.pro/m1000000.mod/current.ver
37K /opnet-doors/doors/data6/p100003f.pro/m1000000.mod
429K /opnet-doors/doors/data6/p100003f.pro/m1000001.mod/b1000000.bas
516K /opnet-doors/doors/data6/p100003f.pro/m1000001.mod/b1000001.bas
Report this to a Moderator Report this to a Moderator
 20-Jan-2004 16:13
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Here you go.

The attached prints the disc space consumed by each formal module in the current project.

You need to edit the file to enter the location of your doors data.

I haven't tried it on a large database, so I'm not sure how long it will take to complete.



-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 3-Apr-2006 12:38
User is offline View Users Profile Print this message


Iftakher Uddin

Posts: 56
Joined: 16-Sep-2004

Hi,

I think attached source code is missing now. Do anybody has that? Could anybody put those code in forum or send to my email address, thank you.

As this topic was discussed many days back, is there any update to get the size of current module (in file system)?

Greetings,

Rony

==================
Iftakher Uddin (Rony)
iftakher.uddin@HOOD-Group.com
Report this to a Moderator Report this to a Moderator
 3-Apr-2006 13:57
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Attachment

sizeOnDisc.dxl
sizeOnDisc.dxl  (5 KB)



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


Iftakher Uddin

Posts: 56
Joined: 16-Sep-2004

Thanks Tony...

Greetings,

Rony

==================
Iftakher Uddin (Rony)
iftakher.uddin@HOOD-Group.com
Report this to a Moderator Report this to a Moderator
 5-Apr-2006 19:34
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Didn't critique the DXL that much but I've done similar work. I've figured out where the DB is located using clever Config file access; try to read a Config file that doesn't exist, trap the DXL error with "lastError()", then parse the error message looking for the path of the "No such file" file name. Yes, convert the module's unique ID into a directory name.

Your DXL surely must be run while ON the DOOR server, yes?

- Louie
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.