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 Chat (English) ULP Detection of open project
  • 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 4 replies
  • Subscribers 188 subscribers
  • Views 574 views
  • Users 0 members are here
Related

ULP Detection of open project

e14 Contributor
e14 Contributor over 16 years ago

Does anyone know of a ULP technique for detecting if there is an open

project?

 

Scenarios to give this question some context:

1) You can open a board design (board editor) from the open project folder.

2) While a project is open you can open a board design from anywhere other

than the open project folder.

3) You can open a board design from anywhere when there is no project open.

 

When the board editor is opened, Eagle looks for an eagle.scr. First in the

folder of the open project, if there is one open, and then in the Script

folder/folders you set up in Options/Directories.

 

I wish to write a ULP that manipulates eagle.scr and cater for most of the

ways people have set up their environments. While most people likely  have a

single eagle.scr in the main script folder there are other possibilities:

1) An eagle.scr in the script folder

2) An eagle.scr in each project folder

3) An eagle.scr in each project folder and one in the script folder

4) No eagle.scr at all.

 

So I need to target the correct eagle.scr. and the correct one, when there

are multiple, depends on the 'Open Project' status.

Right now I'm finding them all and the user chooses the one they desire but

a little more automation would be nice as I can then flag which one created

the view they currently have.

 

Any help would be appreciated

Warren

 

 

 

 

 

 

 

 

 

 

 

  • Sign in to reply
  • Cancel
Parents
  • e14 Contributor
    e14 Contributor over 16 years ago

     

    "Warren Brayshaw" <warrenbrayshaw@paradise.net.nz> wrote in message

    news:i4s4ob$adn$1@cheetah.cadsoft.de...

    Does anyone know of a ULP technique for detecting if there is an open

    project?

     

    Have you tried the 'project' prefix of project.board() {}? Search for

    "prefix project" in the help window to see what it can do. I am not sure if

    you can read this prefix alone. Try it.

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • e14 Contributor
    e14 Contributor over 16 years ago

     

    "Warren Brayshaw" <warrenbrayshaw@paradise.net.nz> wrote in message

    news:i4s4ob$adn$1@cheetah.cadsoft.de...

    Does anyone know of a ULP technique for detecting if there is an open

    project?

     

    Have you tried the 'project' prefix of project.board() {}? Search for

    "prefix project" in the help window to see what it can do. I am not sure if

    you can read this prefix alone. Try it.

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • e14 Contributor
    e14 Contributor over 16 years ago in reply to e14 Contributor

     

    "Morten Leikvoll" wrote>

    Have you tried the 'project' prefix of project.board() {}? Search for

    "prefix project" in the help window to see what it can do. I am not sure

    if

    you can read this prefix alone. Try it.

    >

     

     

    Thanks for the suggestion. I could not solicit any responses from guesses of

    the likely syntax/keywords  for "project ." .

    The most likely return would be the path for the open project and null if

    there is no open project. That would have been good.

     

    Warren

     

     

     

     

    • 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