Jump to content

Spotfire IronPython Close Analysis File Issue


Previn Chetty 3

Recommended Posts

Hi All,

I was wondering if anyone has managed to solve the issue wih the Appilcation.Close() and Application.Exit() functions on IronPython.

I read, in numerous places, that this "freezes" th application and I am having the same issue.

Below is a snippet of my code, everything works 100% until I need to call the Application.Close() function. Spotfire then hangs and I have to close the application through the task manager.

What I need is just for the Analysis to close.

 

import clr

import Spotfire.Dxp.Application

from Spotfire.Dxp.Framework.ApplicationModel import ApplicationThread

from Spotfire.Dxp.Application import AnalysisApplication, DocumentOpenSettings

from Spotfire.Dxp.Framework.Library import LibraryManager, LibraryItemType, LibraryItemRetrievalOption, LibraryItemMetadataSettings

### ALL MY CODE HERE ###

# This can be used to close the Spotfire Application but this freezes Spotfire and I have to close through task manager

if (My Condition):

Application.Close()

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...