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]
31
General Board / Re: SysML 1.3 Nested Ports
« on: April 23, 2013, 08:28:13 pm »
Coincidently, I just created what looks like a nested port.

I did so in the project browser: added New Element full port to a block; then selected the port and again added New Element full port to that port. Then select instance of block in ibd and added "Structural Elements ..." to show the owning port. Then repeated add Structural Elements on owning port to add nested ports.

The question I was about to ask is: is there a limitation on how much you can stretch the owning port on the diagram? I have been able to stretch it enough to hold a few nested ports but seem to have hit a limit.

I'd add an image but I'm guessing the forum doesn't let you do that.

Mark

32
General Board / Re: RTF Property type
« on: October 28, 2011, 08:04:27 pm »
I've got the same problem in 9.1.910 and it applies in the html output too. The port documentation make no mention of the element type. This is a fundamental omission if you are trying to document interfaces.

33
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.

34
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,

Mark

35
Geert,

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.

Mark

36
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 );
            }
      }
}

Mark

37
Hi,

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,

Mark

38
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.

Mark

39
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,

Mark

Pages: 1 2 [3]