Using OCL to query SmartPackages

General discussions about MagicDraw

Moderator: Moderators

Using OCL to query SmartPackages

Postby yonedal » Mon Jan 28, 2019 2:52 pm

I would like to do the following in the sample model attached:

Use OCL to find all blocks related to the actor named C and also all elements in the SmartPackage named B, and have them show up in the SmartkPackage named C.

Getting the elements out of the SmartPackage is where I'm running in to trouble. I know that I have to use the SmartPackage property additionalElements, but I'm having trouble getting the elements from that property (initial attempt was to try Model::Smart::B.additionalElements->select(...) where ... was some statement that should return true for all elements, but this did not work).

I have a sense that I'm messing up with syntax somewhere here, so some help would be greatly appreciated.
You do not have the required permissions to view the files attached to this post.
Forum Beginner
Forum Beginner
Posts: 35
Posts Rating:0
Joined: Sun Nov 23, 2014 5:09 pm

Return to MagicDraw

Who is online

Users browsing this forum: No registered users and 1 guest