Community will be under system maintenance from July 31, 4PM PDT to Saturday August 1, 4PM PDT.

  • 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. How do I use the TCL command to save an image and a Visio...

Stats

  • State Suggested Answer
  • Replies 1
  • Answers 1
  • Subscribers 14
  • Views 121
  • Members are here 0
More Content

How do I use the TCL command to save an image and a Visio drawing file from a DSN file as a new file?

FK202606088435
FK202606088435 1 day ago

Hi,

My current version is 23.1. How do I use the TCL command to save an image and a Visio drawing file from a DSN file as a new file?

I've tried the Base64 decoding mentioned on pages 762 and 767 of the OrCAD_Capture_TclTk_Extensions.pdf file, but it's not working. The code snippet provided is:

Invalid command name "DboTclHelper_sGetBase64ImageData"

  • Cancel
  • Sign in to reply
Parents
  • TechnoBobby
    0 TechnoBobby 1 day ago

    Hi FK202606088435 ,

    Please try the following TCL code on a selected image on schematic page:

    set bmpInst [GetSelectedObjects]
    set bmp [$bmpInst GetDboBitMap]

    set outStr [DboTclHelper_sMakeStdStr ""]
    set status [DboState]

    DboBitMap_sGetBase64ImageData $bmp $outStr $status

    set base64Data [DboTclHelper_sGetConstCharPtr $outStr]

    COrBase64Encoder_decodeToFile $base64Data "c:/temp/image.png"

    Hope this helps!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • TechnoBobby
    0 TechnoBobby 1 day ago

    Hi FK202606088435 ,

    Please try the following TCL code on a selected image on schematic page:

    set bmpInst [GetSelectedObjects]
    set bmp [$bmpInst GetDboBitMap]

    set outStr [DboTclHelper_sMakeStdStr ""]
    set status [DboState]

    DboBitMap_sGetBase64ImageData $bmp $outStr $status

    set base64Data [DboTclHelper_sGetConstCharPtr $outStr]

    COrBase64Encoder_decodeToFile $base64Data "c:/temp/image.png"

    Hope this helps!

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

© 2026 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information