change default property for new type

Discussions about Domain Specific Language customizations

Moderator: Moderators

change default property for new type

Postby Thomas » Tue Apr 04, 2023 5:28 am

Hi,

I have created some new stereotypes for Block and PartProperty as shown in the attached image. When I create a create a Block in the containment tree and drag&drop it on a parametric diagram it generates a PartProperty. How can I a achieve the same behavior for MyBlock? So when i drag&drop MyBlock on a parametrics diagram it should create a myPart.

best regards
Thomas
You do not have the required permissions to view the files attached to this post.
Thomas
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Thu Mar 31, 2022 2:17 am

Re: change default property for new type

Postby jmorales1 » Tue Apr 04, 2023 8:19 am

A parametric (PAR) diagram is a kind of internal block diagram (IBD). IBDs can't contain blocks, and neither can PAR.
jmorales1
No Magic
No Magic
 
Posts: 15
Posts Rating:1
Joined: Wed May 25, 2022 10:05 am

Re: change default property for new type

Postby ThomasD » Wed Apr 05, 2023 2:41 am

yeah, I don't want to create a block in the par diagram. But you can drag a block on a par diagram and then you get a partProperty that's typed by the block. And I wan't a similar behaviour for my custom stereotypes.
ThomasD
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Wed Apr 05, 2023 2:38 am


Return to DSL

Who is online

Users browsing this forum: No registered users and 0 guests