Book a Demo

Author Topic: Finding elements relative to connectors in VBScript  (Read 4346 times)

djdejong

  • EA User
  • **
  • Posts: 32
  • Karma: +2/-0
    • View Profile
Finding elements relative to connectors in VBScript
« on: November 15, 2016, 11:01:35 am »
Hi,

Is there a way to simply access the source and target of a given connector element?  I've defined and populated an array with elements as below, where getDiagramObjects is a procedure that returns an array of elements of the specified type from the diagram:


dim arrSequenceFlows

set arrSequenceFlows = getDiagramObjects(currentDiagram, "SequenceFlow")



I want to now access the ID (or any unique identifier) of a source/target of a given element in teh array arrSequenceFlows. 

Thanks!
Dana

djdejong

  • EA User
  • **
  • Posts: 32
  • Karma: +2/-0
    • View Profile
Re: Finding elements relative to connectors in VBScript
« Reply #1 on: November 15, 2016, 11:26:26 am »
It looks like "EA.Connector.ClientID" might get the ID of the source of the connector.

djdejong

  • EA User
  • **
  • Posts: 32
  • Karma: +2/-0
    • View Profile
Re: Finding elements relative to connectors in VBScript
« Reply #2 on: November 15, 2016, 11:29:15 am »
Ah, and SupplierID the ID of the target.