News:

Please note new Forum URL: forum.designcad.com

Main Menu

3d View Toggle

Started by bdeck, December 12, 2007, 09:28:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bdeck

3D View Manager                             

Note: This macro was originally posted in 2007.  Please note updated info about this macro in Reply 3

Many 3d drawing operations in DC go much faster if only one window is open per file.

The macro in the link below uses an external executable to maximize a chosen view window, and close all the others.

It allows quickly changing between views.  Works with multiple files.

To restore the previous multiple views that have been recorded using SetDesignCADTile, use  DesigncadTile from the menu, or use DcadTile from the command line. Otherwise use RestoreDesigncadTile from the menu or command line, or RestoreDcadTile from the command line. (Note RestoreDesignCadTile will erase all existing windows before opening 4 new windows. )

Assign a hotkey to the macro and follow the instructions at the bottom of the screen.

http://cadsavant.com/nogo/dc/vm.zip]https://cadsavant.com/nogo/dc/vm.zip]http://cadsavant.com/nogo/dc/vm.zip


bdeck

#1
Here's an update to the macro vm.dm3 from the zip file of the original post.

It calls the executable vmx01.exe (ViewManagerExecutable) to close all but one window you have chosen by clicking on it when prompted by the macro. I've renamed it "t1", which stands for "close all windows in the tile except 1", and included in the zip file download below, along with the executable file..

If you have saved your tile data using setdcadtile or Set As DesignCad Tile from the menu,  you can then restore it with dcadtile from the command line or DesignCad Tile from the menu.

Otherwise use Restoredcadtile from the comand line or Restore DesignCad Tile from the menu

The main difference between Dcadtile and RestoreDcadtile is that Dcadtile restores rotation angle and distance for all windows, and will restore closed windows if saved with SetDesignCadTile.

RestoreDcadTile will preserve erases all rotation angle and distance data. It also permanently erases any windows beyond the 4 defaults. Edit 01August23 (In version 31.0 RestoreDcadTile also fails to restore closed windows, and covers the Front, Top, and Side windows with a maximized Main window. )

Neither method restores zoom or pan settings. Both methods restore windows to
"fit-to-window" zoom, even the window that was not closed.


''t1.d3m    3d view manager     v0.2  12/07   B.Deck
' Use this macro (which calls the executable vmx01.exe) to Maximize a chosen tile window and close the others.
' If you have saved your tile data wih setdcadtile or Set As DesignCad,
' you can then restore your tile windows with dcadtile or DesignCad Tile.
' Otherwise use Restoredcadtile or Restore DesignCad Tile to restore the default windows.
'
' Run the macro, answer the questin in the dialog and then find directions in the statas bar.

if sys(344)<>0 then end  'if not in 3d mode

input "Do you want to SetAsDcadTile before closing views ?  1 = yes", a$
if a$="1" then
        >setdcadtile
{
}
endif
print "Click a Window to Maximize, or hit any key to exit"

anykey k

if k<2 then  ' if k is a mouse click run the closer program
rstring$="vmx01.exe "+sys$(90)+chr$(0)
run rstring$,0     
endif

end


t1.d3m + vmx.exe

Rob S

Without any further detailed testing, the only issue I can see is that if the user runs restore designcad tile with less that 4 windows open, he will not get the full 4-pane view.

Also, restore designcad tile hides the 3 small windows behind the main window, so it is necessary to drag the left edge of the main window inward to see the proper result.

When that has been done, you can then "set as Designcad tile"
User since forever

bdeck

#3
Quote from: Rob S on July 29, 2023, 07:47:31 AM
...  if the user runs restore designcad tile with less that 4 windows open, he will not get the full 4-pane view.

... restore designcad tile hides the 3 small windows behind the main window, ...

Hi Rob,

Yes, I should have mentioned that.

However, after further testing I discovered that the premise, upon which this macro was written back in 2007, is no longer valid, if it ever was.

It turns out that minimizing a window is as effective as closing it in terms of enhancing loading and processing speed.

https://forum.designcad.com/index.php?topic=7870.msg55166#msg55166

Perhaps its time to modify the executable to minimize windows instead of close them. Oh boy...