PC-Dmis 2010 Object Library | Send comments on this topic. | See Object Hierarchy Chart
LoadLayout Method
See Also

Collapse All Expand All

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.

# Description

Loads a layout file 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.

# Syntax

Visual Basic

    Public Function LoadLayout( _
       ByVal LayoutFileName As String _
    ) As Boolean

# Parameters

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.

# Return Type

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"

# See Also

PartProgram Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.