Interpret Query Example#

Download the InterpretExample.slmd for this example.

Code Snippet: Interpret Query#
from Slide2Scripting.Slide2Interpreter import Slide2Interpreter

import os, inspect

current_dir = os.path.dirname(os.path.abspath(inspect.getfile(lambda: None)))
Slide2Interpreter.startApplication(60075)

slide2_interpreter = Slide2Interpreter(60075)
model = slide2_interpreter.openFile(rf"{current_dir}\example_models\InterpretExample.slmd")

query = model.getInterpretQuery()
print(query)

model.close(saveChanges=False)
slide2_interpreter.closeApplication()

Output#

<Slide2Scripting.InterpretQuery.InterpretQuery.InterpretQuery object at 0x00000188BB3A74D0>