• 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. Component Instance Property - Symbol Instance Property

Stats

  • Replies 6
  • Subscribers 162
  • Views 4567
  • Members are here 0
More Content

Component Instance Property - Symbol Instance Property

steve
steve over 15 years ago

Is there any skill avaliable to transfer a component instance property to a symbol instance property. I have a property in Capture that I would like to display as a datatip in Allegro. Currently the Capture property is a component instance type. The Datatip function uses symbol instance properties. Short of applying these properties manually using Edit Property it would be nice is there was any way to do this with skill after the netlist import.

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

    leonlee said:

    Hi GraF,

    You could get the property from compdef. If you have get the component dbid ( i.e. compdbid), you can get its compdef( compdbid->compdef), then you can get the "VALUE" property:

    compdbid->compdef->prop->VALUE

    Is it helpful to you? Have a good day.

     

    Hi leonlee, thank you for the quick reply.

    Due to my little knowledge of skill language, I've done an elementary addition in the row containing "compdef->prop->VALUE" of my program without success.

    I've copied below the program that I'm trying to use (it's based on a routine of Sourcelink), hoping that you can make (if you can) the necessary modifications to get it working.

     

     axlCmdRegister("d_val" 'VALUE)

    procedure(VALUE()
     let((VALUE_popup comp needed_data)

      VALUE_popup = axlUIPopupDefine(nil list(list("Done" 'axlFinishEnterFun)))
      axlUIPopupSet(VALUE_popup)

      axlMsgPut("Click on a component to open the component's needed_data. Choose Done from the RMB menu to exit.")
      axlClearSelSet()
      axlSetFindFilter(?enabled list("noall" "components") ?onButtons list("noall" "components"))

      while(axlSelect()               
       comp = car(axlGetSelSet())
       needed_data = get(compdbid->comp->compdef->prop 'VALUE)     

       if((!needed_data) then
        axlMsgPut("ERROR: %s has no VALUE!\n" comp->name)     
       else
        axlMsgPut("Find VALUE for %s: %s.\n" comp->name needed_data)  
       ); end if
       axlClearSelSet()
      ); end while
     ); end let
    ); end procedure

     

    Thanks in advance again for your goodwill. :)

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

    leonlee said:

    Hi GraF,

    You could get the property from compdef. If you have get the component dbid ( i.e. compdbid), you can get its compdef( compdbid->compdef), then you can get the "VALUE" property:

    compdbid->compdef->prop->VALUE

    Is it helpful to you? Have a good day.

     

    Hi leonlee, thank you for the quick reply.

    Due to my little knowledge of skill language, I've done an elementary addition in the row containing "compdef->prop->VALUE" of my program without success.

    I've copied below the program that I'm trying to use (it's based on a routine of Sourcelink), hoping that you can make (if you can) the necessary modifications to get it working.

     

     axlCmdRegister("d_val" 'VALUE)

    procedure(VALUE()
     let((VALUE_popup comp needed_data)

      VALUE_popup = axlUIPopupDefine(nil list(list("Done" 'axlFinishEnterFun)))
      axlUIPopupSet(VALUE_popup)

      axlMsgPut("Click on a component to open the component's needed_data. Choose Done from the RMB menu to exit.")
      axlClearSelSet()
      axlSetFindFilter(?enabled list("noall" "components") ?onButtons list("noall" "components"))

      while(axlSelect()               
       comp = car(axlGetSelSet())
       needed_data = get(compdbid->comp->compdef->prop 'VALUE)     

       if((!needed_data) then
        axlMsgPut("ERROR: %s has no VALUE!\n" comp->name)     
       else
        axlMsgPut("Find VALUE for %s: %s.\n" comp->name needed_data)  
       ); end if
       axlClearSelSet()
      ); end while
     ); end let
    ); end procedure

     

    Thanks in advance again for your goodwill. :)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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