Book a Demo

Author Topic: Get the object type witht he help of the item id  (Read 3718 times)

ALL_IN_ONE

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Get the object type witht he help of the item id
« on: June 10, 2010, 05:04:54 pm »
Hello All,

I have a question regarding the AI.
I am working on a addin where I have the ID but I dont know what is the type of the model item with that ID. Do we have any way to know the type whether it is an element, diagram, method . . . .and so on. I only have the "ID" with me.

Regards,
ALL_IN_ONE

ALL_IN_ONE

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Re: Get the object type witht he help of the item
« Reply #1 on: June 10, 2010, 07:30:12 pm »
hello all,

the above question is wrong. I just noticed that same ids can be given to different object types but not the same object type.

Regards,
ALL_IN_ONE

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Get the object type witht he help of the item
« Reply #2 on: June 11, 2010, 04:42:05 pm »
All_In_One,

You have to either use a combination of the "ID" and the (database) type of the object, or use the GUID to uniquely identify an object.

Geert