• 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 14628
  • 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
Parents
  • 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
Reply
  • 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
Children
  • vimaldevlpr
    vimaldevlpr over 6 years ago in reply to DavidJHutchins

    Hai David kindly thanks for your reply and support  and one more thing now also some problem found.

    Here the two smd are connected by trace but there is  no via in this  two pins i want to check fan out only here in this two smd pins has no fanout but it is not highlighting can you please check it.

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

    Below is my final iteration of this code ( I removed highlighting single-pin nets )

    procedure(Hilite_UnConnectedPins(@optional (SmdOnly nil))
    let((NetPinCnt PinCnt PinList ViaList)
    (PinCnt=0)
    if(SmdOnly then
    axlMsgPut("SMD only")
    else
    axlMsgPut("all pins")
    )
    foreach(net (axlDBGetDesign)->nets
    (NetPinCnt = 0)
    foreach(branch (net->branches)
    (PinList = setof(c (branch->children) ((c->objType) == "pin")))
    (ViaList = setof(c (branch->children) ((c->objType) == "via")))
    (NetPinCnt = NetPinCnt + length(PinList))
    ; 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++
    ; )
    ; )
    when(eq(0 length(ViaList))
    if(SmdOnly then
    (ViaList = setof(c PinList ((c->isThrough) == t)))
    when(eq(0 length(ViaList))
    axlHighlightObject(PinList t)
    (PinCnt=PinCnt+length(PinList))
    )
    else
    when(eq(1 length(PinList))
    axlHighlightObject(car(PinList) t)
    PinCnt++
    )
    )
    )
    )
    when(and(eq(1 NetPinCnt) SmdOnly)
    axlDehighlightObject(PinList 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

    Thanks a lot david

    • 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