How do I export Nastran File from Mechanical to a user defined path?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 357
100 Answers 100 Comments 100 Likes Ansys Employee
edited June 27 in Structures

How do I export Nastran File from Mechanical to a user defined path?

Comments

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 357
    100 Answers 100 Comments 100 Likes Ansys Employee
    ns = Ansys.ACT.Automation.Mechanical.NastranExportOptions()
    
    ns.NastranFilename = r"\Path\to\nastran_export_file.cdb"
    
    analysis = Model.Analyses[0]
    
    analysis.ExportNastranFile(ns)