JC

Hello,

How can I delete OLE Objects and Comments from selected models? Because I have around 1000 models with OLE Objects and comments and delete it one by one would be too much work.

If any script could do this would be better.

Could someone help me please?

Thanks.

Regards,

Jack.

by Misha Akopov
Posted on Fri, 05/18/2012 - 10:34

Hi Jack,

I had the same task and I wrote the following code.

This will delete all free-form text-s in model.

Be carefull because, in our models we have headers that

contain model name, creator of model and tese attributes are also free-form texts and they will be deleted.

so I have this check :

texts[j].Y()>1000

to ensure that the text is bellow 1000 (bellow header). Try this :

 

var group=ArisData.getSelectedGroups()[0];
var models=group.ModelList(true , Constants.MT_EEPC);

var output=Context.createOutputObject();
for (var i=0; i<models.length; i++){
    var model=models[i];
    var texts=model.TextOccList();
    for(var j=0; j<texts.length; j++){
        var attrOccs=texts[j].AttrOccList();
        if(texts[j].Y()>1000){
            output.OutputLn(texts[j].Y() +model.Name(1033) , "Sylfaen", 12, Constants.C_GREEN, Constants.C_WHITE, Constants.FMT_LEFT, 0);        
            texts[j].Remove();
        }
    }
}
output.WriteReport()
0
by raghuraj singh
Posted on Sat, 05/19/2012 - 06:31

Nice report ..but will it remove templete also..? Thnx

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