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
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
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