element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) SET CONTEXT context
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 6 replies
  • Subscribers 188 subscribers
  • Views 699 views
  • Users 0 members are here
Related

SET CONTEXT context

autodeskguest
autodeskguest over 10 years ago

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.

 

  • Sign in to reply
  • Cancel
Parents
  • rachaelp
    rachaelp over 10 years ago

    Morten Leikvoll wrote on Thu, 12 May 2016 08:45

    On 25.04.2016 14:18, Morten Leikvoll wrote:

    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.

     

    I'd like to add more objecttypes, as I see the potential for new

    interesting context functions.

     

    The board or schematic background

    The board/sch itself could enable a context menu for stuff like opening

     

    space vertical or horizontal, or even inserting stuff. The problem is

    if

    the catch factor is 0, and eagle grabs nearest item when right

    clicking.

    Maybe right clicks could be an exception.

     

    A Group

    It would be nice to do context functions on a group. Currently the

    selected group highlight is removed when you rightclick. Does it have

    to

    be like that? If not, a group context can easily be implemented.

     

     

    These suggestions all get my vote. I had a need for a background context

    menu just the other day but I have forgotten what I was trying to do now so

    can't elaborate....

     

    I didn't actually know you couldn't do group operations in a context menu

    function, I'd just assumed you could use ingroup() in the ulp and it would

    get everything from the most recently grouped objects, if it doesn't that's

    quite disappointing....

     

    In addition, how about dynamically generated sub-menus in the context menu?

    So one example where this would be useful, I currently have a "View

    Datasheet" option on my context menu which opens the datasheet of a part in

    my default browser. If there were multiple documents listed (with a

    suitable separator) in my datasheet attribute, for example, a datasheet, a

    package drawing, etc then I could have these appear as different options in

    a sub-menu.

     

    Also it would be nice to be able to assign custom icons to context menu

    entries too and maybe a way to assign keyboard shortcuts and display the

    shortcut on the menu item.

     

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • rachaelp
    rachaelp over 10 years ago

    Morten Leikvoll wrote on Thu, 12 May 2016 08:45

    On 25.04.2016 14:18, Morten Leikvoll wrote:

    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.

     

    I'd like to add more objecttypes, as I see the potential for new

    interesting context functions.

     

    The board or schematic background

    The board/sch itself could enable a context menu for stuff like opening

     

    space vertical or horizontal, or even inserting stuff. The problem is

    if

    the catch factor is 0, and eagle grabs nearest item when right

    clicking.

    Maybe right clicks could be an exception.

     

    A Group

    It would be nice to do context functions on a group. Currently the

    selected group highlight is removed when you rightclick. Does it have

    to

    be like that? If not, a group context can easily be implemented.

     

     

    These suggestions all get my vote. I had a need for a background context

    menu just the other day but I have forgotten what I was trying to do now so

    can't elaborate....

     

    I didn't actually know you couldn't do group operations in a context menu

    function, I'd just assumed you could use ingroup() in the ulp and it would

    get everything from the most recently grouped objects, if it doesn't that's

    quite disappointing....

     

    In addition, how about dynamically generated sub-menus in the context menu?

    So one example where this would be useful, I currently have a "View

    Datasheet" option on my context menu which opens the datasheet of a part in

    my default browser. If there were multiple documents listed (with a

    suitable separator) in my datasheet attribute, for example, a datasheet, a

    package drawing, etc then I could have these appear as different options in

    a sub-menu.

     

    Also it would be nice to be able to assign custom icons to context menu

    entries too and maybe a way to assign keyboard shortcuts and display the

    shortcut on the menu item.

     

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube