ARIS Super User Group
Register

View all
Profile picture for user jordanjt95

Hi,

I'm trying to draw a link between two objects with a report.

I don't know how I can create a link that has a more complex shape than a straight line through scripting.

My report has to change the type of all the connexions in a model, without changing the aspect of the objects in the model, including the aspects of the links, just the type of the links has to be replaced by another type.

So , I'm just going through all the connexions in the model, getting the source object X and Y coordinates , the Target object X and Y coordinates and then connecting the objects with the other link with these coordinates.

The problem is that , if in the original model, there is a link with more than one corner, the report will change all the links to the type I defined, but the aspect won't be the same as the original.

I attached an example where I draw 3 objects and links between them that I don't know how to reproduce through script.

If some can help, I'll appreciate.

Thank you

File attachments
by Martin Schröder
Badge for 'Contributor' achievement
Posted on Tue, 11/15/2022 - 15:49

Salut Jordan,

if it were not for your example image I would say: create new connections and then generate the model layout through the script API.

Maybe you can find the necessary methods in the SAG standard script "Replace object types". Look for "mappedconnections" and ocxnocc.Model().CreateCxnOcc(....). It seems that you can re-use the ocxnocc.PointList() in order to copy the connection shape while replacing the type.

Regards, Martin

0

Featured achievement

Genius
You like to help others solve their problems by answering questions.
Recent Unlocks
  • KF
  • KH
  • RG
  • Profile picture for user Vee_ARIS
  • Profile picture for user smarty
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock