I wanted to import results from NEi Nastran .FNO file. Is that possible by script?
I tried some options for example:
Unfortunatelly I cant load such file. Is there some other option that would work with .FNO file?
I have only issue with importing this type of file. I can load NEU or NAS but no FNO...
Solved! Go to Solution.
FEMAP developers will be able to say whether there is a bug with this method or not. In the meanwhile here are a few tips regarding your code:
- The getfilepath method will enable you to prompt the user for a file. Go to Help > Basic Languauge for more information
- the Dir method will make sure the file exists. perhaps the name you are giving is wrong, is "nas" in caps or lower case...?
Dim s As String s = GetFilePath("","NAS",,"Specify input file",0) If s = "" Then End App.feFileNew App.feFileReadNastran(1,s) s = Replace(s,"NAS","FNO") If Dir(s) = "" Then App.feAppMessage(FCM_ERROR,"ERROR: file " & s & " was not found") s = GetFilePath("","FNO",,"Specify results file",0) If s = "" Then End End If App.feFileReadNastranResults(1,s)
I just looked at GROUP_POST_FNO.bas in the /api/PostProcessing folder that ships with FEMAP, this API is designed for large models with large amounts of output data to extract a portion of the model, together with its output data for more efficient post-processing. In it, an FNO is created, and then attached to with -
rc = App.feFileAttachResults( FAP_NE_NASTRAN, fno_Name, False )