TL

Hello!

I have a bit of a problem. I am creating a report that is swiching of the grid in a lot of models. Is there anyone who could recomand any solution to this?

I think I have too use the method .setGrid( myModel, false);

?

BR

TL

by Eva Klein
Badge for 'Community Team' achievement
Posted on Tue, 07/19/2011 - 10:51

Hi Trond,

you can set and disable the grid in this way:

model.changeFlag (Constants.MODEL_USE_GRID, false )  //disable grid
model.changeFlag (Constants.MODEL_USE_GRID, true)    //set grid

NOTE: This will only work if the models are closed.

I hope this will help you.

Regards

Eva

0
by Adar Noy
Posted on Mon, 07/25/2011 - 13:58

In reply to by freddy

Hi Eva,

Could you please list additional flags that are available.(I couldn't find any documentation about it)

 

Regards

 

Adar

0
by trond loan Author
Posted on Tue, 07/19/2011 - 11:01

Thanks a lot!

It was exactly what I was looking for!

 

BR

0
by Francois Du Toit
Posted on Thu, 08/04/2011 - 08:47

Hi Adar,

Here is some listed flags in the help:

 

int

MODEL_BLACKWHITE

Black and white representation of model 

int

MODEL_CXNLAYOUTONOPEN

Layout connections in the model when opened for the next time. 

int

MODEL_DIAGONAL_OCCS

Only permit right-angled connections in the model.

If this flag is set, only right-angled connections will be permitted in the model.

int

MODEL_FILLBYLOGO

Use database logo for the model background 

int

MODEL_HSYMBOL_OFF

Hide hierarchy symbols 

int

MODEL_LAYOUTONOPEN

Layout model when opened for the next time 

int

MODEL_PRINT_LANDSCAPE

Print model in landscape format 

int

MODEL_READONLY

Open read-only in designer 

int

MODEL_RIGHT_ANGLED_CXNS

Only permit right-angled connections in the model.

If this flag is set, only right-angled connections will be permitted in the model.

int

MODEL_SPECIAL_GRID_MODE

Use special grid 

int

MODEL_TEMPLATEONOPEN

Apply template when opening a model 

int

MODEL_TEXTOPAQUE

Remove color behind text 

int

MODEL_USE_GRID

Use grid 

Rgs,

Francois

0
by Adar Noy
Posted on Mon, 08/08/2011 - 15:01

Hi Francois ,

Thank you for your input.

It might become usefull in the future.

 

BR

 

Adar

0
by Edwin Verstraeten
Posted on Tue, 09/06/2011 - 13:44

If you need to find elements like the flags, please refer to the Constants part of the script help

BR

Edwin

0
by Alexey Shmonov
Posted on Wed, 06/25/2014 - 18:08

For some reason it doesn't work in 9.5

 

The error says: Cannot find function changeFlags in object [model]

 

Can anyone advise?

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