How to import a .ffe file to a 3D View using Lua?

Israel Lopez
Israel Lopez Altair Community Member
edited July 2021 in Community Q&A

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

Tagged:

Best Answer

  • Mel
    Mel
    Altair Employee
    edited July 2021 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])

Answers

  • Mel
    Mel
    Altair Employee
    edited July 2021 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])
  • Israel Lopez
    Israel Lopez Altair Community Member
    edited July 2021

    I appreciate your feedback. It works perfectly.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.