- https://www.mathworks.com/help/smlink/ug/installing-and-linking-simmechanics-link-software.html
- https://www.mathworks.com/help/releases/R2024a/sm/ref/smimport.html
Importing STEP file (.stp) with more geometric shapes
16 ビュー (過去 30 日間)
古いコメントを表示
Hi,
how (if possible) can I import a step file (file.stp) that contains more shapes (volumes) into matlab?
I used the " fegeometry("file.stp") " or " importGeometry("file.stp") " but it looks like it can import only geometry with 1 object.
0 件のコメント
回答 (1 件)
Adarsh
2025 年 6 月 3 日
I see that you are trying to import a STEP file that contains multiple geometrical objects into MATLAB but facing an issue where only one geometrical object is being imported.
I have also faced a similar issue before, however the functions “importGeometry” and “fegeometry” are designed to return a single geometric object from a STEP file.
As a workaround you can try opening the STEP file in a CAD like tool and dividing it into various STEP files each for single geometry and importing them separately.
If using Simscape, this can also be done by using the “Simscape Multibody Link Plugin” for MATLAB which can be used to export a CAD model as an XML file and body geometry files which can be converted to “Simscape Multibody Models” using the “smimport” function.
For more information on “smimport” and “Simscape Multibody Link Plugin” the following documentation links can be referred:
Hope this helps.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Model Import についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!