• 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. PCB Design
  3. TCL scripting to get fewer property fields in generated...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 164
  • Views 12990
  • Members are here 0
More Content
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TCL scripting to get fewer property fields in generated PDF

Pawanshiv
Pawanshiv over 10 years ago

Hi ,

When I generate PDF using TCL scripting there are lots of unwanted property fields in component menu.

Please help me filtering these fields.

I only want to selected fields like

1) Manufacturer part name

2) Package

3) Part refrence

etc.

  • Cancel
  • hmkr
    hmkr over 10 years ago
    Following modification in the %CDSROOT%/tools/capture/tclscripts/capUtils/capPdfUtil.tcl file should take care of your need-

    Option 1:- Add the name of all properties in the "lFilteredPropList" that you don't want to display in the generated PDF.

    proc ::capPdfUtil::isFilteredProp { pPropName } {

    set lFilteredPropList {
    "Line Style"
    "Line Width"
    "Color"
    "Location X-Coordinate"
    "Location Y-Coordinate"
    < Add your more properties in this list that you don't want to display in PDF>
    }

    set lSearchIndex [lsearch $lFilteredPropList $pPropName]
    if {$lSearchIndex != -1} {

    unset lSearchIndex
    unset lFilteredPropList

    return 1
    }

    unset lSearchIndex
    unset lFilteredPropList
    return 0
    }


    Option 2:- Alternatively, reverse the code of the function as follows to just make the properties Part Reference and Part Number as the only properties shown in the popup.
    proc ::capPdfUtil::isFilteredProp { pPropName } {

    set lUnFilteredPropList {
    "Part Reference"
    "Part Number"
    }

    set lSearchIndex [lsearch $lUnFilteredPropList $pPropName]
    if {$lSearchIndex != -1} {

    unset lSearchIndex
    unset lFilteredPropList

    return 0
    }

    unset lSearchIndex
    unset lFilteredPropList
    return 1
    }
    • Cancel
    • Vote Up 0 Vote Down
    • 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