Adding grating coupler properties to file name

Hi all,

I’m currently trying to automate the process of adding properties(pitch, dutcy cycle, etc) to the file name of the GDS output. I’m using the automated GDS export scripts(https://kb.lumerical.com/en/ref_sim_obj_gdsii_auto_export.html).

In the first image, I highlighted the line of code that I assume I need to change in order for this to happen. I believe that all I need to know is the variable name that will call the properties and add them to the file name.

Any help would be much appreciated!

1 Like

Hi @djv1882,

Could you please attach the image containing the highlighted the line of code to clearly understand your situation?
Thanks.

Done! Completely forgot to add those images initially.

Thanks very much,

Deon

To add the pitch to the gds file name ===>

pitch= getnamed(“grating_coupler_3D”,“pitch”);
Insert pitch in your num2str()

Let me know if this works

That worked. I also added radius, duty cycle, etc. Thanks very much for your help!

1 Like