Extending Attribute Type drop down list (Class Diagram) to show user defined types
-
Sunday, November 27, 2011 5:46 PM
I have a number of user defined types (all based on primitive types) which I would like to be able to select from in the Types drop down list - currently the list is limited to Boolean, Integer and String - I want to extent it to allow selection of int16, int32, int64 etc. Is there a way to do this?
Best Regards Sina
All Replies
-
Monday, November 28, 2011 12:38 PMOwner
Add to the external types list - click on the root in the DSL Explorer, and choose Add New External Type.
- Alan -MSFT- Proposed As Answer by Alan Cameron Wills -Microsoft Employee, Owner Monday, November 28, 2011 12:38 PM
- Unproposed As Answer by Alan Cameron Wills -Microsoft Employee, Owner Monday, November 28, 2011 1:11 PM
-
Monday, November 28, 2011 12:59 PMI don't seem to have access to DSL Explorer - what do I need to have installled to get this tool?
Best Regards Sina -
Monday, November 28, 2011 1:13 PMOwner
Oops, sorry - I thought we were talking about DSLs in Visualization and Modeling SDK.
In UML models, the best you can do is to create a class called System.Int32, or whatever you want. You can just create it in UML Explorer, if you don't want to put it on a diagram.
You will then be able to see it in the list of types for an attribute. However, the name will always be qualified by the name of your model.
- Alan -MSFT- Edited by Alan Cameron Wills -Microsoft Employee, Owner Monday, November 28, 2011 1:14 PM
-
Monday, November 28, 2011 1:40 PM
Would this then enable me to use the new Type in all modelling projects?
Best Regards Sina -
Wednesday, April 18, 2012 9:03 AMOwner
We're sorry your question hasn't received an answer.
Having reviewed the open questions on the forum, we have marked all unanswered questions older than sixty days as closed.
If this is still an issue for you, please re-activate or re-ask the question. Thank you.- Marked As Answer by DuncanPMicrosoft Employee, Owner Thursday, April 19, 2012 11:01 AM

