• 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 PCB Editor
  3. file exported from axlGetAttachment() not the same as the...

Stats

  • Replies 0
  • Subscribers 158
  • Views 11980
  • Members are here 0
More Content

file exported from axlGetAttachment() not the same as the original imported file

DavidJHutchins
DavidJHutchins over 8 years ago

In Allegro:
Command > skill
Skill > axlCreateAttachment( "test_attach" nil 0 'file "test.log")
attachment:120983576
Skill > file=axlGetAttachment( "test_attach" 'file)
attachment:120983840
Skill > file->??
(id "test_attach" size 177 revision
    0 password nil timeStamp 1487005612
    data "C:/Users/davidh/AppData/Local/Temp/#Taaaaab06968.tmp" objType "attachment" dataFormat
    file
)
Skill > axlOSBackSlash(file->data)
"C:\\Users\\davidh\\AppData\\Local\\Temp\\#Taaaaab06968.tmp"
Skill > exit
t
Command >

At the OS level:
C:\Users\davidh\Downloads>wc test.log
  4   9 176 test.log

C:\Users\davidh\Downloads>od -c test.log
0000000   (   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
0000020   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
*
0000100   -   -   -   -   -   -   )  \n   D   e   s   i   g   n       f
0000120   i   l   e   :       C   :   /   U   s   e   r   s   /   d   a
0000140   v   i   d   h   /   D   o   w   n   l   o   a   d   s   /   Q
0000160   F   S   -   0   2   6   -   0   4   _   2   5   -   X   X   -
0000200   D   -   P   T   4   .   d   r   a  \n   E   x   p   o   r   t
0000220       u   n   i   t   s   :       I   n   c   h  \n   s   t   e
0000240   p   _   o   u   t       c   o   m   p   l   e   t   e   .  \n
0000260

C:\Users\davidh\Downloads>copy C:\\Users\\davidh\\AppData\\Local\\Temp\\#Taaaaab06968.tmp test.txt
        1 file(s) copied.

C:\Users\davidh\Downloads>wc test.txt
  4   9 177 test.txt

C:\Users\davidh\Downloads>od -c test.txt
0000000   (   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
0000020   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
*
0000100   -   -   -   -   -   -   )  \n   D   e   s   i   g   n       f
0000120   i   l   e   :       C   :   /   U   s   e   r   s   /   d   a
0000140   v   i   d   h   /   D   o   w   n   l   o   a   d   s   /   Q
0000160   F   S   -   0   2   6   -   0   4   _   2   5   -   X   X   -
0000200   D   -   P   T   4   .   d   r   a  \n   E   x   p   o   r   t
0000220       u   n   i   t   s   :       I   n   c   h  \n   s   t   e
0000240   p   _   o   u   t       c   o   m   p   l   e   t   e   .  \n
0000260  \0
0000261

C:\Users\davidh\Downloads>diff -ibw test.log test.txt
Binary files test.log and test.txt differ

  • 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