SiEPIC-Tools
SiEPIC-Tools copied to clipboard
Measure waveguide, GUIDING_SHAPES selected
measure waveguide length not working (path converted waveguide)
Selection does not represent an instance in 'inst' method in ObjectInstPath.inst .../siepic_tools/python\SiEPIC\scripts.py:336 .../siepic_tools/pymacros/Keybindings/Waveguides/Measure Waveguide Length.lym:5
The problem is that you're selecting the underlying path, not the waveguide. When the path is selected you see the corners. When the waveguide is selected you see its label, e.g EBeam.Waveguide_...
Solution: check for GUIDING_SHAPES, then find the Waveguide PCell it belongs to.
work around for users:
- look on the bottom left of KLayout, if it says "selected: path(....) on GUIDING_SHAPES"
- try selecting again, until it says "selected: instance("EBeam.Waveguide...)"
- then repeat the operation.