Profile picture for user sadnan

See the post here for information and discussions.

Macro is attached with this post (see the end of this post to download the macro)

Have a look at the below model (this is just an example, while this concept can be applied to variety of models)

 

Do you really think the above model, is created manually by IDS-Scheer Team?

If affirmation is your answer then just close this article and read something else or surf the web or whatever you have planned to do so.....

Otherwise, if your answer is "NO" and you really want to find out how to carryout the above task and you are interested to build the above type of model automatically then this article is for you.

Purpose of Macro:

Attached Custom Macro will auto-index the symbols (alphabetically) within model.

 

Macro Context to Run: Model level

 

Pre-Requisite:

As a precondition, macro will check for symbol size and normalize it based upon user input:

  • User can choose to set the size of all the symbols to the max_height and max_width symbol present within a model
  • User can also choose to set symbols to the min_height and min_width symbol presente within the model

 

Sorting:

Macro will then sort the symbols alphabetically (from A to z) while symbol names with special character (*,&) will precede alphanumeric names.

<Selection Sort Algorithm > is applied for this purpose.

 

Placement of Symbols

Macro will then index the symbols based upon the first character of their name and put them on the right index row.

 

Separator Line

Macro will also place a separator line (red bar) to visually provide division of indexing scheme.

 

Saving the Result:

If you are satisfied with arrangement then you need to manually save the model after the arrangement is done. Macro will not save any changes made to the model.

 

Example Models:

Let’s create a software inventory model by first creating an empty model and then using ARIS search to find all the applications within repository, in production database, you can use custom symbol on top of IT Systems symbol for this purpose.

Let's add some other object type and object without any name:

Assuming you have already imported the macro script, right click on any empty space on your model and Evaluate --> Macro ---> Auto Index Macro as shown below:

Now, script will normalize the size of objects and you will see the message if sizes are different:

After size fixation, the script will then attempt to sort and arrange the object occurrences:

Checking indexing done by script for all object type:

Once, the arrangement is done, you will the prompted to respond to the message and must save the model manually if you are happy with the arrangement,otherwise just close the model and modification will not be saved.

 

Example of creating personnel directory model

It may happen that you need to run the script twice (may happen on special model type) to get the satisfactory result.

After Second RUN:

Do post your response after using the macro......

For optimal Result:

  • First decrease the zoom size (zoom-out) the model scale
  • Do not run on any model without any object occurrence
  • Do not attempt to run on special models such as matrix mode, IT Architecture Map (you can easily restrict it on your macro settings --> Context Properties

Running macro on zoom-out settings (example zoom size 10%)

 

How to arrange objects in 2D or in Pyramid Fashion (.....continued.......)

by Komborero Makoni
Posted on Mon, 09/13/2010 - 09:58

Hi

 

Is it possible to extend the macro such that one can specify the number of rows per alphabet letter.  That is instead of having for example 100 objects beginning with the letter A, you can specify that the objects be spread over two lines, so that you have 50 on each line. 

Probably, a variation would be to allow user to specify the max number of objects per line, then you can have multiple lines of objects per alphabet letter.

0
by Veronika Ellermann
Posted on Wed, 10/06/2021 - 14:35

Although this post is rather old- I really appreciate this macro :)

Very useful to me!

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