The LoadLayout method loads a customized PC-DMIS user-interface layout as if it were selected from the Windows Layout toolbar inside PC-DMIS. Also, if a layout has been created and moved to a different directory, you can access it by specifying the absolute or relative file name. For information on using this toolbar, see the "Using Toolbars" section inside your PC-DMIS Help File.
Visual Basic |
---|
Public Function LoadLayout( _ ByVal LayoutFileName As String _ ) As Boolean |
- LayoutFileName
- Required String that indicates the file the layout should be read from. This can be an absolute path, a relative path, or the name the user typed in when creating the layout in PC-DMIS.
Dim Part As PCDLRN.PartProgram
' loads the first layout from the current user's setup information directory
Part.LoadLayout "layout1.dat"
' loads the layout in the specified file
Part.LoadLayout "c:\mylayout.dat"
' loads the layout named "Learn", if it exists
Part.LoadLayout "Learn"