GTLF export from Datasmith imported model

Hi community.
I want to ask if someone knows how should I do to export in GLTF (Using the GLTF exporter plugin) a complex hierarchy of actors created by importing a file with Datasmith.
I tried to do 3 different approaches but no one worked.

  1. Importing a Datasmith file in runtime, selecting the Datasmith Root Actor that is created, and exporting that using the gltf exporter from the menu.

  2. Importing an IFC file (using Datasmith also). It creates a file in my content folder. I tried to just select that asset and export it.

  3. The last thing that I tried was spawning that asset into the unreal scene, selecting the actor, and exporting it.

None of these approachs is generating a valid gltf file. Do you have any idea of what I’m doing wrong?

Thank you very much

What is wrong in your gltf file?
Do you get any warning error message in the log file?

Be aware that glTF exporter needs to bake materials for export in glTF but cannot do that at runtime. So if your materials were not prepared in editor for glTF export and applied on your imported model you will have issues on exporter materials.

Do you have to do your glTF conversion in a runtime application? Could you do it in Editor.

An alternative but that is still in development is to take the latest version of Twinmotion, import your udatasmith in it and export to glTF.