• 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. removing underscore on refdes

Stats

  • Replies 6
  • Subscribers 160
  • Views 15101
  • Members are here 0
More Content

removing underscore on refdes

seyerfred
seyerfred over 11 years ago
Hi all,

is there possible skill code that can rename refdes by batch or just removing _1 ~ _x cause by using moduling groups?
and it will change refdes as report from symbol.. 

Thank you
  • Sign in to reply
  • Cancel
  • Ejlersen
    Ejlersen over 11 years ago

    Hi

    I would think that you could just use Logic->Rename refdes to just do an ordinary reference renaming and then backannotate it to schematic.

    That should strip everything except the letter part of your reference designators. 

     

    Best regards

    Ole 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • seyerfred
    seyerfred over 11 years ago
    Hi Ole

    Logic>autorename refdes will create a unique refdes intire design, all i want is to retain refdes and delete only underscore extension(with repeated refdes on design).

    by the way is there other way axlSelectByName("REFDES" sym)? i want to modify procedure of set_refdes.il to merge autosilk refdes but the the axl depend on ticked refdes on symbol..

    procedure( _find_refdes(sym tlayer)
    prog( list(child l_children o_type o_layer match_loc)
    l_children = car(axlSelectByName("REFDES" sym))->children
    foreach(child l_children
    o_type = child->objType
    o_layer = child->layer
    if(o_type=="text" && o_layer==tlayer then
    match_loc=child->xy
    axlClearSelSet()
    return(list(child match_loc))
    )
    )
    )
    )


    Thank you

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

    You can use axlRenameRefdes. You will have to go through each symbol.

    eg  axlRenameRefdes("U1_1" "U1")

    Take care that the new refdes doesn't already exist because  axlRenameRefdes will just swap them.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • seyerfred
    seyerfred over 11 years ago

    Thanks Dave,

     could it be possible to create backup of all refdes then axlRenameRefdes get the backup as reference to rename all at one time? 

     

    Thank you 

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

    If you can understand the following code it might help:

    refdesList = setof(refdes, axlDBGetDesign() ->symbols ~>refdes, refdes)

    tempRefdesList = mapcar(lambda((refdes), and(tempRefdes = strcat(refdes, "_TEMP"), axlRenameRefdes(refdes, strcat(refdes, "_TEMP")), tempRefdes)), refdesList)

    forall(result, mapcar(lambda((refdes), axlRenameRefdes(refdes, car(parseString(refdes, "_")))), tempRefdesList), result) 

    • 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