Export Simscape Solid to STL or STEP File

12 ビュー (過去 30 日間)
Muneer Wahbah
Muneer Wahbah 2020 年 4 月 7 日
回答済み: Steve Miller 2021 年 6 月 4 日
I know how to import a CAD model in stl or step format into MATLAB Simscape. Now, I wonder if there is any method or idea to export my MATLAB Simscape model into stl or step formats?
What I am trying to do is:
  1. To draw the cross section of a link using MATLAB function; Link_CrossSection(length,width). A 2D geometry of the link, with the ability to change its length and width, will be obtained.
  2. Then to use that MATLAB function in Simulink > Simscape > Solid > General Extrusion. A 3D CAD model of the link, with the ability to change and optimize its length and width during every simulation, will be obtained.
  3. Finally to export the Soild block into stl format, so that I can use the exported stl file in PDE toolbox and apply stress analysis study on the link during every simulation.
I managed to implement the first two points. I am trying to implement the third point but I am stuck in it. Is there any idea or solution to export the 3D body in Solid block into stl file?
Thanks in advance.
  2 件のコメント
Paul Pena
Paul Pena 2021 年 1 月 5 日
I need to do the same thing. Does anyone know how to do this?
Edward Brown
Edward Brown 2021 年 1 月 29 日
Also would really like to see this

サインインしてコメントする。

回答 (1 件)

Steve Miller
Steve Miller 2021 年 6 月 4 日
There are quite a few examples of MATLAB code that will produce an STL file on the MATLAB Central File Exchange. You will need to use a few additional lines of MATLAB code to convert your extrusion profile into the format they require.
Here are a couple:
--Steve

カテゴリ

Help Center および File ExchangeBodies についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by