General

General

In EnSight, while exporting the transient file in vrml file format, only the current time step file gets saved. How do I go about exporting vrml files for a transient case?

    • FAQFAQ
      Participant

      As of 2020R2 there is a bug that is preventing all vrml files at all timesteps from being saved. A workaround would be to use a python script to export in vrml format. The python script is as follows: for x in range(20): ensight.solution_time.current_step(x) ensight.solution_time.update_to_current() ensight.part.select_begin(6) ensight.part.visible(“OFF”) ensight.savegeom.format(“vrml”) ensight.savegeom.begin_step(x) ensight.savegeom.end_step(x) ensight.savegeom.step_by(1) ensight.savegeom.save_geometric_entities(“D:/test_pyscript_” + str(x)) In order to implement the script, go to File –> Command. Select the Python tab in the pop-up window and select New Python file… Copy and paste the script into the editor. You will have to make a few changes to the script. Line 1: for x in range(20) – you can change the number to the number of time steps you desire. Line 4: ensight.part.select_begin(6) – The number is the part Id which is shown in the Part window (located left of your screen by default) Line 10: ensight.savegeom.save_geometric_entities(“D:/test_pyscript_” + str(x)) – You will have to set the location of file storage by replacing the text in “ ” by the location you want the files to be saved. To execute the Python script, in the Python editor window, File –> Run Script (execfile).