BK

Hi Guys

I am creating a macro. The objective is when I run this custom macro on function objects, it will create FADs in the group that the objects (belongs). I need to select the functions in the EPC and run the macro. Here is code, can you please correct me whereever I am going wrong. Not sure, how to get this working.... please see the text in bold..

 

var oObjects = Context.getSelectedObjects();

var localeID = Context.getSelectedLanguage();

for(var i=0; i<oObjects.length; i++)

 {

        var oObject = oObjects[i];    

/* I need code to select the group value from information, how to get that????

           var   attributevalue = oObject.????(Constants.??????, localeID);

/* Is the below statement correct?

            Explorer.createModel(Constants.MT_FUNC_ALLOC_DGM, int ModelType, String oObjects[i], int localeID, +i);

/** how to add header??

/** from EPC , all the connections like Controls, positions need to be moved as well to FADs when i run the macro, how to do that ??

}

Appreciate your response. Thank you.

Cheers,

Balaji

by Pedro Peregrino
Posted on Mon, 11/26/2018 - 00:29

Hey Balaji,

Have you had any progress with this issue? I´m facing the exact same problem as well.

If possible, please let me know.

Pedro.

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • BZ
  • Profile picture for user TEF_Bernd
  • ПЦ
  • CR
  • BH
  • 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