• 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 - TCL
  3. TCL foreach command encryption issue?

Stats

  • State Not Answered
  • Replies 2
  • Subscribers 13
  • Views 701
  • Members are here 0
More Content

TCL foreach command encryption issue?

palemoon
palemoon 4 months ago

I am tryping to encrypt my TCL project for OrCAD with  tclcompiler86.exe by following the method described in help documents.

I found it seems to have some bug in OrCAD TCL environment excuting the encrypted .tbc file with foreach command inside a proc.

Here is the simple example:

a.tcl:

 foreach i {a b c d e} {
puts "puts eng $i"
}

b.tcl:

proc abc {} { 
  foreach i {a b c d e} {
  puts "puts eng $i"
  }
}

I encrypted tcl files with the command:

tclcompiler86 .\a.tcl to get a.tbc

tclcompiler86 .\b.tcl to get b.tbc

Then source it in Orcad command window, a.tbc and b.tcl runs okay, but b.tbc failed.

the same b.tbc can runs okay in tclsh:

Both 17.4 and 24.1 version has same situation, does anyone know how to fix it? Or any other encryption method for TCL projects?

  • Sign in to reply
  • Cancel
Parents
  • CadAP
    0 CadAP 4 months ago

    Hi Palemonn,

    Which tcl encryption you are using?

    Can you attach  b.tbc file here, so that I can check it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • CadAP
    0 CadAP 4 months ago

    Hi Palemonn,

    Which tcl encryption you are using?

    Can you attach  b.tbc file here, so that I can check it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • palemoon
    0 palemoon 4 months ago in reply to CadAP

    I use tclcompiler86.exe from TCLDevKit 5.4.0 to build .tbc files.

    Here are the test files (a.tcl, a.tbc, b.tcl, b.tbc)

    testFiles.zip

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