Launch Test#

A simple example demonstrating how to launch a Dips application and open a project file.

Code Snippet: LaunchTest.py#
from dips import DipsApp

# Note: this is the default examples install location, which will likely be correct for many users but not all.
# Examples may be installed in a different location, and if so it will need to be altered
examplesFolder = "C:\\Users\\Public\\Documents\\Rocscience\\Dips Examples\\"
exampleFile = "Curved Borehole.dips8"

exampleFullPath = examplesFolder + exampleFile

# launch a new application with a file to open
app = DipsApp.LaunchApp(62535, fileToOpen=exampleFullPath)

proj = app.GetModel()

# Print all of the traverse names
traverses = proj.GetTraverseList()
for traverse in traverses:
    print(traverse.GetValue().name)