Interpret Display Options Example#
Download the InterpretExample.slmd for this example.
Code Snippet: Interpret Display Options#
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")
display = model.getInterpretDisplayOptions()
print(display.getMaterialBoundaryColour())
model.close(saveChanges=False)
slide2_interpreter.closeApplication()
Output#
12632256