Skip to main content

Speos client APIs 2026 R1 SP01

CADUpdate – Importing a geometry

Last update: 22.04.2026

The following script sample shows you an example on how to import a geometry.

from System.IO import Path

currentFilePath = GetRootPart().Document.Path
currentPath = Path.GetDirectoryName(currentFilePath)

speFile1 = currentPath + "\\" + "lguide.prt"
speFile2 = currentPath + "\\" + "led.prt"

stest1 = SpeosAsm.CADUpdate.Import(speFile1)
test2 = SpeosAsm.CADUpdate.Import(speFile2)

Connect with Ansys