Niraj Chapla
Niraj Chapla

Reputation: 2179

Automation API to get Element Type list and Fields available for particular Element Type

I have couple of questions regarding Sparx EA automation API in C#.

1) How can I get the list of all Types available. For example : Feature, Requirement, Action etc.

2) Is it possible to get the fields applicable to particular type? For example When I wanted to create element of type Action, Priority field is not available for that type. But when I am creating the element of Type Feature, Priority field is there in the screen. Now, I want to create element of different type using API. So, I need a list of all available fields for particular type. How can I do that?

Upvotes: 2

Views: 122

Answers (2)

user3165438
user3165438

Reputation: 2661

  1. Here is a list of elements used in toolbox.
  2. As far as I know, there is no option.

Upvotes: 1

Geert Bellekens
Geert Bellekens

Reputation: 13784

  1. You can use Repository.GetReferenceList to get a list of available element types
  2. No that info is not available.

Upvotes: 1

Related Questions