Is it possible to encrypt and use ULIB files the same way Ansys can encrypt and use macro files?


This is not a supported capability but I did a simple test and it does seem to be possible. Basically
I encrypted each macro into an individual file and created the ulib file by inserting the entire contents
of the encrypted file after the ulib block name and following the encrypted file contents with a /EOF.

Here is the first job file I ran in ANSYS 9.0 via /input :

/encrypt,pw1,nb1
/com, nlist
nlist
/encrypt
!
/encrypt,pw1,eb2
/com, elist
elist
/encrypt


This produced file nb1 and eb2. I used the contents of these two files and created a ULIB file as follows:

nb1 ! I typed in this block name and then inserted the file nb1 after it
/DECRYPT,pw1
01?YjM:=#T@nk
02dgI#q
/DECRYPT
/eof ! I inserted this too then repeated the editing steps for the second macro file
eb2
/DECRYPT,pw1
01?YjM:=xT@nk
02[gI#q
/DECRYPT
/eof


I then renamed the nb1 and eb2 files to be sure I was accessing the ulib macro blocks and it worked for me.





Show Form
No comments yet. Be the first to add a comment!