KV

Hello everyone,



I want to create a new library of objects (from scratch) on which I will then assign specific attributes. Anyone has any ideas how this is done?



All the training materials I have found so far cover how to use existing objects so I have nowhere to start from.



Many thanks for your help,



Konstantinos

by Thierry Caro
Posted on Mon, 07/22/2013 - 17:18

Hi Konstantinos

One manual way is to copy Excel cells and paste into an ARIS model, and then manipulate the attributes with F8, also with copy/paste by row from Excel. 

If you want to do it by program, here is one recipe. I generally take input from an Excel file usually resulting from an SAP extract to synchronize the data with ARIS.

Start from a group, create a model, create an object definition, and create object occurences...

Example:

var nLocale = Context.getSelectedLanguage()

var modeltype = 13        // EPC

var objtype = 22             // Function

var symbolnum = 335    // a function's symbol in the config

var group = devdb.RootGroup()     // Main group in this example

var model = group.CreateModel(modeltype, "New model", nLocale)

var oObjDef = group.CreateObjDef (objtype, "New Function", nLocale)

var obj = model.createObjOcc(symbolnum, oObjDef, 50,50)

To set object's attributes,  locate the object and use the Attribute().setValue() like this: 

obj.Attribute(Constants.AT_xxxxx, nLocale).setValue("value")

For custom attributes, use "UserDefinedAttributeTypeNum(GUID)".

Hope this helps !!  Thierry

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