AM

Hello everyone!

We imported from ARIS 7 our database to ARIS 9 and run the macro "Adapt model layout to new symbol sizes", so far everything works fine and the objects etc. are changed. The problem is that the font color will not be changed, so font text that was white in ARIS 7 is now not readable and to go manually through the whole database  would take ages.

My question would be does anyone know how to adapt the existing macro or write a macro to run it over the database, so the font color on the objects changes to black?

EDIT: I went through the ARIS 9 Help but I do not really understand how to get the text of an object an change it.

For my understanding it should work like that but no effect on the models when running it..

  var selModels = Context.getSelectedModels();
  for(var i=0; i<selModels.length; i++)
  { 
   var selObjects=Context.getSelectedObjOccs();
   for(var i=0; i<selObjects.length; i++)
  
   var attrOcc=selObjects[i];
   attrOcc.FontStyleSheet().Font( Context.getSelectedLanguage() ).setColor ( new java.awt.Color(0,0,0) )  
  }

As I said I have no deep knowledge in coding but your help is highly appreciated :)

Br

Alex

 

 

by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Mon, 06/15/2015 - 09:16

Hi,

well you are not running on the AttrOccs of the ObjOccs, but on the ObjOccs themselves. And they have no Font color...

So it should look more like this:

for (i = 0; i < selObjects.length; i++){

    oObjOcc = selObjects[i];

    oAttrOccList = oObjOcc.AttrOccList();

    ...

}

But - why don't you do this via Template ?   Could be easier...

BR Robert

0
by Alexander Mayer Author
Posted on Wed, 06/17/2015 - 09:39

Hi Robert

thanks for the feedback and the hint about the code!

About the template, I import an ARIS 7 db into ARIS 9 and run the macro "adapt model layout...", but the macro does not set the font color to black as it is set in the template of the db - see screen shot.

The font template "standard" is set as black, but somehow it is not addressing on to the symbols when they were set in white under ARIS 7?

BR,  Alex

File attachments
0
by Robert Goldenbaum
Badge for 'Question Solver' achievement
Posted on Wed, 06/17/2015 - 10:32

Hm yes, this could happen if the template has not been set to change the attr occ of the name. But if you create a new template where this is defined, you could use this template for all models and delete it afterwards...

0
by Runé Becker
Badge for 'Mastermind' achievement
Posted on Thu, 06/18/2015 - 20:32

Did you try this? FIRST reset the template and THEN apply the new one.

Cheers

Rune

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

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