• 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. Smp (surface mount pad ) without via

Stats

  • Replies 8
  • Subscribers 160
  • Views 14629
  • Members are here 0
More Content

Smp (surface mount pad ) without via

vimaldevlpr
vimaldevlpr over 6 years ago

Hai

Were in the .brd file i want to highlight the  smp pad  if  it not  connected with via. i don't know how to do it using in skill any one share me the skill code please.

  • Sign in to reply
  • Cancel
  • DavidJHutchins
    DavidJHutchins over 6 years ago

    Below is a simple function that will highlight unconnected pins 

    procedure(Hilite_UnConnectedPins()
    let((PinCnt)
    (PinCnt=0)
    foreach(net (axlDBGetDesign)->nets
    foreach(branch (net->branches)
    when(eq(1 length(branch->children))
    foreach(child (branch->children)
    when(((child->objType) == "pin")
    axlHighlightObject(child t)
    PinCnt++
    )
    )
    )
    )
    )
    axlMsgPut("%d Pins Highlighted" PinCnt)
    )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vimaldevlpr
    vimaldevlpr over 6 years ago in reply to DavidJHutchins

    Hai david thanks for your reply i want to highlight if the smd didn't have fan out 

    This is fan out smd pin

    In this image didt have a fanout if it like this means i want to highlight

    For this can you share me the code please.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • DavidJHutchins
    DavidJHutchins over 6 years ago

    I added an option argument to the function to limit the highlighting to smd pins, below is the journal file entries from the test run:

    Command > hilite_unconnectedpins t
    SMD only
    426 Pins Highlighted
    110 Net(s) dehighlighted..
    Command > hilite_unconnectedpins
    all pins
    528 Pins Highlighted
    Command >

    the updated code is shown below:

    procedure(Hilite_UnConnectedPins(@optional (SmdOnly nil))
    let((PinCnt)
    (PinCnt=0)
    if(SmdOnly then
    axlMsgPut("SMD only")
    else
    axlMsgPut("all pins")
    )
    foreach(net (axlDBGetDesign)->nets
    foreach(branch (net->branches)
    when(eq(1 length(branch->children))
    foreach(child (branch->children)
    when(((child->objType) == "pin")
    if(child->isThrough then
    unless(SmdOnly
    axlHighlightObject(child t)
    PinCnt++
    )
    else
    axlHighlightObject(child t)
    PinCnt++
    )
    )
    )
    )
    )
    )
    axlMsgPut("%d Pins Highlighted" PinCnt)
    )
    )axlCmdRegister( "Hilite_UnConnectedPins" 'Hilite_UnConnectedPins ?cmdType "general")

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • vimaldevlpr
    vimaldevlpr over 6 years ago in reply to DavidJHutchins

    Hai david thanks for your reply but some smd pins are not showing.

    Here in this image it has a branch but didn't have an via it is not highlighting  i want to check fanout but it is not showing can you please re correct the code please.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • DavidJHutchins
    DavidJHutchins over 6 years ago in reply to vimaldevlpr

    OK, below is the 3rd iteration of this code:

    procedure(Hilite_UnConnectedPins(@optional (SmdOnly nil))
    let((PinCnt PinList ViaList)
    (PinCnt=0)
    if(SmdOnly then
    axlMsgPut("SMD only")
    else
    axlMsgPut("all pins")
    )
    foreach(net (axlDBGetDesign)->nets
    foreach(branch (net->branches)
    (PinList = setof(c (branch->children) ((c->objType) == "pin")))
    (ViaList = setof(c (branch->children) ((c->objType) == "via")))
    when(and(eq(1 length(PinList)) eq(0 length(ViaList)))
    if(SmdOnly then
    unless(car(PinList)->isThrough
    axlHighlightObject(car(PinList) t)
    PinCnt++
    )
    else
    axlHighlightObject(car(PinList) t)
    PinCnt++
    )
    )
    )
    )
    axlMsgPut("%d Pins Highlighted" PinCnt)
    )
    )

    • 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