Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

APDL script for saving .lis files

Status
Not open for further replies.

SuG89

Structural
Aug 10, 2014
118
Hello everyone,

I am using this script to generate results along a path. The PRPATH command displays the list files on screen. Then I have to save each file using 'File>Save As option'. I checked the DB log file after saving one file but the script for saving operation was not generated. Does anyone know which commands can be used in this case to save the .lis file automatically?

PATH,Cyl_2,2,30,2000, !horizontal path
PPATH,1,0,-5000,0,7250,0,
PPATH,2,0,5000,0,7250,0,
PATH,Cyl_2
AVPRIN,0, ,
RSYS,14
PDEF, ,ETAB,N11,NOAVG
PDEF, ,ETAB,Sm11,NOAVG
PDEF, ,ETAB,N22,NOAVG
PDEF, ,ETAB,Sm22,NOAVG
PDEF, ,ETAB,N12,NOAVG
PDEF, ,ETAB,Sm12,NOAVG
PDEF, ,ETAB,M11,NOAVG
PDEF, ,ETAB,Sb11,NOAVG
PDEF, ,ETAB,M22,NOAVG
PDEF, ,ETAB,Sb22,NOAVG
PDEF, ,ETAB,M12,NOAVG
PDEF, ,ETAB,Sb12,NOAVG
PDEF, ,ETAB,Q13,NOAVG
PDEF, ,ETAB,St13,NOAVG
PDEF, ,ETAB,Q23,NOAVG
PDEF, ,ETAB,St23,NOAVG
PDEF, ,U,X,NOAVG
PDEF, ,U,Y,NOAVG
PDEF, ,U,Z,NOAVG
RSYS,0
PDEF,UZ_Cartesian,U,Z,NOAVG
RSYS,14

/STITLE,,Cyl_2
/HEADER,OFF,ON,OFF,OFF,,OFF
/PAGE,200000,,200000
/FORMAT,,,17,9
!PRANGE,,0,4000
PRPATH,ETABN11,ETABSm11,ETABN22,ETABSm22,ETABN12,ETABSm12
PRPATH,ETABM11,ETABSb11,ETABM22,ETABSb22,ETABM12,ETABSb12
PRPATH,ETABQ13,ETABQ23,ETABSt13,ETABSt23,UZ_Cartesian
_________________
Best regards,
Sushant Goel
MSc Uni Stuttgart
 
Replies continue below

Recommended for you

You could use paput to put the path data into an array and then use *vwrite to write them to a text file. That way you could format the data, which might help with future activities, like opening in Excel.

Rick Fischer
Principal Engineer
Argonne National Laboratory
 
Dear Mr Fischer,

Thanks for the reply. I had posted the same query on Xansys and got to know about '/output' command to redirect the data to a file.

/output,2_smth_g_path3,txt
PRPATH,ETABN11,ETABSm11,ETABN22,ETABSm22,ETABN12,ETABSm12 !maximum 6 labels
PRPATH,ETABM11,ETABSb11,ETABM22,ETABSb22,ETABM12,ETABSb12
PRPATH,ETABQ13,ETABSt13,ETABQ23,ETABSt23,UZ_Cartesian
/output

This text is put in a file which is saved with .mac extension. This file name is included in the script and it works fine.

Best regards,
Sushant Goel
MSc Uni Stuttgart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor