DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Command for closing groups in the data portal

Solved!
Go to solution

Hello,

 

can I use a command in a script to close all groups in the data portal (same like Pressing "/" on the num pad).

 

Thanks

Gabriel

0 Kudos
Message 1 of 5
(4,542 Views)
Solution
Accepted by topic author fischerg

Hello Gabriel,

 

you can use

 

Portal.Structure.Collapse(Data.Root)

 

DIAdem supports the API's PORTAL and DATA since version 11.

 

Greetings

Walter

Message 2 of 5
(4,541 Views)

I put the code

 

    Call ChnRenumber()
    Portal.Structure.Collapse(Data.Root)

 

in a script and stored it in a file (script.vbs).

 

Then I assigned the script to one of the script-buttons (to use with shift an F1-F12).

 

If I press Shift+F12 (my assigned Shortcut), I realize that the script is executed, but nothing happens in the Dataportal. I press the correspondent button it works?

 

Why??

 

Thanks

Gabriel

0 Kudos
Message 3 of 5
(4,496 Views)

Hello Gabriel,

 

You are right. That seems to be a wrong behavior. But here is a work-around:

 

Pause 0.01
Portal.Structure.Collapse(Data.Root)

 

Greetings

Walter

0 Kudos
Message 4 of 5
(4,494 Views)

Hello Walter,

 

Thanks, it works.

0 Kudos
Message 5 of 5
(4,491 Views)