Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - marke

Pages: 1 2 [3]
Bugs and Issues / allocateActivityPartition doesn't allocate
« on: May 18, 2012, 08:21:54 pm »
... activities or actions to the instance classifier (in SysML). It just creates an owned/owned by relationship.

Further, you can't set an instance (e.g. part) to be the instance classifier, only blocks.

Bugs and Issues / Effect of allocateActivityPartition (SysML)
« on: October 25, 2011, 03:46:44 am »
Creating an action or activity in an allocateActivityPartition just seems to create an "owns" relationship between the partition and the action/activity. I was hoping it would create an allocatedTo relationship.

Is this a short-coming or is there are good reason for this behaviour?

Thank you,



I tried it and this function does not traverse down through sub-packages - that's for another day (or an exercise for the reader ;)).

I found a model dump example jscript which would no doubt give tips on how to traverse sub-packages.


Thank you for all the responses. In case anyone else stumbles across the same problem here is what worked for me:

function traverseAllElementsIn( elements ) // elements as EA.Collection
      // Navigate the elements collection.
      for ( var j = 0 ; j < elements.Count ; j++ )
            var theElement as EA.Element;
            theElement = elements.GetAt( j );
              renameVerifMethod(theElement); // this does the work
            var subElements as EA.Collection;
            subElements = theElement.Elements;
            if (subElements.Count > 0)
                  Session.Output("# of sub elements " + subElements.Count);
                  traverseAllElementsIn( subElements );



The Package class Elements attribute help entry says it is "a collection of elements that belong to this package". Is that collection just the elements that are leafs of the package? Or does it include the whole tree beneath the package?

Experimentation suggests it is the former (just leaf elements) which I found a bit surprising.

If the former, is there an existing method to return the whole tree as a collection or do I need to implement a traversal method?

Thank you,


Automation Interface, Add-Ins and Tools / SysML SI Units
« on: September 15, 2011, 01:54:42 am »
Is there an add-in package for SI units? Can't find any mention in help & online search.


I'm trying to allocate activities to blocks. I realise I could do this explicitly with an allocation relationship. However, it seems the allocateActivityPartition should do this automatically...

I have an activity diagram with an allocateActivityPartition on it. I've then given that partition an instance classifier of the block I want the owned activities allocated to.

I thought that would be enough to create an allocated relationship between the activities in the partition and the block but it doesn't seem to be.

The SysML Help says (on Viewing Allocations)

"It locates all elements that are owned by an AllocateActivityPartition which has been typed by a Block element."

How do I "type" an AllocateActivityPartition by a Block element?

Thank you,


Pages: 1 2 [3]