Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: David Rains (bioform) on March 12, 2014, 02:31:14 am

Title: InvokeConstructPicker - Limited to Elements?
Post by: David Rains (bioform) on March 12, 2014, 02:31:14 am
The documentation for the related Select <Item> Dialog indicates that you can select attributes, etc.

And even the InvokeConstructPicker will allow you to filter for attributes, but on clicking OK... alas a 0 is returned.

I need to be able to use the InvokeConstructPicker capability to allow a user to specify a state, operation, or attribute (besides an element).

Any ideas on how I can go about this (I'm doing this in VBscript)

Thanks as always...
 ;)
Title: Re: InvokeConstructPicker - Limited to Elements?
Post by: Aaron B on March 12, 2014, 11:53:02 am
The help documentation states that InvokeConstructPicker returns the ElementID of the selected object.  Pretty sure it currently only supports selection of elements, not features such as Attributes or Operations.
Title: Re: InvokeConstructPicker - Limited to Elements?
Post by: David Rains (bioform) on March 12, 2014, 02:23:18 pm
The link from the help text for Repository.InvokeConstructPicker - references the following help via the "Select <Item> Dialog" help link to

http://www.sparxsystems.com/enterprise_architect_user_guide/10/modeling_basics/instanceclassifier.html

That is what lead me to ask the question as this mentions several of the things I would LOVE to be able to select!  :)

Thanks for the help and the confirmation.
Title: Re: InvokeConstructPicker - Limited to Elements?
Post by: Geert Bellekens on March 12, 2014, 05:42:35 pm
David,

I can confirm that it only supports elements. I've already asked for it to be extended to other types of elements, but no luck so far.

I suggest you send in a feature request as well.

Geert