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
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
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
Hi Eva,
Could you please list additional flags that are available.(I couldn't find any documentation about it)
Regards
Adar
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
Hi Francois ,
Thank you for your input.
It might become usefull in the future.
BR
Adar
If you need to find elements like the flags, please refer to the Constants part of the script help
BR
Edwin
For some reason it doesn't work in 9.5
The error says: Cannot find function changeFlags in object [model]
Can anyone advise?