Skip to main content

Speos client APIs 2024 R1

ComponentExport – Creating a lightBox export

Last update: 01.02.2024

The following script sample shows you an example on how to create a Light Box Export.

lightBoxExport = SpeosSim.ComponentExport.Create()
lightBoxExport.Name = "Created component export"

lightBoxExport.OriginPoint.Set(GetRootPart().Curves[0])
lightBoxExport.XDirection.Set(GetRootPart().Curves[1])
lightBoxExport.YDirection.Set(GetRootPart().Curves[2])

surfaceSource = SpeosSim.SourceSurface.Find("Surface.1")
lightBoxExport.Sources.Set(surfaceSource)
lightBoxExport.Geometries.Set(GetRootPart().Bodies[0])

lightBoxExport.Compute()

lightBoxExportPath = lightBoxExport.GetResultFilePath()