Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: semmel on October 09, 2007, 07:27:35 am

Title: Usage of Supported Attributes
Post by: semmel on October 09, 2007, 07:27:35 am
Hi,
I am trying to use the Metatype Attribute _defaultDiagramType
with the Type = String
and the initial Value = Logical

its not working what ever I try.

Has someone experience in using these Attributes in a Profile and can give me a hint ?

regards
Martin
Title: Re: Usage of Supported Attributes
Post by: Eve on October 09, 2007, 12:49:34 pm
Make sure you've added the attribute to the metaclass, not the stereotype.  Then it won't create automatically unless you have also set _makeComposite as true.
Title: Re: Usage of Supported Attributes
Post by: semmel on October 09, 2007, 09:42:25 pm
That's what I already did, but nevertheless I get some strande behavior. If I only added _makeComposite it works fine creating a diagram, but its a composite diagram. If I additionally add the _defaultDiagramType, no diagram is created any longer. Only the composite flag in the created element is set. ?
Title: Re: Usage of Supported Attributes
Post by: semmel on October 10, 2007, 07:01:19 am
The DateTime type is also not functioning when used in a stereotype Profile. But this is functioning when just creating a new Tagged value via Settings/UML/TaggedValueTypes dialog.
Title: Re: Usage of Supported Attributes
Post by: «Midnight» on October 10, 2007, 07:07:24 am
Martin,

Please raise formal bug reports on each of these defects, just as you've explained them.

Search my recent posts for a best practice we use to issue bug reports or feature requests and keep both Sparx and the user community in the loop.

David
Title: Re: Usage of Supported Attributes
Post by: KP on October 10, 2007, 01:50:22 pm
Martin, when reporting your bug to Sparx, please attach either a screenshot of your profile diagram or an XMI export of your profile package. These will help to reproduce the problem. Cheers :)