News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Touch

Started by bdeck, August 01, 2013, 11:33:56 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

bdeck

Quote from: DrollTroll on September 06, 2013, 06:32:44 AM
There're arguments to both ways, ....

No, there aren't.

I routinely use "saveas" with consecutive version nos embedded in the file name.

Problem is, I go back to a folder with files from years ago, and i discover that the highest version number is not the most recent file date.

Now I have no way of knowing if DC screwed up the file dates, or if I inadvertently did the most recent edit out of sequence.

This result is total chaos.

bd

samdavo

sorry bd and lar, but I can't recall this happening in my filing system.

But, in any case, sometimes I number files with the ISO date included,  eg
B310s101-20130908A
where that translates as
B310s101 = project and drawing number
20130908 = date last amended (ISO format)
A= Revn

If I amend it a week later, it becomes
B310s101-20130915B
(2 cents)
Gee that PhD in rocket science comes in handy :)
as my son reminds me,  "I've already got a Post hole Digger dad - don't need another PhD :)

DrollTroll

To clarify some folks' questions about how to reproduce:

1) You save a DesignCAD drawing.
2) Later you Open -- but do not change! -- the same drawing. When you CLOSE (not SAVE or SAVE AS) the drawing, the date may (or may not) change, depending on whether or not there was redundant information that DesignCAD could remove by quietly resaving.
It's an oddity of the compound file format that redundant stream information is automatically saved the first time you save it possibly as much as doubling the file size.
25 years with DesignCAD

samdavo

ok DT - but how do you get the redundant information in the drawing in the first place.

Like the bloke who goes to the psychiatrist ..
I keep seeing butterflies all over the place doc.
don't worry they're all in your head
ok, ok, but how did they get there?

Bob P

So (and it's too late now...), the way to avoid a date change is to initially double-save a file so that the redundant information is purged?

Lar

#20
Quote from: Bob P on September 09, 2013, 02:30:21 PM
... the way to avoid a date change is to initially double-save a file so that the redundant information is purged?
Double saving is what starts the problem.

Here are the rules of purging, as determined by Lar:

a] The file is purged when you close it. So, if you work on a single instance of a project (ie, you don't save between two {or more} filenames, ie, you never save, then 'save as') then you will never see this problem.

b] If the file is not closed it will not be purged.: When you save a file, then at some point before you close dcad, you 'save as' to a different filename, the saved file is no longer running on the computer, but it was not closed. , therefore, it was not purged!!! The fix for this is quite simple: after you close the 'saved as' file  simply open the 'saved' file and then close it. It would then be purged. Problem with this is you will probably neglect to do this. As long as the project is active then this is not a big deal because you will open the project again to continue working. However, when you work on the project for the last time, if you neglect to reopen-then-close, the file will sit there with the redundant data until you open it again, which could be years in the future, which then screws up the file date, silently.

c] If a file is opened and it contains redundant data it will be silently purged and saved. If you ever created a version of the project that was not 'saved-as' to when the project ended (ie, it was not updated with the last set of information), and the file was not purged, and you open that file sometime in the future (maybe to just copy something to paste in another file) and you are unaware of this situation (which most of you are, apparently) you may never again find the last worked on file (because you would search for the file with the latest date). Your only clue that something is amiss is if you definitely remember drawing something in the file that is not there now. You may end up having to redraw that same thing again (eg, you search for the file because you remember drawing something and you want to copy it from this file and paste it into a current project. You search for and find the file by date. You open the file and what you remember being there isn't there. Reluctantly, you re-draw the stuff in the current file. Imagine your confusion if you check the latest prints and the stuff is there on the prints but not there in the file. Poor gremlins, they get blamed again.

Now imagine the confusion if you lost the prints and later have to re-print and you print the not-up-to-date file.

Lar

Dr PR

What Lar describes under situation "c" has happened to me several (many?) times that I know of during my 10 year ship project. That is why I started putting both the program version and a sequence number in the file. Generally, I don't go back to files saved under earlier program versions unless the later files become corrupted.

Phil
DesignCAD user since 1987

bdeck

I vote for either

1) saving all that undo info in a separate file,

or, better yet,

2) not saving it at all.

In 20 years of use, I cant remember EVER using undo info from a prior session.

bd


Dr PR

bdeck,

A long time ago I tried to "Undo" after opening one of these bloated files and I'm pretty sure it doesn't work. I do not think you can undo from a previous session. When you open one of these bloated files the "Undo" menu option is grayed out, as is the "Undo" button.

The reason the files are bloated is:

1. DesignCAD saves the current session Undo information in the currently open file. The file date is the current date if the file has been edited since it was opened. If it is unchanged (no Undo information) the date will not be changed when it is closed.

2. The Undo information is removed from the file if the file is closed properly with "File/Close" or by shutting down DesignCAD (forces a Close operation). The file date is the current date.

3. If you use "File/Save As" the program saves the current drawing under a new name and then switches to editing the new file. The old file has not been closed - what remains on the hard drive is the bloated temporary working file that contains the Undo information. The file date will be the last time it was saved.

"File/Close" or shutting down the program properly closes the second file, purging the Undo information. Nothing is done to close the first file so it remains with unusable Undo information with the last saved date.

4. Opening the old file purges the old Undo information. If it is edited it contains the latest undo information. If it is Closed all undo information is removed, and the date is changed to the current date.

****

This was poorly thought out and executed. Undo information should never be saved in a .dcd file because it can't ever be used after the program shuts down. Only the Undo information in the computer's RAM can be used for the Undo operations.

Basically, when a file is saved the entire drawing, working variables, shading information and undo information are saved - all of the RAM the program is using. Only when you close the file is all of the extraneous garbage flushed from the file. What sense does this make if none of the garbage can be used when the file is opened again?

Surely the Save operation would operate faster if only the drawing information was saved.

Phil
DesignCAD user since 1987