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 [email protected].

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

ParameterDefinition
Expected value typeCommentExample
serverName
The name or IP address of SystemWeaver server
String
Required
serverName=localhost
serverPortThe port of SystemWeaver server
IntegerRequiredserverPort=1768
serverUsernameThe SystemWeaver username for the connection
StringIf not supplied, Windows authentication will be used.serverUsername=user
serverPasswordThe SystemWeaver password for the provided username
StringIf not supplied, Windows authentication will be used.serverPassword=pass
type
Specifies export is of a configurable graph
graphRequired
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
parameterTo specify a parameter name and selected valueParameter name, and item xID and valueOptional, but required if there are parameters specified in the configurationparameter="(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.StringRequired filename="C:\Work\SystemModel2“
fileFormatThe type of output fileSupported:
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

swExport serverUsername="admin" serverPassword="wagadoff" serverName=sys7 serverPort=1355 type=graph fileFormat="png" filename="SystemModel1.png" itemID=x040000000001C3D7 configItem=SI0167:SystemModel parameter="(ShowExtended;false)" parameter="(ShowEvents;true)" parameter="(EventsContext;x0400000000021411)
Generic

Using Network Authentication

swExport serverName=sys7 serverPort=1355 type=graph fileFormat="jpg" filename="SystemModel2.jpg" itemID=x040000000001C3D7 configItem=SI0167:SystemModel parameter="(ShowExtended;false)" parameter="(ShowEvents;true)" parameter="(EventsContext;x0400000000021411)
Generic


This command will log in the user account to the server, build and export the grid, and then log out. 

Example Result