We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

Ansys Learning Forum Forums Discuss Simulation Photonics python API scripting Interconnect Reply To: python API scripting Interconnect

Kyle
Ansys Employee

Hello, you can load the mode data into the MODE Waveguide Element by setting the "ldf filename" property of the element to the file path for the LDF file. You can do this through script with these commands:

intc = lumapi.INTERCONNECT()

intc.addelement("MODE Waveguide")

intc.set("ldf filename", "data.ldf")