Adding grating coupler properties to file name


#1

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!


#2

Hi @djv1882,

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


#3

Done! Completely forgot to add those images initially.

Thanks very much,

Deon


#4

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


#5

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