Retrieve command listing from .db
Retrieve command listing from .db
(OP)
Hi,
I've got some .db files and I wish to manually edit my problem. I was wondering if there's a way to retrieve the log info or command listing from a db file.
Thanks in advance
I've got some .db files and I wish to manually edit my problem. I was wondering if there's a way to retrieve the log info or command listing from a db file.
Thanks in advance





RE: Retrieve command listing from .db
If you open the db file in ansys, you will be able to write out a lgw file. In this file all commands are listed.
To get the command lines from the db file it self will be a difficult matter, I don't think this is possible.
Garry
RE: Retrieve command listing from .db
You can write out CDB file (an ascii command file)
CDWRITE
RE: Retrieve command listing from .db
RE: Retrieve command listing from .db
a) Start over from scratch.
b) If you started w/ CAD geometry you could export any areas, lines, etc from your current database using IGESOUT and read these into the fresh CAD geometry in order to modify the database as needed.
Hope this helps.
RE: Retrieve command listing from .db
I tried both the CDWRITE and the LGWRITE commands. Both produce a log file full of garbage. Running the log file did not reproduce geometry, mesh or loads, as available in the original db.
Starting from scratch.
RE: Retrieve command listing from .db
I dont know what it is you are trying to modify in your existing model....
You could generate an input file from the DB using
*cfopen,inputfile,inp
alls
nnn=ndnext(0)
*dowhile,nnn
*vwrite,nnn,nx(nnn),ny(nnn),nx(nnn)
('n,',F5.5,',',F10.10,',',F10.10,',',F10.10)
!check your fortran format
nnn=ndnext(nnn)
*enddo
!(make similar loop for elements and nodal loads...)
*cfclose
RE: Retrieve command listing from .db
RE: Retrieve command listing from .db
If you choose to take eelco71's approach and export everything to an input file I'd recommend using the *cfwrite command over *vwrite for this application. It's much more user friendly :)
Good luck!
RE: Retrieve command listing from .db
RE: Retrieve command listing from .db
Of course not very usefull.
Selection in GUI by picking will produce KSEL,S, , ,P51X , also not very usefull.