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(

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?

Done! Completely forgot to add those images initially.

Thanks very much,


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