News:

Please note new Forum URL: forum.designcad.com

Main Menu

Fix "Restore DesignCad Tiles"

Started by bdeck, July 26, 2023, 11:16:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bdeck

Background:
The RestoreDesignCadTile command is used to display the default 4-view configuration. ("Default Tile")

The DesignCadTile command is used to restore the view configuration ("User Tile") set using SetAsDesignCadTile.
It will restore the User Tile even if some of the windows in that configuration have been closed.

This post is to discuss fixes to one old bug and three new bugs that recently popped up.

New Bug
1) The DesignCadTile command has disappeared from the menu, and should be brought back. (even though it is available from the command line as "dcadtile".)

Old Bug:
2) RestoreDesignCadTile erases the User Tile data. The "User Tile" and the "Default Tile" are two completely different concepts having no relation to one another. A User Tile might have more than 4 view windows, any of which may or may not be orthogonal. The user might have spent hours or days setting up the views in the "User Tile"

There is no reason for RestoreDesignCadTile to EVER alter User Tile data, especially considering the proximity of RestoreDesignCadTile to SetAsDesignCadTile in the DesignCadTileSettings menu.

This vestigial bug (or, more accurately, "feature") should have been fixed years before Imsi became the DC publisher.

New Bug
3) RestoreDesignCadTile no longer displays the Default Tile.

   3a) After RestoreDesignCadTile, the Main window is maximized, completely covering the front, top, and side view windows.

   3b) If fewer than 4 view windows are open, RestoreDesignCadTile will no no longer display all 4 windows of the Default Tile.
Instead it will display only the number of windows currently open when it was executed, and it will rename and initially populate them incorrectly, especially if "Off-Screen Bitmap" is enabled.

RestoreDesignCadTile should be fixed to display the correct 4-view Default Tile, with 3 ortho views and one main view, regardless of what windows are open at the time. And, again, it should not erase User Tile data.

It should minimize any other User windows without corrupting any User Tile data, so that DesignCadTile can later be used to restore views of the User Tile. (Edit 19/9/23)

Thanks to RobS for fleshing out some of the bugs  in RestoreDesignCadTile.

Rob S

Very well said (described, written, etc).

I would only like to add that apparently this change was made in an attempt to fix complaints about load time and excessive redraws when opening 3d drawings. 

If this remains an issue, it would be good to have the option to load a single view, as in ignore view data, and then load the views you want once the drawing is open
User since forever

bdeck

#2

Edited 29July2023  to correct errors found after testing. See following post.

Quote from: Rob S on July 26, 2023, 01:12:06 PM
... it would be good to have the option to load a single view, as in ignore view data, and then load the views you want once the drawing is open...

Very True.

The problem, as I gather from remarks from power users, is that loading of large 3d files in DC is bogged down if multiple view windows are open, even if they are all minimized.

After further study, that info appears to be wrong or out of date. It is now a simple task to create a tile with all view windows minimized, so that loading and processing are  drastically faster.

Your suggestion to allow any view window of a tile to be loaded individually is attractive.

The Windows menu is already set up to activate individual minimized views, but it needs to be modified so that closed windows of a tile also remain on the list

Even if a user closes the front, top, and side view windows, those should stay on the menu for access on demand. (or a reworked RestoreDcadTiles could generate them, if fixed to prevent changing the view data of an  existing user tile.

Achieving correct zoom and pan on restored user tiles might be too much to ask.. Fortunately we have Lar's notes on how he was able to do it.

I don't really have a dog in this fight, as I am mainly a 2d guy. Every time I venture into 3d I find something that needs fixing. That can lead to scary results ...




bdeck

#3
Quote from: bdeck on July 27, 2023, 11:11:47 AM
The problem, as I gather from remarks from power users, is that loading of large 3d files in DC is bogged down if multiple view windows are open, even if they are all minimized.

That leads to 3 possible solutions.

1) Allow any view window of a tile to be loaded inividually.

2) Allow a user to create multiple named tiles, so that a least on tile might consist of a single window.

3) Fix DC so that minimized 3d view windows no longer contribute to the loading or processing burden.

Clearly Solution 3 is the unanimous favorite. If Solution 3 were somehow accomplished during our lifetimes, it would be simple to create a tile with all view windows minimized. That is possible now.

Perhaps I spoke too soon:  (Correction to my prior post.)

I opened the 3d sample file "Cut Away Home.dcd" and copied the drawing into a 3 x 8 array. ( 24 copies of the house )

I didn't see any slowdown due to the presence of minimized windows when doing regenall. They appear to create no more drag than closed windows. With all windows minimized, RegenAll is instantaneous. (That is, it does not regen anything.)

Furthermore, if a window is open, but panned/zoomed to an empty space, so that no entities are in view, then the window seems to have only slight effect on RegenAll time.

(I did a visual test only, no stopwatch)

So the solution appears to be to minimize all views and then setDcadTile before closing DC.

For massive drawings, it would be good to zoom all windows to areas of interest before minimizing. That way they will create minimum burden when expanded.

Some Lingering Issues on my system:

1) Minimized view title bars are too small to display the view name on my system.
When I tried resizing windows so that only a  titlebar was visible, the resulting file appeared to bog down when loading.

2) On my 24-house test drawing, when 4 windows are open and all views are "fit-to-window", regenall causes a double pass through each window in DC versions 29.0 and 31.0. That doesn't happen on my version 26.0.

3) Select All in point select mode cycles numerous times before it settles down. Best to turn off point select mode before selecting .

Edit 31July2023

PS: Same results with Redraw and RedrawAll, except that RedrawAll will redraw a (non-minimized) window even if it has not been changed since prior redraw, and even if it is completely covered by the top window.  RegenAll will not regenerate a view that has not changed.

bdeck

#4
Conclusion:

RestoreDesignCadTile should be fixed to display the correct 4-view Default Tile, with 3 ortho views and one main view, regardless of what windows are open at the time. It should minimize any other windows without corrupting any User Tile data, so that DesignCadTile can later be used to restore views of the User Tile.

RestoreDesignCadTile should NEVER erase any view windows.

DesignCadTile should be added back to the Window menu.

To eliminate slow startup in 3D mode, DC should open with all views minimized, or with all but one view minimized.

bd

PS. Perhaps "RestoreDesignCadTile" should be renamed "RestoreDefaultTile" to eliminate confusion with DesignCadTile, which restores the User tile.

Alternatively, "SetDesignCadTile" and "DesignCadTile" could be renamed "SetUserTile" and "RestoreUserTile"