Hi All,
Below is a copy of a thread I started on Augi a while back.
Over time, I will copy a few of the things I posted over there that I think might still be of interest to others. Given all the copyright issues, I will only post what I have written and not any replies or comments from others.
Hi All,
One of the small annoying gripes I have had with Revit is that it is not truly a dual monitor program.
I have my monitors set up as an extended single screen and I will drag revit over both screens and the resize the views to one screen or the other by simply grabbing the grips on the edge of the view and dragging it to where I want them. Typically, when modelling, I would have my plans, elevations and sections on the left hand screen and the 3d view on the right hand screen so that I can view directly any changes I may make on a floor plan on the 3d view.
Having put my toe into the AutoHotKey water I got to thinking as to whether one could write a script to automatically reposition and resize the views to fit to one screen or the other. Although the scripts turned out to be relatively simple in the end, figuring out how the controls worked was stupendously difficult (my thanks to TLM on the AutoHotKey forums for his help and guidance)
Attached is a zip file which contains two AutoHotKey scripts. One Script "left hand screen control" relocates and resizes all of the views I want on the left hand screen, the other, "right hand screen control" controls the views I want on the right hand screen.
Obviously, this is set up entirely for my preference as to what I want on which screen, and for my screen sizes. They will need to be adjusted to suit how you may wish to work and for your screen size.
The controls are self evident and need a little bit of trial and error to get them right. (If anyone does have difficulty adjusting the script, post a reply and I will do a how to guide). When doing the trial and error adjustments adjust all of the x, y's in the script to be identical even if you are testing only one view. The hot keys for the scripts are ctrl + shift + s for the left hand screen and ctrl + shift + z for the right hand screen. Again, you can adjust them as you see fit. These will function as standalone scripts or you can incorporate them into another script (I have incorporated them into SpeedyUI for my use)
Latter Post
I have reworked the code to to add another feature and to make it more complete.
Within the one script there are now three commands:
Ctrl+F1 will resize revit to the full extents of your screen (again, as this is an x, y, cordinate it will need to be checked using AutoIt win Spy and altered in the first winmove command - currently set at 0,0,3350,1050)
As previously, Crtl+Shift+z controls the lh screen (currently set for 0,0 [,1300,800]) and
Crtl+Shift+s controls the right hand screen (currently set for 1300,0 [,1650,800]
additionally I have added the shortcut command "zf" so that any rearranged window will zoom fit to the new size for each view.
Cheers,
Ian
Further info.
A number of members have reported that the zip file does not work for them, rather than reuploading a new zip file which may well have the same problems, below is the ahk code for the dual monitor controls.
SetTitleMatchMode, 2
^F1:: ; F1 was used for demonstration purposes only. Choose a custom hotkey of your liking.
WinMove, Revit,,0,0, 3350, 1050
Return ; Stops the script from automatically executing further hotkey(s).
^+z::
ControlGet, ctrlH, HWND,, Elevation, Revit
WinMove, ahk_id %ctrlH%,, 0, 0 [,1370,950 ]
Send, zf
ControlGet, ctrlH, HWND,, Floor Plan, Revit
WinMove, ahk_id %ctrlH%,, 0, 0 [,1370,950 ]
Send, zf
ControlGet, ctrlH, HWND,, Section, Revit
WinMove, ahk_id %ctrlH%,, 0, 0 [,1370,950 ]
Send, zf
ControlGet, ctrlH, HWND,, Ceiling Plan, Revit
WinMove, ahk_id %ctrlH%,, 0, 0 [,1370,950 ]
Send, zf
ControlGet, ctrlH, HWND,, Sheet, Revit
WinMove, ahk_id %ctrlH%,, 0, 0 [,1370,950 ]
Send, zf
Return
^+s::
ControlGet, ctrlH, HWND,, 3D View, Revit
WinMove, ahk_id %ctrlH%,, 1370, 0 [,1665,950 ]
Send, zf
return
Below is a copy of a thread I started on Augi a while back.
Over time, I will copy a few of the things I posted over there that I think might still be of interest to others. Given all the copyright issues, I will only post what I have written and not any replies or comments from others.
Hi All,
One of the small annoying gripes I have had with Revit is that it is not truly a dual monitor program.
I have my monitors set up as an extended single screen and I will drag revit over both screens and the resize the views to one screen or the other by simply grabbing the grips on the edge of the view and dragging it to where I want them. Typically, when modelling, I would have my plans, elevations and sections on the left hand screen and the 3d view on the right hand screen so that I can view directly any changes I may make on a floor plan on the 3d view.
Having put my toe into the AutoHotKey water I got to thinking as to whether one could write a script to automatically reposition and resize the views to fit to one screen or the other. Although the scripts turned out to be relatively simple in the end, figuring out how the controls worked was stupendously difficult (my thanks to TLM on the AutoHotKey forums for his help and guidance)
Attached is a zip file which contains two AutoHotKey scripts. One Script "left hand screen control" relocates and resizes all of the views I want on the left hand screen, the other, "right hand screen control" controls the views I want on the right hand screen.
Obviously, this is set up entirely for my preference as to what I want on which screen, and for my screen sizes. They will need to be adjusted to suit how you may wish to work and for your screen size.
The controls are self evident and need a little bit of trial and error to get them right. (If anyone does have difficulty adjusting the script, post a reply and I will do a how to guide). When doing the trial and error adjustments adjust all of the x, y's in the script to be identical even if you are testing only one view. The hot keys for the scripts are ctrl + shift + s for the left hand screen and ctrl + shift + z for the right hand screen. Again, you can adjust them as you see fit. These will function as standalone scripts or you can incorporate them into another script (I have incorporated them into SpeedyUI for my use)
Latter Post
I have reworked the code to to add another feature and to make it more complete.
Within the one script there are now three commands:
Ctrl+F1 will resize revit to the full extents of your screen (again, as this is an x, y, cordinate it will need to be checked using AutoIt win Spy and altered in the first winmove command - currently set at 0,0,3350,1050)
As previously, Crtl+Shift+z controls the lh screen (currently set for 0,0 [,1300,800]) and
Crtl+Shift+s controls the right hand screen (currently set for 1300,0 [,1650,800]
additionally I have added the shortcut command "zf" so that any rearranged window will zoom fit to the new size for each view.
Cheers,
Ian
Further info.
A number of members have reported that the zip file does not work for them, rather than reuploading a new zip file which may well have the same problems, below is the ahk code for the dual monitor controls.
SetTitleMatchMode, 2
^F1:: ; F1 was used for demonstration purposes only. Choose a custom hotkey of your liking.
WinMove, Revit,,0,0, 3350, 1050
Return ; Stops the script from automatically executing further hotkey(s).
^+z::
ControlGet, ctrlH, HWND,, Elevation, Revit
WinMove, ahk_id %ctrlH%,, 0, 0 [,1370,950 ]
Send, zf
ControlGet, ctrlH, HWND,, Floor Plan, Revit
WinMove, ahk_id %ctrlH%,, 0, 0 [,1370,950 ]
Send, zf
ControlGet, ctrlH, HWND,, Section, Revit
WinMove, ahk_id %ctrlH%,, 0, 0 [,1370,950 ]
Send, zf
ControlGet, ctrlH, HWND,, Ceiling Plan, Revit
WinMove, ahk_id %ctrlH%,, 0, 0 [,1370,950 ]
Send, zf
ControlGet, ctrlH, HWND,, Sheet, Revit
WinMove, ahk_id %ctrlH%,, 0, 0 [,1370,950 ]
Send, zf
Return
^+s::
ControlGet, ctrlH, HWND,, 3D View, Revit
WinMove, ahk_id %ctrlH%,, 1370, 0 [,1665,950 ]
Send, zf
return
Comment