PC-DMIS 2021.1 Object Library
LoadLayout Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
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.
PCDLRN ActiveX DLL > PartProgram Object : LoadLayout Method

Glossary Item Box

Description

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

Copyright © 2020. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.