Is there any way to export a FNO neutral file while retaining the Output Set ID. I am working on a project with 500 load cases and we use the output (subcase) ID's to determine what the load is. When reading in the .op2 you can retain the subcase ID and have the output set match. I would like to do the same thing with the FNO but when I export a FNO file they all get renumbered to 1-500.
Due to the lack of response I am assuming this can't be done at this point.
Can I request that this functionality be added in the next FeMap release.
FEMAP development will look into updating this for a future release.
In the meantime, it is true the IDs are not preserved, however, the Results Set titles are. We could do something clever as a work around via the API. The script below will append all Results Sets titles with their IDs and then export an FNO.
Now, when the FNO is read into the new model, the Results IDs will be sequential, but the titles will have the information you wish to preserve. The second API will take those titles and use them to update the IDs.
#1 - Append Titles
Sub Main Dim App As femap.model Set App = feFemap() Dim r As OutputSet Set r = App.feOutputSet While r.Next() r.title += "\"+Str$(r.ID) r.Put(r.ID) Wend End Sub
#2 Write out FNO and import into desired model
** we can do this through API as well
#3 Get IDs from Titles and renumber:
Sub Main Dim App As femap.model Set App = feFemap() Dim r As OutputSet Set r = App.feOutputSet Dim oSet As Set Set oSet = App.feSet oSet.AddAll(FT_OUT_CASE) oSet.Reset() While oSet.Next() r.Get(oSet.CurrentID) 'Get the ID from title location = InStrRev( r.title, "\") stringID = Right( r.title, location-1 ) ID = Val( stringID ) 'Renumber App.feRenumber(FT_OUT_CASE,-r.ID, ID ) 'Chop off ID from title r.title = Left( r.title, location-1 ) r.Put( ID ) Wend End Sub
That is simular to what I ended up doing. I wrote a script to renumber the output sets using just a table that ties the new ID's to the old ID's. This one is nice as it is more universal.