• 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. PCB SKILL Update Text Using Comment

Stats

  • State Verified Answer
  • Replies 6
  • Subscribers 20
  • Views 7311
  • Members are here 0
More Content

PCB SKILL Update Text Using Comment

ryamashita
ryamashita over 3 years ago

I have a bunch of version numbers in my PCB database.  I have added a comment property to the version number TEXT in the database.  What I would like to do is use SKILL to go through all of the text on the board and look for the right comment property and when I find the comment property that was added to the version number, replace the TEXT value.  I have the code to be able to search through all of the text in the database but what I don't have is a way to read the comment property that is attached to the text.  Does anyone know if this is possible and what command to use to check if there is a comment attached to text and to check the value of the comment?  Below is basically what I am trying to do

procedure( ReplaceRevisionNum()
     axlClearSelSet() ; unselects all currently selected objects
     axlSetFindFilter(?enabled list("noall", "text", "noinvisible"), ?onButtons list("noall", "text")) ; sets the find filter to all visible text
     axlAddSelectAll() ; find all of the visible text
     selSet = axlGetSelSet() ; selects all visible text and stores a list of DBID to variable selSet
     foreach( selection selSet ; itterate over all of the DBID in selSet

          ;THIS IS THE CODE I NEED
          ;CHECK IF TEXT HAS A COMMENT PROPERTY AND IF VALUE OF COMMENT IS "REVISION" THEN UPDATE TEXT
     )
)

  • Cancel
  • Sign in to reply
Parents
  • victorpatrick
    0 victorpatrick over 2 years ago

    To read the comment property attached to text in your PCB database using SKILL, you can use the property function to access the comment value. 

    tunnel rush 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • victorpatrick
    0 victorpatrick over 2 years ago

    To read the comment property attached to text in your PCB database using SKILL, you can use the property function to access the comment value. 

    tunnel rush 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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