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

Options
Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 416
First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
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: 416
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    Options
    ns = Ansys.ACT.Automation.Mechanical.NastranExportOptions()
    
    ns.NastranFilename = r"\Path\to\nastran_export_file.cdb"
    
    analysis = Model.Analyses[0]
    
    analysis.ExportNastranFile(ns)