Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Shuba Nandini
Shuba Nandini il 17 Ago 2023
Modificato: Shuba Nandini il 18 Ago 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

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by