×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

APDL script for saving .lis files

APDL script for saving .lis files

APDL script for saving .lis files

(OP)
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

RE: APDL script for saving .lis files

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

RE: APDL script for saving .lis files

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources