I'm trying to programmatically create a use case diagram. I'm able to create a new diagram, and put the use case oval and all of the actors on it.
What's stumping me is that I can't figure out how to programmatically create the association between an actor and the use case oval.
I've got something like this:
IRPRelation theRelation =(IRPRelation) theActor.addNewAggr("AssociationEnd", "");
IRPLink link = thActor.addLinkToElement(theUseCase, theRelation,null,null);
It so doesn't work. After setting the other side of the relation (second line), if I look at it, it's still null. In addition, when I try to create the link from the relation (third line), it throws a RhapsodyRuntimeException.
Has anyone ever created a link (based on an association relation) programatically?