RW

Hello community,

I have two questions:

  1. Is it possible to show/position the object and connection attributes in a model via makro/report?
  2. How do I add the content in a matrix model? I am able to create the column and row header, but how do I set that i.e. a person works in a organization unit?

I would be very thankful for source code examples and any help.

 

Regards Richard

by Martin Miskovic
Posted on Tue, 08/25/2015 - 09:59

Hi Richard,

1. Could you specify your question? What do you want to export and what the format should be? (X/Y coordinates, .xls)

You can get the connection attributes this way:

 

var connAttr = connList[i].Attribute(Constants.attrTypeNum, Context.getSelectedLanguage()).GetValue(false);

where connList is the list of connections from any object.

2. You need to use createCxn method of the Matrix Model object.

var matrixHeaderRows = matrixModel.getHeader(true).getCells();
var matrixHeaderColumns = matrixModel.getHeader(false).getCells();

matrixModel.createCxn(matrixHeaderRows[0], matrixHeaderColumns[0], Constants.cxnType);

To further examine the individual rows & columns you need to call

var objDef = matrixHeaderRows[i].getDefinition();

 

Regards,

Martin

0
by Richard W Author
Posted on Tue, 08/25/2015 - 11:44

Hi Martin,

thank you for your reply.

1.

I need something like this:

The attributes of the connection or object should be positioned above the line or object. Is this possible via a report?

2.

I already tried this, the problem is, that the field remains empty instead of checked like in the second image.

                         

 

I have another question:

3.

Is it possible to embed/lodge a model in an object occurrence via report?

0
by Martin Miskovic
Posted on Fri, 09/04/2015 - 11:08

Hi, sorry for the delay.

1. As I inspected ARIS Script help, you can create graphical object out of model using:

Model.Graphic ( boolean CutObjects, boolean BlackWhite, int localeId )

This will create a ModelPicture object which has a parent class Picture -> there you will find additional methods. That should be answer to your third question.

Unfortunately I did not find how could you create graphic out of object / connection occurences. Does not seem possible, but maybe someone will prove me wrong.

2. Mine example does work, but I did not test it on ARIS 9 (still using 7.x).

Anyway, if the code I proposed works for you, meaning it does not create errors showing the missing objects or methods it should work. Just make sure you are using proper objects, connection types, etc...

Regards,

Martin

0
by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Fri, 09/04/2015 - 13:17

Hi Richard,

could it be that those connections are not selected as to be shown ?

Creating AttrOccs for Cxn is possible: 

oAttrOcc = oObjOcc.AttrOcc(AttrNum)

oAttrOcc.Create(Constants.ATTROCC_TOPLEFT, g_oFontStyle)

Should work as well for connection occs...

@Martin - as far as I know it is not possible to create a picture only for single objects. Only way to do this is to create a new model, place the occs in there, generate the graphic and then delete the model once again...

BR Robert

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks
  • Profile picture for user frankweise
  • Profile picture for user Henrik Buckler
  • Profile picture for user UffeK
  • SS
  • MZ
  • 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