In reference to the support thread "Bug, Breaking a polygon (7.5.3)",
there is a need to cleanup the SET CONTEXT command.
I want to run a script that adds all the context menus I want for my
work. This involves menus for schematic, board, library (both symbol and
package, part may not yet have any). Now, addressing this is pretty awkward.
Since the context object is pretty flat (a UL_WIRE can exist in all
those 4 contexts) I have to enter each editor to actually set these.
schematic and board is rather easy, but setting library context menus
from a general unknown context is not that straight.
Also, there are at least one missing objecttype; polygon.
This is why I want to suggest separate objects for all these contexts.
How it's done is not important, but you should be able to set any
context menu from any context. A suggestion could be to add support for
optional .brd/.sch/.pac/.sym extension to the objecttypes.