How can I adjust the width of all result boxes via script?

Category:
Scripting
Answer

The management of the result boxes is done via the SetLevelvis object, stored in the settings folder of the graphic. The needed command is SetLevelvis.AdaptWidth() but before are two configuration steps required:

1. The target has to be defined, this can be either node elements or branch elements. This is done as follows:

SetLevelvis:iForWhat = 1; for nodes

SetLevelvis:iForWhat = 2; for branch elements

2. The layer has to be set to on which the result boxes are we want to scale:

SetLevelvis:aLevList = 'Results'; this has to match the name of your layer

Finally the width can be set:

SetLevelvis.AdaptWidth() 

Back