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) How to find current shee t in ULP?
  • 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 5 replies
  • Subscribers 188 subscribers
  • Views 940 views
  • Users 0 members are here
Related

How to find current shee t in ULP?

autodeskguest
autodeskguest over 9 years ago

I finally decided to write ULPs to go backwards and forwards one sheet in

the schematic editor, so that I could tie these to shortcut keys.

 

I looked at the ULP help again (version 7.7), and it appears the only

system state accessible to a ULP are the top level schematic, board, and

library structures, and then anything contained in them.  I looked over the

schematic structure again, but there appears to be no current state in

there, like the current schematic sheet.

 

How do I determine the current schematic sheet from a ULP?

--

http://www.eaglecentral.ca :: The original and best browser access to CadSoft EAGLE support forums.  Supported by EAGLE licenses purchased through us :: http://www.eaglelicenses.com

 

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

    Am 02.12.2016 um 13:54 schrieb Olin Lathrop:

    How do I determine the current schematic sheet from a ULP?

     

    if(sheet) sheet(S)

    {

        string txt;

        sprintf(txt, "Current sheet: %d", S.number);

        dlgMessageBox(txt);

    }

     

    However, the ULP you're trying to write already ship with EAGLE, look

    for "editnext-sheet.ulp" and "editprev-sheet.ulp".

     

    Rene

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • autodeskguest
    autodeskguest over 9 years ago

    Am 02.12.2016 um 13:54 schrieb Olin Lathrop:

    How do I determine the current schematic sheet from a ULP?

     

    if(sheet) sheet(S)

    {

        string txt;

        sprintf(txt, "Current sheet: %d", S.number);

        dlgMessageBox(txt);

    }

     

    However, the ULP you're trying to write already ship with EAGLE, look

    for "editnext-sheet.ulp" and "editprev-sheet.ulp".

     

    Rene

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • autodeskguest
    autodeskguest over 9 years ago in reply to autodeskguest

    rk wrote on Fri, 02 December 2016 08:01

    However, the ULP you're trying to write already ship with EAGLE, look

    for "editnext-sheet.ulp" and "editprev-sheet.ulp".

     

     

    Thanks.  I looked at one of those as a example.  The trick is the "sheet"

    built-in statement.

     

    If you look at the help page USER LANGUAGE > OBJECT TYPES, it implies the

    only data structure-opening statements are LIBRARY, SCHEMATIC, and BOARD.

    I did find SHEET listed as one of the built-in statements later on.

     

    Eagle's help system strikes once again.  It is good for reference if you

    know what to look up, but not so good at helping you find things that you

    don't know about yet.  Argh.  I really hope AutoDesk does something about

    this.  Personally, I'd much rather they spend time on making the

    documentation usable for the introductory purpose too, not just for

    reference, than messing with the UI.

     

    I really do try to RTFM, but the M has to do its part by making the

    information findable for other than looking up details within a known

    context.

    --

    http://www.eaglecentral.ca :: The original and best browser access to CadSoft EAGLE support forums.  Supported by EAGLE licenses purchased through us :: http://www.eaglelicenses.com

     

    • 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 © 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