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

 

 

 or register to reply.

Notify Moderator