R2022b - PDE Tblx - importGeometry : issues with STEP file import :

6 vues (au cours des 30 derniers jours)
Lionel Juillen AF
Lionel Juillen AF le 3 Juil 2023
Commenté : Lionel Juillen AF le 20 Août 2023
Hello
I tried to use R2022b PDE toolbox importGeometry to read a STEP file..
s_STEP_file = 'pump.step' ;
figure ;
gm1 = importGeometry( s_STEP_file);
pdeplot(gm1,"FaceLabels","on","FaceAlpha",0.3);
and I got the following message :
Report : 581 unknown entities.
Error using gm1
Expected input to be one of these types:
double, single, uint8, uint16, uint32, uint64, int8, int16, int32, int64
Instead its type was pde.DiscreteGeometry.
Error in pdeplot (line 106)
validateattributes(varargin{1},{'numeric'},{'real', 'finite', 'nonsparse', 'nonnan'}, inputname(1));
Error in load_pump_STEP (line 20)
pdeplot(gm1,"FaceLabels","on","FaceAlpha",0.3)
It looks that 581 entities have not been read.. which ones ? types ? How to know ?
Is there somebody who knows what are the limitations ? or a documentation ?
I tried an example in the documentation :
figure
gm2 = importGeometry("AngleBlockBlendR10.step");
pdegplot(gm2,"FaceLabels","on","FaceAlpha",0.3)
it worked, but in gm2 object, there are no information about entities and face informations ?
How to get it ?
Thanks for your help
Regards
Lionel

Réponse acceptée

Shuba Nandini
Shuba Nandini le 17 Août 2023
Modifié(e) : Shuba Nandini le 18 Août 2023
Hi Lionel,
I understand that you are unable to import a ‘s_STEP_filefile using PDE toolbox in MATLAB R2022b. The error message indicates that the gm1 object you are trying to use for plotting is of type pde.DiscreteGeometry, which is not the expected type for the pdeplot function. Instead, you can use "pdegplot" function because it can take DiscreteGeometry object as it's input arguments.
To learn more about “pdegplot” function, please refer to this link:
I hope this helps!
Regards,
Nandini

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by