Closed Zwlzzm closed 2 years ago
The SVG generation hasn't changed in SiEPIC-Tools in a while, unless one of the underlying Python libraries has changed. Looking at the above code, it looks like the polygons are being centred, so the origin the polygons should be the midpoint of the layout. Perhaps Lumerical has changed the convention for the origin of the SVG. Maybe try editing the SVG file, moving the object, and manually loading it into INTERCONNECT. You could also check the Lumerical documentation or technical support to find out what the SVG origin requirements are, and we can modify the above code to fix it.
thank you
@lukasc-ubc,
Thank you very much for your reply.
Changing svg file manually is a way,but not perfect.
Actually I am not familiar with the underlying python, I will ask question on lumerical support website to see whether they have any good suggestions.
Thank you again for your advice.
Hi @Zwlzzm,
The problem is the format of the second argument in
_def svg_fromcomponent(component, filename, verbose=False): ... svgwrite.Drawing(filename, size=(str(s1) + '%', str(s2) + '%'), debug=False)
The *.svg file is saved with a size of 300x150 px. Using (without "%")
svgwrite.Drawing(filename, size=(str(s1), str(s2)), debug=False)
the *.svg file is saved with correct size (for example 64x30.27027 px for ebeam_y_1550 and 64 x 64 px for ebeam_crossing4).
Hi,
Convert the polygon in the layout to .svg seems to be achieved by the following code, but the svg file and port appearing in interconnect are mismatched. Why?
I tried to modify the polygons_vertices, then .svg file will be correct for one pcell, but .svg file is still mismatched for annother pcell.
Is there a way to make it correct for every pcell or most pcells?
Beside, i found .svg file doesn't show in this function "Component FDTD simulation for S parameter,create Compact Model" for the lastest version of siepic tools, are there some consideration for not including .svg file?
Could someone give me some of his opinion? Thank you in advance!