Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: mvinca on April 27, 2010, 03:24:21 am

Title: AddNew types
Post by: mvinca on April 27, 2010, 03:24:21 am
Is there a list of all the types that Collection.AddNew() allows as the second parameter?
Title: Re: AddNew types
Post by: Geert Bellekens 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
Title: Re: AddNew types
Post by: Christopher.Steven 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
Title: Re: AddNew types
Post by: Geert Bellekens 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
Title: Re: AddNew types
Post by: Christopher.Steven 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 :)