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: File size of a module in MB
Topic Summary:
Created On: 24-Aug-2006 17:57
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.
Answer This question was answered by Tony Goodman, on Thursday, September 14, 2006 11:16 PM

Answer:
The attached reports the actual size of the modules on the disc.

You will need read access to the DOORS data directory.
 24-Aug-2006 17:57
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Hi All,

Is there a way to know the file size (in MB) of a module in the DOORS database?  The "Module Properties" gives the statistics in number of characters, but that may not be a true indication of the file size. Is there any size limit (in terms of characters or MB) for a module?
Report this to a Moderator Report this to a Moderator
 25-Aug-2006 12:23
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer Answer
The attached reports the actual size of the modules on the disc.

You will need read access to the DOORS data directory.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 25-Aug-2006 21:03
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Hi Tony,

Thanks for the comprehensive code. This would work fine, except for the fact that I am not able to resolve the directory path, which you listed as "E:\\v6data". In fact 'v6data" folder exists in the "C:\Program Files\Telelogic\DOORS 7.1\tmp ........" folder but I am not able to access it. As such I am getting runtime error ' -R-W- DXL: <Line:62> can not access directory (No such file or directory)'.

Any suggestions how I can resolve this issue.

- Krishna
Report this to a Moderator Report this to a Moderator
 28-Aug-2006 17:11
User is offline View Users Profile Print this message


Iftakher Uddin

Posts: 56
Joined: 16-Sep-2004

Hi,

use double slash to define the path string; e.g: "C:\\Program Files\\Telelogic\\DOORS 7.1\\tmp..."

If still problem exists then use the short name of the folder; e.g. "C:\\Program Files" is equal to "C:\\PROGRA~1".

Regards,
Rony
Report this to a Moderator Report this to a Moderator
 28-Aug-2006 22:29
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Hi,
Thanks for the tip regarding accessing the 'v6data' folder. The reference "C\\PROGRA~1" worked. Now I am facing the following problems:

1. The directory list does not always contain the reference to the modules  (of the folder). Sometimes it does - e.g. if the modules are manually opened and closed before applying the script.
2. The file size is always 4096 bytes for the modules detected by the script.

I am still trying to find out where I am going wrong. But if anyone has successfully run the script on a folder, please let me know.
- Krishna
Report this to a Moderator Report this to a Moderator
 29-Aug-2006 08:51
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Opening modules should not make any difference.
However, the script relies on a current Project being open in the database explorer.
If you want to scan a folder then you need to change the code to do that.

The OS block size is set to 4096, and this is the minimum file size reported.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 29-Aug-2006 09:22
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Krishna,

I think, here is a misunderstanding.
Tony is talking about the real database directory on database server - you are talking about some temporary cache directories on your database client.

So to run Tony's script correctly, you need (as he writes in first posting) read access to database directory on server!

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 29-Aug-2006 17:14
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Hi,

Thanks for the information. In fact I changed the code to check on the modules in a folder. As Reik points out, I need to access the v6data folder on the server rather than the cache on the C: drive. Let me work on that point.

- Krishna
Report this to a Moderator Report this to a Moderator
 14-Sep-2006 23:15
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Hi All, 

Finally I got  to the administrator and ran the script. This works very well. Thanks Tony for the script.

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