MolFlow crashes when I try to import simple STL file

I created an STL file (as a test) from a simple online cube STL file. I have copy and pasted the contents of the file below. I find that MolFlow crashes when it tries to read this file. Are there any ideas what might be happening ?
Thanks
Chris

solid AssimpScene
facet normal 0 0 1
outer loop
vertex -35 60 20
vertex -55 60 20
vertex -35 40 20
endloop
endfacet

facet normal 0 0 1
outer loop
vertex -35 40 20
vertex -55 60 20
vertex -55 40 20
endloop
endfacet

facet normal 0 0 -1
outer loop
vertex -35 40 0
vertex -55 40 0
vertex -35 60 0
endloop
endfacet

facet normal 0 0 -1
outer loop
vertex -35 60 0
vertex -55 40 0
vertex -55 60 0
endloop
endfacet

facet normal 0 -1 0
outer loop
vertex -55 40 20
vertex -55 40 0
vertex -35 40 20
endloop
endfacet

facet normal 0 -1 0
outer loop
vertex -35 40 20
vertex -55 40 0
vertex -35 40 0
endloop
endfacet

facet normal -1 0 0
outer loop
vertex -55 60 20
vertex -55 60 0
vertex -55 40 20
endloop
endfacet

facet normal -1 0 0
outer loop
vertex -55 40 20
vertex -55 60 0
vertex -55 40 0
endloop
endfacet

facet normal 0 1 0
outer loop
vertex -35 60 20
vertex -35 60 0
vertex -55 60 20
endloop
endfacet

facet normal 0 1 0
outer loop
vertex -55 60 20
vertex -35 60 0
vertex -55 60 0
endloop
endfacet

facet normal 1 0 0
outer loop
vertex -35 40 20
vertex -35 40 0
vertex -35 60 20
endloop
endfacet

facet normal 1 0 0
outer loop
vertex -35 60 20
vertex -35 40 0
vertex -35 60 0
endloop
endfacet

endsolid AssimpScene

Hi Christopher,

could you clarify whether you are trying to load or insert the STL file? For the latter there has been a bug, for which I have a fix scheduled that I could release today for the development version and that would be part of a new release that can hopefully follow in the upcoming weeks.

Best regards,
Pascal

Hi Pascal,
Thanks for your response. I was trying to insert the file. However, I was using the latest beta release of Molflow. I just tried with an earlier version and the problem goes away.
Best wishes
Chris

Great!
In case you want to work with a more recent version, you can take a look at the current development build that contains a fix to the problem.
For Windows you can download it here: https://gitlab.cern.ch/molflow_synrad/molflow/-/jobs/22446685/artifacts/download?file_type=archive

Best regards,
Pascal

Hi Pascal,

I’ve generate a STL file from NX12, in both .stl and .txt formats.
I’ve tried to open (Insert geometry > To current structure) with 2.8.6 (Mar 29) and 2.9.5 (Jun 10).
Anyway, it didn’t work out.

Am I doing something wrong?

Thanks

Molflow error

Hello Chris,

Pascal has left Cern, I’m taking this issue over.

  1. What is NX12?
  2. How did you generate the TXT file?
  3. Is the STL in Ascii format?
  4. If yes, could you share (DM or attaching here) the txt and stl files?

Thabk you, Marton

Hello Marton,

  1. NX is a Siemens CAD software similar to Inventor, Spaceclaim…
  2. I have generated the txt file by exporting the original file from NX.
  3. In NX there are two options: “Binary” and “Text”. Binary gives a STL file and Text, a txt file. I don’t know if they are in ASCII format.
  4. It says that new users can’t share files here.

Thanks,

Ricardo

  1. Thank you
  2. NX uses a proprietary format for TXT export. Only (old, legacy) Molflow-generated TXT insert is supported by Molflow.
  3. Please export the STL file with “text” option, which is in other words ASCII. It should have STL extension, and should be importable by Molflow. Let me know if still not.
  4. Please help us solve this, other users reported the same, and I couldn’t reproduce it with test accounts. Please post screenshots of the exact error message you get, and I’ll contact Discourse admins to fix the permission issue. Thank you!
  1. So what I’ve done was: exported the STL file with “text” format. It was a .txt file.
    Then I manually changed to .stl . And now it works for MolFlow 2.9.5 (Jun 10). =D
    But still gives the same error for MolFlow 2.8.6 (Mar 29).

  2. The error messages from the previous tests are below: (please notice the Molflow version and the file extension.)
    Molflow error

Thanks

Dear Ricardo,

  1. I meant the error where you can’t share files on Discourse (this forum).
  2. So you confirm that with a text-based STL file Molflow 2.8.6 gives unknown exception error?
  1. Sorry for the misunderstanding.
    The first error it’s for when I try to upload a .stl file.
    The second, is for the .txt file.
    Forum errors

  2. Yeap, with a text-based STL file Molflow 2.8.6 gives unknown exception error.
    The same file opens perfectly with Molflow 2.9.5.
    Notice that I did this way: exported the STL file with “text” format. It was a .txt file.
    Then I manually changed to .stl.

Many thanks

Many thanks.
I’ll add STL to the allowed extensions right now, for the other two (new users not allowed to upload and STL in 2.8.6, I’ll check right now).

1 Like

You should now be able to upload the STL file in this thread, can you please check? I’ll then try to insert it in 2.8.6 and check what’s wrong. I also found and disabled the new user attachment limit.

That’s nice.

The file named “TXT” was manually made into a .stl file. The Molflow 2.9.5 opens this one.
The other one is the original one. This gives Moflow 2.8.6 and 2.9.5 a error (different errors).

cilinder for molflow - TXT.stl (31.8 KB)
cilinder for molflow.stl (5.6 KB)

1 Like

Hi Marton,

Just to add a tip that I learned yesterday from a coworker.
It’s possible to use MeshLab to “fix” the stl file.
It’s just open the stl file from NX with Meshlab and save again.
Now it opens in Molflow 2.8.6.

Thanks Ricardo.

Just to add an explanation: STL files come in text-based (ASCII) format, and compressed (binary) format. Normally both should have the extension STL, NX12’s choice to save as TXT is strange.

It is normal that compressed (binary) files are not opened in Molflow, we never implemented that format.

It should, however, open and insert ASCII STL files. I confirm that trying to insert the file in Molflow 2.8.6 throws an error, opening it instead of inserting worked fine.

I’ll try to find the root cause, and fix it for 2.8.7.

1 Like

Fixed the bug, will be added to 2.8.7 release.

1 Like