Macro to export FE model to NASTRAN

Hello everyone!

I'm new in SolidWorks, and I have a trouble need help. I want to export a model to Nastran (*.dat) file but I can't record this action in SolidWorks: Simulation > Export. As this image below:

So, anyone know the macro to export this model to NASTRAN? And this macro also can get information of this study (in mutil study) and information about parts.

Thank you for reading! And great thanks if you can help me!

Regards,

Kieu Tran.

SolidworksApi macros