• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. PCB: Properties attached to a component instance

Stats

  • Replies 5
  • Subscribers 162
  • Views 15872
  • Members are here 0
More Content

PCB: Properties attached to a component instance

Thierry22
Thierry22 over 14 years ago

Hello,

 In my Allegro PCB I have a property attached to the component instance, and I would like to extract it using a skill script but how ?

Is there any body having this issue?

 Thanks for your help

 Thierry

  • Sign in to reply
  • Cancel
Parents
  • eDave
    eDave over 14 years ago

    Here's a small routine I have to display a data sheet based on the component part number property. I hope it adequately demonstrates how to obtain component properties:

    defun( ShowCompDataSheets ()
     let((dataShtsPath, popup, partNumber, pdfFile)
      dataShtsPath = "XXXXXXXXXX/DATASHEETS/"
      popup = axlUIPopupDefine(nil, list(list("Done", 'axlFinishEnterFun), list("Cancel", 'axlCancelEnterFun)))
      axlUIPopupSet(popup)
      axlSetFindFilter( ?enabled list( "NOALL" "COMPONENTS" "NAMEFORM") ?onButtons "COMPONENTS")
      while(axlSelect()
        partNumber = get(car(axlGetSelSet()) ->compdef ->prop, "PART_NUMBER")
        if(partNumber then
          pdfFile = strcat(dataShtsPath, partNumber, ".pdf")
          if(isFile(pdfFile) then axlPdfView(pdfFile) else axlUIConfirm("No pdf data sheet exists for this component"))
         else
          axlUIConfirm("This component has no part number as required to locate a datasheet")
        )
      )
      axlUIPopupSet(nil)
    ))

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • eDave
    eDave over 14 years ago

    Here's a small routine I have to display a data sheet based on the component part number property. I hope it adequately demonstrates how to obtain component properties:

    defun( ShowCompDataSheets ()
     let((dataShtsPath, popup, partNumber, pdfFile)
      dataShtsPath = "XXXXXXXXXX/DATASHEETS/"
      popup = axlUIPopupDefine(nil, list(list("Done", 'axlFinishEnterFun), list("Cancel", 'axlCancelEnterFun)))
      axlUIPopupSet(popup)
      axlSetFindFilter( ?enabled list( "NOALL" "COMPONENTS" "NAMEFORM") ?onButtons "COMPONENTS")
      while(axlSelect()
        partNumber = get(car(axlGetSelSet()) ->compdef ->prop, "PART_NUMBER")
        if(partNumber then
          pdfFile = strcat(dataShtsPath, partNumber, ".pdf")
          if(isFile(pdfFile) then axlPdfView(pdfFile) else axlUIConfirm("No pdf data sheet exists for this component"))
         else
          axlUIConfirm("This component has no part number as required to locate a datasheet")
        )
      )
      axlUIPopupSet(nil)
    ))

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Pradeep Appu
    Pradeep Appu over 6 years ago in reply to eDave

    Hi eDave,

    I've tried using the existing skill code "dsht.il" with some little modifications. allegro 17.2

    "search = strcat("">www.google.com/search, value)
    axlHttp(google_search)" this function not working

    axlCmdRegister( "show_datasheet" 'ShowCompDataSheets)

    defun( ShowCompDataSheets ()
    let((dataShtsPath, popup, value, pdfFile,search)
    dataShtsPath = "C:/Users/Pradeep/Desktop/test/DATASHEETS/"
    popup = axlUIPopupDefine(nil, list(list("Done", 'axlFinishEnterFun), list("Cancel", 'axlCancelEnterFun)))
    axlUIPopupSet(popup)
    axlSetFindFilter( ?enabled list( "NOALL" "COMPONENTS" "NAMEFORM") ?onButtons "COMPONENTS")
    while(axlSelect()
    value = get(car(axlGetSelSet()) ->compdef ->prop, "PART_NUMBER")
    if(value then
    pdfFile = strcat(dataShtsPath, value, ".pdf")
    if(isFile(pdfFile) then axlPdfView(pdfFile)
    else
    search = strcat("">www.google.com/search, value)
    axlHttp(search)
    )
    else
    axlUIConfirm("No part number as required to locate a datasheet")
    )
    )
    axlUIPopupSet(nil)
    ))

    Thanks for your help

    Pradeep

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information