Custom element shape or icon

Discussions about Domain Specific Language customizations

Moderator: Moderators

Custom element shape or icon

Postby Isaac.Steinbeck@tu-harburg.de » Sat Dec 02, 2017 11:21 am

Hello Community,
I am a newbie to MagicDraw Cameo Systems Modeler but I am getting it slowly. But now I have an issue for which I need a little help. Is it possible to build custom element shapes or icons, with the purpose to fill in text within the icons or shapes?
I managed to build custom elements through stereotypes and customizations but when I used my custom elements I realized, that I'm not able to put text within the icon but below. I attached a picture for better understanding. I hope somebody can help me with this issue, would be really great.

Kind regards
Isaac
You do not have the required permissions to view the files attached to this post.
Isaac.Steinbeck@tu-harburg.de
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Sat Dec 02, 2017 9:42 am

Re: Custom element shape or icon

Postby Rolandas » Tue Dec 05, 2017 12:59 am

Hello,

There is no OpenAPI to create new custom shape elements. Also what elements you trying to display different? Class'es, Block's or different elements?
You always can apply your image to shape and display it instead of the shape element. So you could create what you want in an image and then set it as shape image and show it.


Regards,
No Magic Support Team
Rolandas
Customer Support
Customer Support
 
Posts: 234
Posts Rating:19
Joined: Mon Jul 30, 2012 3:59 am

Re: Custom element shape or icon

Postby Isaac.Steinbeck@tu-harburg.de » Wed Dec 06, 2017 11:54 am

Thx for the reply Rolandas. Basically those elements would be Classes. Thank you for your advise on the shape image, but I already managed to display my custom icons insteadt of the shapes. It would have been pretty cool, if I could use my "images" as shapes to insert a text within them, just like when a Use case-element is used. But since thats not possible I have to live with it and its fine.

Regards,
Isaac
Isaac.Steinbeck@tu-harburg.de
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Sat Dec 02, 2017 9:42 am

Re: Custom element shape or icon

Postby Dave Banham » Thu Jun 25, 2020 8:53 am

I have the same question: In my DSL I want to change the shape of the underlying class meta-type such that the name of the DSL element is displayed within the bounds of the DSL symbol shape, e.g. circle, ellipse, rhombus, parallelogram, rectangle, etc.
Dave Banham
Forum Beginner
Forum Beginner
 
Posts: 25
Posts Rating:1
Joined: Tue Mar 03, 2020 12:59 pm


Return to DSL

Who is online

Users browsing this forum: No registered users and 0 guests