Original Tip Date: Jan. 6, 2004
AskInga Tip #381
can you direct key-in Pixel Width and Height
I found the View Size popup that lets you put x and Y settings
the old Basic Macro will work, but wanted the VBA fix
' This is to Set the Height and Width
'In the Settings>Design File>Views
' Start a command
MbeSendCommand "MDL SILENTLOAD DGNSET"
' When a command brings up a modal dialog,
' a later statement must close the dialog,
' or the MbeState.modalDialogByUser property
' should be set to 1 so that the user must close
' the dialog when the macro is executed.
' Also, you may not use the debugger "Step"
' commands while a modal dialog is displayed.
' Opened modal dialog "Design File Settings"
' Set a variable associated with a dialog box
MbeSetAppVariable "DGNSET", "dgnSet.width[dgnSet.viewNumber]", 985&
MbeSetAppVariable "DGNSET", "dgnSet.height[dgnSet.viewNumber]", 723&
' Closed modal dialog "Design File Settings"
' Following comment is the command to close a modal dialog
MbeSendCommand "MBE1 CLOSEMODAL OK"
MbeSendCommand "MDL SILENTUNLOAD DGNSET"