DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Run script from view dialog box

I built a dialog box that I would like to have in the View area.  Is it possible to have one of the dialog box's button load a script while staying in VIEW panel?

0 Kudos
Message 1 of 2
(4,122 Views)

Hey BG103,

 

just use ScriptStart function in your SUD dialog. If you want to work in VIEW after your script started you can start an interaction

For example you can create a SUD dialog with two buttons: Start Interaction / Stop Interaction and define click events like this:

 

Sub ButtonStartInteraction_EventClick(ByRef This) 
  call ScriptStart(CurrentScriptPath & "StartInteraction.vbs")
End Sub

Sub ButtonStopInteraction_EventClick(ByRef This)
  call InteractionOff()
End Sub

StartInteraction.vbs looks like this:

 

Call WndShow("VIEW", WndMode)
Call InteractionOn()

You can integrate the SUD dialog in VIEW using a View connector in your SUD dialog.

 

Regards

Christian

Christian
CLA, CTA, CLED
0 Kudos
Message 2 of 2
(4,107 Views)