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

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 467
100 Answers 250 Likes 100 Comments Second Anniversary
✭✭✭✭
edited June 2023 in Structures

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

Comments

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