Book a Demo

Author Topic: AddNew types  (Read 4487 times)

mvinca

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
    • View Profile
AddNew types
« on: April 27, 2010, 03:24:21 am »
Is there a list of all the types that Collection.AddNew() allows as the second parameter?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: AddNew types
« Reply #1 on: April 27, 2010, 03:33:57 pm »
I haven't found one, but there's already a list of all element types in the documentation of Element.Type.
I'm afraid it's going to be a bit of trial and error.

Geert

Christopher.Steven

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: AddNew types
« Reply #2 on: July 12, 2017, 10:59:29 pm »
I know this is a wicked old topic...

So Mr. Geert I am using your TFS Connector and I am stepping through your code to find out the format of the EA Type. I found the list you point to of types but how do I include Stereotypes in the textbox. it says type/stereotype. when I try Class/Epic it does not work. If I try just Epic it also breaks.

What is the format of the type that the collection.AddNew Method accepts?

Chris

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: AddNew types
« Reply #3 on: July 13, 2017, 08:29:18 pm »
The textbox accepts both stereotypes as element types.
Later in the code I figure out which is which and take the appropriate action.

I do believe the stereotypes have to be fully qualified like "Archimate2::ArchiMate_Requirement"

Geert

Christopher.Steven

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: AddNew types
« Reply #4 on: July 13, 2017, 09:51:16 pm »
I think that is exactly what I was looking for. I could not find the fully qualified path. Thanks

PS: could put the format in the textbox label :)