Zurück zu Willert.de

VBA/Java script to follow links

how to access or perform things by using the Rhapsody API (not how to use the UI)

VBA/Java script to follow links

Postby bitblit » February 21st, 2010, 10:39 pm

Does anybody have a sample script they can post that follows a behavioral port, through links and pass thru ports, to the end behavioral port? I can only get it half way before I run out of properties that have data that I'm looking for. And it seems really convoluted the way I had to write it. I'm using it to parse a drawing to generate a flat file with some analysis data.
Posts: 138
Joined: December 11th, 2008, 12:51 am

Re: VBA/Java script to follow links

Postby andyl » June 1st, 2010, 4:26 pm

You'll need to start at the link ...

(where l is a link/connector)
Set l = getSelectedElement
Set p = l.fromPort
Set p1 = l.toPort

Get Rhapsody Tips, Tricks, Tutorials, Wizards and Sample Models here:

Posts: 23
Joined: March 3rd, 2008, 5:12 pm
Location: UK

Return to Rhapsody API

Who is online

Users browsing this forum: No registered users and 2 guests