Pause does not work with plugin commands


#1

Hi @dale, i´ve found that in a plugin command (made from RhinoScript compiler) the command cannot be paused. Eg. This is similar to what is inside the compiled script:

Option Explicit

Call Main()
Sub Main()
    
    Dim objs, str
    
    objs = Rhino.GetObjects("Select some objects")
    If IsNull(objs) Then Exit Sub
    
    str = Rhino.GetString("Select option",, Array("Opt1", "Opt2"))
    If IsNull(str) Then Exit Sub

    ....
    
End Sub

If i give it a command name, say “MyCommand”, i cannot do this, it ignores the _Pause command:

MyCommand _Pause Opt1

The commandline just jumps to the next string in the macro and says while still asking for objects to select

Unknown command Opt1

c…


(Dale Fugier) #2

@DavidRuttenm @stevebaer - can you look into this?