Wiki

This version is outdated by a newer approved version.DiffThis version (10 Feb 2021 11:47) was approved by Krithika Manchale.

This is an old revision of the document!


Click here to return back

Add Connection

This action allows the user to add connection between two elements specified on the parent canvas or schematic page. Return type is a success/failure message in the form of list of strings. It also returns channel and link created. The function call takes in 8 arguments.


API

list<string> AddConnection(1: string parentUid, 2: string channelFullName, 3: string sourceUid, 4:string targetUid, 5: string sourcePinType, 6: string targetPinType, 7: string sourcePinName, 8: string targetPinName)


Arguments

  1. parentUid - The Uid of the parent canvas/Schematic onto which the plugin must be added
  2. channelFullName- Full name of the channel with its version number (i.e., in the form of “FullName_vw.x.y.z”, where w, x, y and z are integers).
  3. sourceUid -Uid of the source element
  4. targetUid -Uid of the target element
  5. sourcePinType -Pin type of the source element
  6. targetPinType -Pin type of the target element
  7. sourcePinName -Pin name of the source element
  8. targetPinName -Pin name of the target element


Result

“Connection added successfully”
“Channel: <channelUid>”
“Link: <LinkUid>”

Error

Error message as given out by the sever application.

resources/tools-software/sigmastudiov2/usingsigmastudio/scripting/addconnection.1593062590.txt.gz · Last modified: 25 Jun 2020 07:23 by Krithika Manchale