It looks like you're new here. If you want to get involved, click one of these buttons!
I am doing a project that need automatic tracing of polygon waveguide width. I am thinking about using the ruler with auto-measure function. Now i can generate ruler with the following code
app = RBA::Application.instance
mw = app.main_window
view = mw.current_view
ant = RBA::Annotation::new
register_template(ant,mode = RulerModeAutoMetric)
ant.p1 = RBA::DPoint::new(12930, 1400)
ant.p2 = RBA::DPoint::new(12928, 1392)
view.insert_annotation(ant)
it is possible to make the ruler doing automeasure automatically? Because it can be done manually with just one click so i figure there must be a way.
Comments
Hi,
Yes, you can automate the auto measure.
Please refer to the following URLs.
1) https://www.klayout.de/forum/discussion/1310/ruby-python-automation-of-auto-measure
2) https://github.com/KLayout/klayout/issues/333
3) https://github.com/KLayout/klayout/pull/335
As Matthias instructed in 3) (quoted below), you can use the
LayoutView::create_measure_ruler()
method.Kazzz-S