User LayoutEditorFull Wednesday 5th September 2018Attachments: (only for registered users) test_v2.gds
I'm trying to select one of the cells, Mark_1 and Mark_2, positioned side by side in the attached GDS layout. Using cSelect(), I thought I should be able to select the cell Mark_2 by assigning a point with p command inside this cell. The point (520,680) is definitely inside and closer to the origin of the cell Mark_2. However, the cSelect() command always select the neighbor cell Mark_1.
If I assign the point (520,620) inside the cell Mark_1 and use cSelect() to select, there is no problem to select cell Mark_1.
Why is that? Why can I not use the same method to select Mark_2 cell?
Please take a look at the attached GDS file and macro. Thanks!
Jürgen LayoutEditorFull Wednesday 5th September 2018
The cSelect feature checks the distance from the center of the referred cell. The cells Mark_2 is much wider than Mark_1. So the coordinate (520,680) is closer to the center of cell Mark_1 than to the center of Marc_2, Mark_1 is selected, even if the point is not inside Mark_1.
I agree that this is not optimal. The cSelect feature should respect whether the point is inside the referred cell and prefer that cell in this case. I will check, if this modification can be added with the next update.
Thanks for reporting this issue.
User LayoutEditorFull Wednesday 5th September 2018
OK. Please reply to this topic when the issue is fixed. Thanks!
Jürgen LayoutEditorFull Saturday 8th September 2018
That will be available with the next regular update.