Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Ruby/Python automation of "auto measure" #333

Closed
Kazzz-S opened this issue Aug 26, 2019 · 3 comments
Closed

Feature request: Ruby/Python automation of "auto measure" #333

Kazzz-S opened this issue Aug 26, 2019 · 3 comments

Comments

@Kazzz-S
Copy link
Contributor

@Kazzz-S Kazzz-S commented Aug 26, 2019

Hi Matthias,

"Auto measure" is a handy feature of KLayout!
I wonder if this can be "doubly automated" by Ruby/Python.

Given: A layout design and a list of distinct points, each of which represents a single mouse click point in "auto measure."
Output: A set of annotations (rulers) inserted into the layout design.

Please refer to the attachment that contains a sample OASIS data, AutoMeasure-01-Points.oas and two image files.

In Fig-01.png, yellow rectangles (their center points) correspond to the mouse click points to draw "auto measures."
Fig-01

The result should be as shown in Fig-02.png.
Fig-02

In the sample data, there are such 1871 "sampling points."
To gain speed and to enable a precise click on each sampling point, automation is essential.

Those generated "cut vectors" are further used to control a machine to measure the width and the cross-sectional profile of the fabricated trace.

Is this functionality achievable with existing functions?
If not, I'll appreciate if you take this as a future enhancement request.

With best regards,
Kazzz

AutoMeasure.zip


Initial discussion in KLayout Forum

@klayoutmatthias
Copy link
Collaborator

@klayoutmatthias klayoutmatthias commented Aug 26, 2019

Please see PR #335 for details about the implementation. If this solution is fine with you, I'll merge the PR.

Thanks,

Matthias

Loading

@Kazzz-S Kazzz-S changed the title Ruby/Python automation of "auto measure" Feature request: Ruby/Python automation of "auto measure" Aug 26, 2019
@Kazzz-S
Copy link
Contributor Author

@Kazzz-S Kazzz-S commented Aug 26, 2019

The suggested interface of the new feature in #335 is exactly what I want!

Thank you so much for your prompt action.

With best regards,
Kazzz

Loading

klayoutmatthias added a commit that referenced this issue Aug 28, 2019
Fixed issue #333 (automation of auto-measure rulers)
@Kazzz-S
Copy link
Contributor Author

@Kazzz-S Kazzz-S commented Aug 31, 2019

Here are some updates :-)
I've implemented this new feature LayoutView::create_measure_ruler() in PYA.

It's fantastic!!!

It took about 15 sec (on 64-bit Linux) to automatically create 1871 rulers.
Fig-03

AutoMeasure-Results.zip

Once again, thank you very much for providing the new feature.

With best regards,
Kazzz

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants