08-17-2010 03:02 AM
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
Solved! Go to Solution.
08-17-2010 04:04 AM
Hello Gabriel,
you can use
Portal.Structure.Collapse(Data.Root)
DIAdem supports the API's PORTAL and DATA since version 11.
Greetings
Walter
08-20-2010 03:20 AM
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
08-20-2010 03:31 AM
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
08-20-2010 05:23 AM
Hello Walter,
Thanks, it works.