Polygon width measurement

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)

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.


Sign In or Register to comment.