element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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) Designlink possible with Farnell (Europe) ordercodes?
  • 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
  • State Not Answered
  • Replies 16 replies
  • Subscribers 175 subscribers
  • Views 2117 views
  • Users 0 members are here
Related

Designlink possible with Farnell (Europe) ordercodes?

Joop14
Joop14 over 11 years ago

Hello,

 

I tried to use the Designlink button in Eagle but it seems to work only with Newark.

Because I'm located in Europe, is it possible to use Designlink with the Farnell database instead?

The ordercodes generated by Newark don't seem to be accepted by the Farnell (Europe) website.

 

Thanks in advance,

 

Joop

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 11 years ago in reply to Former Member +1
    Hello Jean-Luc, you can find it here: https://gist.github.com/hollie/bc057d8c9ea3805e4f87 . Note however: I tried the modified script on another computer with another locale (and another OS) and it was…
  • Former Member
    Former Member over 11 years ago in reply to autodeskguest +1
    Hi Jorge. Good Lord, why does which country we live in even matter? Isn't this just about accessing a database to identify the parts we want, or is it for actual ordering? I live in Norway, so yeah, guess…
Parents
  • jensvanhoof
    0 jensvanhoof over 11 years ago

    Hi Jorge,

     

    Thanks for the response. I tried your suggestion but exactly the same error pops up. Is it normal that, even with DILanguage set to "BE", Eagle still tries to contact api.element14.com?

    I tried to set DICountry also to BE, but the same problem remains. (I restarted EAGLE when I modified the configuration file.

     

    Any other suggestions? As a reference, I uploaded the file as it is now to here: www.jensvanhoof.be/designlink-inc.ulp

     

    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to jensvanhoof

    Jens,

     

    I am experiencing the same problem you have. I got the script to recognize the correct country by copying the 3 designlink ULP files to a separate folder, then making the change to desiglink-inc.ulp

     

    DIcountry = "BE";

     

    (Note, making the change to 'language' does not seem to work).

     

    Then run the script designlink-order.ulp from the folder you copied the scripts to. The script then at least tries to connect to the service defined for Belgium. I verified this by adding a debug print statement in the designlink-inc.ulp InitCountryData function.

     

    Unfortunately I then get an error:

     

    Error while accessing 'https://api.element14.com/pffind/services/SearchService':

     

    299 Error downloading https://api.element14.com/pffind/services/SearchService?callinfo.apiKey=<snip> - server replied: Bad Request

     

    <h1>Bad Request</h1>

     

    So apparently this functionality is broken for Belgium. You can get it partially working by changing the DIcountry to "UK", note that you get price in pounds then but at least the order codes seem to be correct.

     

    @jorge can you please check why designlink is not working for country code "BE"? I guess there is some configuration on the API server that does not allow request with the country code "BE".

     

    Kind regards,

    Lieven.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 11 years ago in reply to jensvanhoof

    Jens,

     

    I am experiencing the same problem you have. I got the script to recognize the correct country by copying the 3 designlink ULP files to a separate folder, then making the change to desiglink-inc.ulp

     

    DIcountry = "BE";

     

    (Note, making the change to 'language' does not seem to work).

     

    Then run the script designlink-order.ulp from the folder you copied the scripts to. The script then at least tries to connect to the service defined for Belgium. I verified this by adding a debug print statement in the designlink-inc.ulp InitCountryData function.

     

    Unfortunately I then get an error:

     

    Error while accessing 'https://api.element14.com/pffind/services/SearchService':

     

    299 Error downloading https://api.element14.com/pffind/services/SearchService?callinfo.apiKey=<snip> - server replied: Bad Request

     

    <h1>Bad Request</h1>

     

    So apparently this functionality is broken for Belgium. You can get it partially working by changing the DIcountry to "UK", note that you get price in pounds then but at least the order codes seem to be correct.

     

    @jorge can you please check why designlink is not working for country code "BE"? I guess there is some configuration on the API server that does not allow request with the country code "BE".

     

    Kind regards,

    Lieven.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    A follow-up: when I change the country information line of 'UK' to

     

       "UK EUR 0 be.farnell.com",

     

    and set DIcountry = "UK"

     

    Then the designlink process seems to work.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Hi Lieven,

    Can you post your designlink-inc.ulp for Belgium ?

    I modified it according you suggestion but It doesnt work for me

    many thanks in advance

    Jean-Luc

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Hello Jean-Luc,

     

    you can find it here: https://gist.github.com/hollie/bc057d8c9ea3805e4f87.

    Note however: I tried the modified script on another computer with another locale (and another OS) and it was not working there. So I'm not sure it will help you further. I did not debug it further. It would be cool if element14 people would have a look at this to fix it for everybody. Maybe ins tread of guessing the URL/server and currency from the system settings they could give users an option to select the settings before running the script?

     

    Best regards,

    Lieven.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Hi Lieven

    Many thanks

    When I run the script I have dialog saying :

     

    Can't open '/Applications/EAGLE-6.5.0/fdlQuery.html'

     

    Permission denied

     

    I have created the file and also file:///Applications/EAGLE-6.5.0/fdlResponse.html

    so now the script runs but I have the same error as usual

    Error while accessing 'https://api.element14.com/pffind/services/SearchService':

     

    299 Error downloading https://api.element14.com/pffind/services/SearchService?callinfo.apiKey=sf4kqy6u29tkt95gg5a3wejz - server replied: Bad Request

     

    <h1>Bad Request</h1>

     

    btw here are the content of the 2 html files

    fdlQuery.html :

    <soapenv:Envelope  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:v1="http://pf.com/soa/services/v1">

    <soapenv:Header>

       <v1:userInfo>

         <v1:signature>GHvMyPN967kFEJKtpJe2w11qMcA=</v1:signature>

         <v1:timestamp>2014-04-09T15:51:22.000</v1:timestamp>

         <v1:locale>fr_UK</v1:locale>

       </v1:userInfo>

       <v1:accountInfo>

         <v1:customerId>CadSoft2</v1:customerId>

       </v1:accountInfo>

    </soapenv:Header>

    <soapenv:Body>

       <v1:keywordParameter>

         <v1:keyword>DB15</v1:keyword>

         <v1:offset>0</v1:offset>

         <v1:numberOfResults>50</v1:numberOfResults>

          <v1:RefinementParameters>

            <v1:inStock>false</v1:inStock>

            <v1:rohsComplaint>false</v1:rohsComplaint>

          </v1:RefinementParameters>

        </v1:keywordParameter>

      </soapenv:Body>

    </soapenv:Envelope>

     

    and fdlResponse.httml :

    <h1>Bad Request</h1>

     

    any other ideas ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Hi again

    I found this old post and guess what ... it worked !

    designlink.zip

    Hope this help

    (we need to have a look on the code he use ;-)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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