Accessing Partial Selection in Macro Development Environment

I am trying to access a partial selection (surrounded by the red circle) from the layout in Macros dev. environment.

I have tried to use object_selection, transient selection. They work fine for normal selection ("Full Element") but none of them captures the partial selection.

any ideas? Thanks.

Comments

  • edited November -1

    Hi,

    Thanks for the nice screenshot - that explains much more than just text!

    But I'm sorry, the partial selection is not part of the API yet. It's a fairly complex topic and partial selection implementation is private to the partial edit mode - even inside KLayout's code itself. Every operation (like the ones inside Edit/Selection) operates on the full-shape selection only and is subject to the same constraints than the Ruby API. In that sense, a Ruby script does not have less - but also not more - rights than the other functions inside the application.

    Regards,

    Matthias

Sign In or Register to comment.