Guilin Sun
Ansys Employee

the correct usage is:

f = gdsopen('test.gds',1e-6,0.005e-6);

Please check if it can work as expected.

I would strongly suggest to define a unit such as

um=1e-6;

then when you assian size to a variable, such as xspan to be 5um, you can use

5*um.