DrawWorkspace

RetVal=DrawWorkspace(WorkspaceNo, SizeX, SizeY, IncludeGraphs, IncludeText, Filename, Type, Co-ords, Title, ID, NumMaps, *NumWarningHosts, *NumCriticalHosts, NumChecks, NumOkChecks, NumWarnChecks, NumCriticalChecks, WarnFlag, CritFlag)

Description Draws a workspace.
Arguments
[in] WorkspaceNoThe WorksaceNo
[in] SizeXThe width of the workspace in pixels. If zero is provided then the width of the workspace as defined in Net-Probe is used.
[in] SizeYThe height of the workspace. If zero is provided then the height is calculated to maintain the aspect ratio of the workspace.
[in] IncludeGraphsZero specifies that the graphs will not be included. A value of one specifies graphs will be included.
[in] IncludeTextZero specifies that the Text Elements will not be included. A value of one specifies Text Elements will be included.
[in,out] FilenameIf specified, then the resulting workspace is placed in this file. If not, then the file name will be constructed from the values set with SetTmpImagePath method.
[out] TypeArray of strings, starting at 1, used to help create a map area. The values contain a description of the Type of devices found at the co-ords.
[out] Co-ordsArray of strings, starting at 1, used to help create a map area. The values contain four co-ordinates specifying where an element can be found on the workspace.
[out] TitleArray of strings, starting at 1, used to help create a map area. The values contain text describing the element specified by the co-ords.
[out] IDArray of integers, starting at 1, used to help create a map area. The values contain the Element ID or Graph ID found at the co-ords.
[out] NumMapsThe number of items in the arrays used to help construct the map areas.
[out] NumWarningHostsThe number of Hosts on the workspace that have at least one alarm in a warning state.
[out] NumCriticalHostsThe number of Hosts on the workspace that have at least one alarm in a critical state.
[out] NumChecksNumber of alarms in the workspace
[out] NumOkChecksThe number of alarms in the workspace that are reporting OK.
[out] NumWarnChecksThe number of alarms in the workspace that are in Warning state.
[out] NumCriticalChecksThe number of alarms in the workspace that are in Critical state.
[out] WarnFlagA value greater than one indicates that at least one alarm is in Warning state and that it has it's 'Action Enabled' set to Enabled.
[out] CritFlagA value greater than one indicates that at least one alarm is in Critical state and that it has it's 'Action Enabled' set to Enabled.
Return Value Zero indicates success, One indicates failure to communicate with the service and two a failure in obtaining the workspace.

Copyright (c) Warren Flemmer 2006www.net-probe.com