The swExport tool can be used to export a SystemWeaver Graph. Using this tool, you can implement your own application that can utilize the swExport.exe for graph export based on your organization's needs. To obtain the tool, contact your internal IT department or support@systemweaver.com.
Prerequisites
- A configurable graph to export
- SystemWeaver version Lunden (R45) or later
- An installation of swExport
Required Meta Model
Graph export has no required meta model, or item structure. It is suitable for all configurable graph use cases.
Explanation of Settings
Parameter | Definition | Expected value type | Comment | Example |
serverName | The name or IP address of SystemWeaver server | String | Required | serverName=localhost |
serverPort | The port of SystemWeaver server | Integer | Required | serverPort=1768 |
serverUsername | The SystemWeaver username for the connection | String | If not supplied, Windows authentication will be used. | serverUsername=user |
serverPassword | The SystemWeaver password for the provided username | String | If not supplied, Windows authentication will be used. | serverPassword=pass |
type | Specifies export is of a configurable graph | graph | Required | type=graph |
itemID | The xID of the item for which the configuration applies | SystemWeaver xID | Required | itemID=x0000001D04533514 |
configItem | The graph configuration to be executed | Config item xID or Ref id* | Required | configItem=SI0167:SystemModel configItem=x34000000000A384D |
parameter | To specify a parameter name and selected value | Parameter name, and item xID and value | Optional, but required if there are parameters specified in the configuration | parameter="(p0;x04000000000F3AD1)" parameter"(p1;false)" |
filename** | The name of the output file. If path is not included, file will generate in same location as executable. | String | Required | filename="C:\Work\SystemModel2“ |
fileFormat | The type of output file | Supported: png jpg graphml xps | Required, unless file type extension, e.g., png, is included in fileName value. | fileFormat="graphml" |
* The difference between the two is explained in Referencing Latest vs Specific Version of Config Item View.
** Note that if you hardcode the name and do several exports, older output will be replaced. To keep the old files, make the name dynamic, e.g., Name + TimeOfExport.
Example Command Lines
Using Username and Password
Using Network Authentication
This command will log in the user account to the server, build and export the grid, and then log out.