I want to create some 3D solid model by Mathematica, and then export it into stp (step) format for further finite element or finite volume analysis in Fluent/ANSYS or Abaqus.

But so far to me, it seems mathematica supports STL or DXF format only, which are basically 3D surface model not 3D solid model.

Is it possible to convert the thus obtained STL or DXF into STP?

The Graphics3D object I am interested is something like that created by the code below:

radius = .3;
length = 5;
cyl = Cylinder[{{0, 0, 0}, {0, 0, length}}, radius];
cylinder := 
 cyl // Rotate[#, RandomReal[{0, 2 \[Pi]}], RandomReal[1, 3]] & // 
  Translate[#, RandomReal[{-5, 5}, 3]] &

Graphics3D[#, Boxed -> False, Lighting -> "Neutral"] &@
 Table[cylinder, {59}]


I finally solved the prolem by using VBA script in AutoCAD. It seems python scripts in Abaques should also work. But the thus obtained stp 3D solid model usually has prolbem in meshing by Abaqus and further analysis.

  • $\begingroup$ Could any of the currently supported 3D Geometry & Modeling Formats be supported by those programmes? $\endgroup$ – Edmund Nov 11 '16 at 2:46
  • $\begingroup$ No. I checked the same document page, but didnot find one. $\endgroup$ – user6043040 Nov 11 '16 at 3:46
  • $\begingroup$ It seems AceFEM has a potential solution, but I still doubt it since there is no description about stp conversion in the manual of it $\endgroup$ – user6043040 Nov 11 '16 at 4:33
  • $\begingroup$ when you say you solved it do you mean you found a way to import mathematica geometry or did you do something completely different? If you found a mathematica-relevant solution you should post it as an answer with more detail. $\endgroup$ – george2079 Nov 22 '16 at 17:09
  • 1
    $\begingroup$ @user6043040 With AceFEM you can do advanced FEM analysis inside Mathematica (using mesh generated by Mathematica or external mesher). But it has no functionality to convert any file formats, like STL to STP. $\endgroup$ – Pinti Jun 19 '17 at 7:29

Mathematia currenlty (Version 12.0) does not provide a functionality to export step files. So a solution will have to happen in the external program used.

  • $\begingroup$ user21, can you clarify if it is possible for one to make a file format converter in WL to take dxf or similar to stp? $\endgroup$ – CA Trevillian Aug 17 '19 at 3:37
  • 1
    $\begingroup$ @CATrevillian, I am sure it is possible to do something like this. The question is how much work is one prepared do to set it up. It's probably a larger project. $\endgroup$ – user21 Aug 26 '19 at 9:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.