Author Topic: How to get name of Connector client element in VB Script  (Read 4810 times)

Maverick351

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to get name of Connector client element in VB Script
« on: February 29, 2024, 10:45:56 pm »
Hello all,
This is very naive question but I am struggling to get the name of connectors target in VBscript
I saw in some help that we can get it by
Currentconnector.targer or currenctconnector.End_object_ID but any of these not working.

I can get the ClientID (unique ID) but I am looking to get the name of target element.

Thanks
« Last Edit: February 29, 2024, 10:48:08 pm by Maverick351 »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to get name of Connector client element in VB Script
« Reply #1 on: March 01, 2024, 08:27:20 pm »
You need to retrieve it from the elements by the object-id

q.

tweber

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: How to get name of Connector client element in VB Script
« Reply #2 on: March 02, 2024, 03:47:28 am »
Not sure about VB, but in jscript, here's the code:
var conn as EA.Connector;
var client as EA.Element;
// for the connector,

conn  = // the connector you're interested in.

client = Repository.GetElementByID(conn.ClientID);
var cName = client.Name;


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to get name of Connector client element in VB Script
« Reply #3 on: March 02, 2024, 11:19:48 am »
The syntax is different, but those are the operations to use...

q.