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
  • 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) adding stuff to group via context menu
  • 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 1 reply
  • Subscribers 178 subscribers
  • Views 290 views
  • Users 0 members are here
Related

adding stuff to group via context menu

autodeskguest
autodeskguest over 9 years ago

I want to make a context function that can add objects to the group,

like net segments, by tracking a wire. This will be handy to use for

changing layers of full segments between via's.

 

The logic flaw of using ingroup() with context selection gets into

conflict with this specific function here, as the existing grouped items

are lost.

 

Can you please separate ingroup() from the context selection and make

that incontext() or similar function name for context selected objects,

as suggested in the "Issue in 7.6.2 beta" thread under eagle.betatest?

Of course it should return false on all objects when executed under

normal shell.

 

I know this will make some problems for existing ULP's but since the

context menu has been full of bugs for some time, I think this will be

the least painful way to go. If you really need to keep that old

compatibility, I guess there are ways, like checking if #require is

above one version number, or maybe even something smarter.

 

  • Sign in to reply
  • Cancel
  • autodeskguest
    autodeskguest over 9 years ago

    On 20.09.2016 14:32, Morten Leikvoll wrote:

    I want to make a context function that can add objects to the group,

    like net segments, by tracking a wire. This will be handy to use for

    changing layers of full segments between via's.

     

    The logic flaw of using ingroup() with context selection gets into

    conflict with this specific function here, as the existing grouped items

    are lost.

     

    Can you please separate ingroup() from the context selection and make

    that incontext() or similar function name for context selected objects,

    as suggested in the "Issue in 7.6.2 beta" thread under eagle.betatest?

    Of course it should return false on all objects when executed under

    normal shell.

     

    I know this will make some problems for existing ULP's but since the

    context menu has been full of bugs for some time, I think this will be

    the least painful way to go. If you really need to keep that old

    compatibility, I guess there are ways, like checking if #require is

    above one version number, or maybe even something smarter.

     

    While reading the 7.7.0 release notes it made me think of this thread again:

     

    "  - The selected object is no longer removed from the group after

    running a ULP started through 'SET CONTEXT Object ...'; the ULP might

    want to use this one-object group afterwards with e.g. 'exit("move (>@)")'."

     

     

    Although I see this specific advantage, this made my all my mental alarm

    bells go off, seeing new problems .

     

    For example, this means I may have to change my ULP's to explicitly

    ungroup the context item if I don't really want it. If this is a problem

    or not, I don't know yet, and that bothers me.

     

    I would much rather leave all grouped objects alone, even when entering

    the context function. (Hence the suggestion for a incontext function)

     

    If the ULP needs to transfer the incontext object to the group, it

    should have been done with the setgroup function.

     

    Please, someone from Cadsoft comment on this. I'd really like this very

    useful context menu stuff to be clean and future proof.

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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 © 2025 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.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube