Skip to content

From a scripting point of view, given a block, whats the easiest way to find the associated blocks? #2766

Answered by amolenaar
mikekidner asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed, endType (or just type) points to the type of an association end. Association ends (gaphor.UML.Property instances) always have a memberEnd property that points to the association. If an association is navigable, you should see the property as part of the Type's ownedAttribute property (given the type has an ownedAttribute property).

For background, here's the set_navigability function.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mikekidner
Comment options

Answer selected by mikekidner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants