• 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 Scripting - Skill
  3. Select Pin TextBlock with SKILL

Stats

  • Replies 4
  • Subscribers 18
  • Views 10006
  • Members are here 0
More Content

Select Pin TextBlock with SKILL

Eric Jordan
Eric Jordan over 4 years ago
I am trying to find all the pin number textblocks and change the textblock to a specific number.
When I have a symbol selected, I can see each pin, but there is no textBlock property on the pins.
If I use one of the select functions and select the pin text, it's parent is a pin.
What's the correct way to get the textBlock of a specific pin on a symbol?
Here's some code I've tried:
When using skill to manually select a pin number (text as the search filter):
 
axlSetFindFilter(?enabled list("noall", "text") ?onButtons list("noall", "text"))
axlSingleSelectPoint()
; Manually Select Pin Number
pn = car(axlGetSelSet())
pn->objType
 
OUTPUT
"text"
 
pn->?
 
OUTPUT
(parentGroups justify isMirrored objType parent
    rotation mirrorType textBlock text xy
    readOnly bBox layer prop
)
 
pn->parent->objType
 
OUTPUT
 
"pin"
 
pn->parent->?
 
(fixedByTestPoint parentGroups pads definition parent
    relRotation relxy rotation mirrorType startEnd
    readOnly prop functionPins component testPoint
    isThrough isMirrored isMech isExploded branch
    net bBox xy number name
    objType use bondpad
)
 
------------------------------
What I'd expect from the last output would be some way to access the "text" object on the pin
  • Cancel
  • Sign in to reply
Parents
  • B Bruekers
    B Bruekers over 4 years ago

    Use axlDBGetAttachedText(pin)   where pin is the dbID of the pin.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Eric Jordan
    Eric Jordan over 4 years ago in reply to B Bruekers

    I tried this and it does not work. When I use axlDBGetAttachedText on a pin, I do get a DBID, but it has no properties. When I pass it to axlDBChangeText I get the following error: *WARNING* (axlDBChangeText): Require a text dbid, dbid:000001AA61EC6C00

    Thanks for the suggestion though - any other ideas?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Eric Jordan
    Eric Jordan over 4 years ago in reply to B Bruekers

    I tried this and it does not work. When I use axlDBGetAttachedText on a pin, I do get a DBID, but it has no properties. When I pass it to axlDBChangeText I get the following error: *WARNING* (axlDBChangeText): Require a text dbid, dbid:000001AA61EC6C00

    Thanks for the suggestion though - any other ideas?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • B Bruekers
    B Bruekers over 4 years ago in reply to Eric Jordan

    What inside id->objType?

    This should work :

    txtID = car(axlDBGetAttachedText(pinID))
    axlDBChangeText(txtID "a" 1)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Eric Jordan
    Eric Jordan over 4 years ago in reply to B Bruekers

    So the difference between the two is using car on the axlDBGetAttachedText, I missed that the function returns a list. It now works- I get a text object.

    Thanks!

    • 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