Displaying Items

Displaying Items
 1# create the Browser automation object
 2# my_browser = CreateObject("ImpactBrowser.Browser")
 3
 4# Note: Uncomment a single line below
 5
 6# to display a file
 7# my_browser.display_file("d:\\Demo Drawings\3580.ipd")
 8
 9# remember we cannot use ipDrawingType.dtProject, ipDrawingType.dtSymbol or ipDrawingType.dtTemplate
10# directly in VBS because they have not previously been defined
11# instead use the values directly
12# ipDrawingType.dtProject = 0, ipDrawingType.dtSymbol = 1, ipDrawingType.dtTemplate = 2
13
14# to display an item using a specific key
15# my_browser.display_item_by_key 1362, 0        'ipDrawingType.dtProject
16# my_browser.display_item_by_key 185, 1        'ipDrawingType.dtSymbol
17
18# to display an item using a specific code
19# my_browser.display_item_by_code "P008672", 0
20
21# to display an item using a specific name
22# my_browser.display_item_by_name "FEF0200", 0
23# my_browser.display_item_by_name "Keep Dry", 1
24# my_browser.display_item_by_name "Simple Square", 2    'ipDrawingType.dtTemplate