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.

Large file problems

Started by Dr PR, August 08, 2010, 03:55:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

I have been working on a file that has grown to 106 Mbytes. Suddenly yesterday I ran into a wall - file save times went from about one minute to 10-15 minutes! Then after making a slight change I tried to save the file and the program locked up - after 30 minutes the file save was still hung. I tried closing DesignCAD V20.0, restarting and opening the file. It took about 10 minutes to render Gouraud shading, but that isn't unusual for a 100 Mbyte file. Then I tried to save it and the program hung again - another 30 minutes and a CTRL-ALT-DEL shutdown. I restarted and ran the solid count.d3m macro and max solid ID was only about 11,000, so that shouldn't be the problem.

After trying several unsuccessful fixes I decided to copy the file to a new drawing and see if I could save that file. First I placed a single cube in the new blank drawing* - solid count = 1 and max solid ID = 1. Then I copied and pasted from the original file - copy took about 10 minutes to execute. After pasting I ran the solid and group count macros:

number of solids = 4988
max solid ID = 8877
number of groups = 314
max group ID = 314

Then I saved the file - the save operation worked and took less than a minute! I can edit the file and save it again. Of course I have to rename the 35 active layers (PITA), but at least I can continue working!

Moral of the story: If you have a file that crashes the program when you try to save it, copy the contents to a blank file and try saving it.

* For newcomers, the reason for putting one solid (the cube) into the blank file is to initialize the solid count. After doing this when you paste solids into the file they will be renumbered starting at 2. If you do not have this initial solid in the file the pasted solids will retain their original numbers. If the number of a solid goes over some unknown value (may be about 16,000) the program will start behaving strangely. Group numbers have the same problem, and I have had the program crash (in V17 days) when the group count went over about 16,000. V20 has a "Tools/Groups/Pack Group IDs" function to repack group IDs starting at 1, and the maximum group count has been increased to a very large number. This also needs to be done for solid IDs.

Note: when you copy/paste solids or groups into a drawing the solid/group count increases by two for each solid/group. If you duplicate (N) a solid or group the IDs will be incremented only once.

Note: V21 has a new "Solids/Pack Solid IDs" function to repack solid IDs, and the solids Max ID number has been increased greatly.

Phil
DesignCAD user since 1987