How to import a .ffe file to a 3D View using Lua?
Israel Lopez
Altair Community Member
Hello,
I need to import a .ffe file into a 3D View, but I cannot find a way. I was trying the following:
FF3D = view.Plots:Add(app.ImportedDataSets[1])
But ImportedDataSets is only the collection. I was trying to mimic the import of patterns in a model:
FF3D = view.Plots:Add(app.Models[1].Configurations[1].FarFields[1])
Is there a way to Import a Dataset into a 3D view using Lua?
I can always import the plot manually.
Thanks
0
Best Answer
-
You can use the following e.g:
app = pf.GetApplication() importedSet = app:ImportResults("myfarfieldfile.ffe", pf.Enums.ImportFileTypeEnum.FEKOFarField) ffeplot=app.Views[1].Plots:Add(importedSet.ImportedData[1])
0
Answers
-
You can use the following e.g:
app = pf.GetApplication() importedSet = app:ImportResults("myfarfieldfile.ffe", pf.Enums.ImportFileTypeEnum.FEKOFarField) ffeplot=app.Views[1].Plots:Add(importedSet.ImportedData[1])
0 -
I appreciate your feedback. It works perfectly.
0