#1 2014-10-17 09:38:09

vob
Member
Registered: 2014-06-06
Posts: 27

Avoid graphical display upon GWC import

Dear all,

I'm struggling with an annyoing feature when I import a GWC from file to my turbine site. At the moment I do that as follows:


Call Workspace.ReEnableChangeRipples(True)
Set Member = TurbineSite.AsIHierarchyMember.Insertions.FromFile.ByClassID(ehmcWindAtlas).Execute(PartialGWCName,Nothing)
Call Workspace.DisableChangeRipples


When that code is executed, the imported GWC is automatically displayed in a new window in the right hand side of the main window. If you do repeated imports via script, the GUI will get cluttered soon, and closing these windows by hand is not what you really want when you are writing a script to automatize things...

Therefore my question: Is there a way to prevent that window from getting displayed after the import, or to close it automatically after is has been displayed?

Thanks for any suggestions!

Last edited by vob (2014-10-17 09:51:25)

Offline

#2 2014-10-24 10:56:41

Ray
WAsP team
Registered: 2009-05-13
Posts: 19

Re: Avoid graphical display upon GWC import

Hi,

I appreciate that importing many new hierarchy members via scripting might clutter the GUI somewhat with all the windows opened, unfortunately however this behaviour cannot be controlled from a script. You will need to continue to manually close the windows, the fastest way is via the Window menu (Window -> Close All).  I will add this to our suggested feature list for consideration.

Cheers,
Ray

Offline

#3 2014-10-24 11:15:18

vob
Member
Registered: 2014-06-06
Posts: 27

Re: Avoid graphical display upon GWC import

Thanks, Ray,
that was helpful.
I'd appreciate if this could be added to an upcoming version of Wasp.

Offline

#4 2014-11-27 11:40:51

Duncan
WAsP team
From: Europe
Registered: 2009-05-14
Posts: 286

Re: Avoid graphical display upon GWC import

Hi Vob,

The code is trying to be smart. The hierarchy is only refreshed properly after the script has finished executing. Then, it looks to see how many new things have been inserted. If there are more than five, then no windows will be opened. Have you noticed that working?


Anyway, I've just added the feature you requested. A script can now call ReportingAssistant.DisableGuiWindowOpening. This will simply disable the opening of new windows from insertions for the script. It's reset automatically when the script has finished. The script can't turn it back on again, so you can't choose to have some windows displayed and some hidden within a single script operation.


This will be in the builds for WAsP 11.2. Hope that helps!

Best wishes,

Duncan.

Offline

#5 2014-12-03 14:21:09

Duncan
WAsP team
From: Europe
Registered: 2009-05-14
Posts: 286

Re: Avoid graphical display upon GWC import

Hello, anyone working on this is welcome to test with our latest Release Candidate for WAsP 11.2, which includes this feature. Get it here:
http://wasptechnical.dk/Services/Redire … 76be45fa38
Email us if you need some help or advice.

Offline

#6 2014-12-12 02:13:58

Duncan
WAsP team
From: Europe
Registered: 2009-05-14
Posts: 286

Re: Avoid graphical display upon GWC import

And if you're following the forum, you'll see that this is now an actual release. http://www.wasptechnical.dk/Forum/viewtopic.php?id=830

Offline

Board footer

Powered by FluxBB

[ Generated in 0.011 seconds, 10 queries executed - Memory usage: 547.66 KiB (Peak: 568.81 KiB) ]