PDA

View Full Version : Old copies / temp copies / select file ......


MikeBoswell
08-10-2004, 10:27 AM
Using DDM 11.5,
- if you go to admin, go to query, go to drawing_2d ....
-fill in the search criteria and query.......
You may match a drawing_2d.
-If you do , select 'open read ....', double click on the item. Now another window opens. In the new window pull down edit and select 'select file ....'
- Another window opens and it may list multiple copies of the same file w/ different dates.

My question is:

How do I change the number of 'temp copies' that will be maintained?

Ie. I want to change this to zero 'temp copies'.

Mikeb

John van Doorn
08-11-2004, 05:24 AM
Hi Mike,



I didn't have the time to test what I'm saying here, but I'm pretty sure this is what you are looking for.
You have to override the following macros:

{* Number of Backup files to keep *}
DEFINE Wmdt_amsd_files_to_keep 2 END_DEFINE
DEFINE Wmdt_bfg_files_to_keep 1 END_DEFINE
DEFINE Wmdt_me10_files_to_keep 1 END_DEFINE
DEFINE Wmdt_sd_model_files_to_keep 1 END_DEFINE
DEFINE Wmdt_iges_2d_files_to_keep 1 END_DEFINE
DEFINE Wmdt_iges_3d_files_to_keep 1 END_DEFINE
DEFINE Wmdt_sat_3d_files_to_keep 1 END_DEFINE
DEFINE Wmdt_stl_3d_files_to_keep 1 END_DEFINE
DEFINE Wmdt_wrl_files_to_keep 1 END_DEFINE
DEFINE Wmdt_step_3d_files_to_keep 1 END_DEFINE
DEFINE Wmdt_pkg_3d_files_to_keep 1 END_DEFINE
DEFINE Wmdt_model_3d_files_to_keep 1 END_DEFINE
DEFINE Wmdt_model_sd_files_to_keep 2 END_DEFINE
DEFINE Wmdt_model_vrml1_files_to_keep 1 END_DEFINE
DEFINE Wmdt_model_wp_to_keep 1 END_DEFINE


Success,

John

MikeBoswell
08-11-2004, 09:56 AM
Thanks John,

I think I searched for everything except 'keep'.

So now I have them, how and where do I use them. I tried redefining Wmdt_me10_files_to_keep = 0 then overwrite a file from me10 to the DB , but I still find 2 files in the 'select file' area I described before. Even if I 'del old files' it will still maintain/create the temp copy.

I tried some of the other DEF's from below w/ the same results.

I redefined these macros at the client in the command line.

Any suggestions?

THanks.

Mike

John van Doorn
08-11-2004, 02:54 PM
Hi Mike,

I've just tested to set the DEFINE Wmdt_model_sd_files_to_keep 1 END_DEFINE


Setting it to 0 is not something you want to do, besides this doesn't work you do want to keep at least one file into the database.
Setting it to 1 will only keep one file into the database.

Success,
John

MikeBoswell
08-13-2004, 04:27 AM
John,
Thanks for your replies.

Wmdt_me10_files_to_keep:

On my system, this is set to "1" by default.
Is this the correct macro for me10 files AND annotation files?
Where does this need to be set? client, server, both.

I have tried the above macro and some of the others listed in the file "desktop\startup\wmdt_config_backup.inp". I redefine the macro at the client side. I can't seem to make it work. I always end up w/ 2 copies (current and previous save). I go in and 'delete old' so that there is only the current copy. Then I go back over to me10 and store-overwrite. Then I go back to WM and 'select file' and there are 2 copies again( current and previous save ).

???

THanks,

Mikeb

MikeBoswell
08-18-2004, 09:25 AM
Cocreate's response to the above:


DEFINE Wmdt_amsd_files_to_keep 0 END_DEFINE
DEFINE Wmdt_me10_files_to_keep 0 END_DEFINE

DEFINE Awm_me10_i_del_backups
PARAMETER Dwg_ecid
LOCAL Keep_files
LET Keep_files 1
Awm_t_m_del_doc_backups Dwg_ecid "Model.MI" Keep_files
END_DEFINE

DEFINE Awm_amsd_i_del_backups
PARAMETER Dwg_ecid
LOCAL Keep_files
LET Keep_files 1
Awm_t_m_del_doc_backups Dwg_ecid "Model.AM" Keep_files
END_DEFINE


It changes the number of temp copies to zero. It works for me.

PS I started w/ this forumn because I usually get customization suggestions much easier from this community than I do from Cocreate's hotline.

MikeB