SiEPIC-Tools icon indicating copy to clipboard operation
SiEPIC-Tools copied to clipboard

Measure waveguide, GUIDING_SHAPES selected

Open lukasc-ubc opened this issue 6 years ago • 1 comments

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.

lukasc-ubc avatar Feb 05 '19 06:02 lukasc-ubc

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.

lukasc-ubc avatar May 25 '20 15:05 lukasc-ubc