IBrowser¶
- class IBrowser¶
Bases:
ImpactCOMWrapperBase- Description:
Represents the impact_browser application (also known as Impact Viewer)
- Remarks:
The impact_browser can be automated using the IBrowser object. Only a single instance of the impact_browser can be opened/automated on each workstation. Creating and Releasing the IBrowser object will not close the impact_browser application; the user must interactively close it.
Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance
- display_file(file_name)¶
- Description:
Display the drawing with the file name specified.
- Remarks:
The browser will switch to Files mode and display the file specified. If the browser has the Files tab hidden then this function will have no effect.
- Parameters:
file_name (str) – The full path name to the file to display.
- display_item_by_code(code, type)¶
- Description:
Display an item with the specified drawing type and code.
- Remarks:
The item is located using the primary database connection of the impact_browser. This is the database connection that has been specified to load Master Tool Settings from. The browser will switch to Databases mode and display the item specified. If the browser has the Databases tab hidden then this function will have no effect.
- Parameters:
code (str) – Specifies the code of the drawing to find.
type (ipDrawingType) – Specifies the type of drawing to find.
- display_item_by_key(key, type)¶
- Description:
Display an item with the specified drawing type and key.
- Parameters:
key (int) – Specifies the key of the drawing to find.
type (ipDrawingType) – Specifies the type of drawing to find.
- display_item_by_name(name, type)¶
- Description:
Display an item with the specified drawing type and name.
- Parameters:
name (str) – Specifies the name of the drawing to find.
type (ipDrawingType) – Specifies the type of drawing to find.
- display_layer(key_or_name)¶
- Description:
Display the layer with the key or name specified.
- Parameters:
key_or_name (any) – Specifies the key (integer) or name (string) of a layer to display.