![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() Answer: The attached reports the actual size of the modules on the disc. You will need read access to the DOORS data directory. | |
![]() |
|
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? |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Hi All,
Finally I got to the administrator and ran the script. This works very well. Thanks Tony for the script. - Krishna |
|
![]() |
Telelogic DOORS
» General Discussion
»
File size of a module in MB
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.