Skip to main content

Speos client APIs 2026 R1 SP01

SimulationHoa – Creating a HUD optical analysis simulation

Last update: 22.04.2026

The following script sample shows you an example on how to create a HUD Optical Analysis Simulation.

hoaSimulation = SpeosSim.SimulationHoa.Create()
hoaSimulation.Name = "Created HOA simulation"

hoaSimulation.Eyebox.EyeboxCenter.Set(GetRootPart().Components[0].Content.Curves[0])
hoaSimulation.Winshield.WindshieldInnerSurface.Set(GetRootPart().Components[0].Content.Bodies[0].Faces[0])

selection = Selection.Create(GetRootPart().Components[0].Content.Bodies[1].Faces[0], GetRootPart().Components[0].Content.Bodies[2].Faces[0])
hoaSimulation.Mirrors.MirrorFaces.Set(selection)

hoaSimulation.PGU.OriginPoint.Set(GetRootPart().Components[0].Content.CoordinateSystems[0])
hoaSimulation.PGU.XDirection.Set(GetRootPart().Components[0].Content.CoordinateSystems[0].Axes[0])
hoaSimulation.PGU.YDirection.Set(GetRootPart().Components[0].Content.CoordinateSystems[0].Axes[1])
hoaSimulation.Compute()

Connect with Ansys