Get "MANIFOLD_SOLID_BREP" entity names with STEPCAFControl_reader

I'm currently using "STEPCAFControl_reader" with the translation parameter "read.stepcaf.subshapes.name" set to 1 (otherwise XDE doesn't expand to sub-shapes).

I can find the names of the "MANIFOLD_SOLID_BREP" entities with ShapeTool "FindSubShape", but it returns 0 whenever there is only one sub-shape/solid body.

If there are multiple sub-shapes/solid bodies it does read the "MANIFOLD_SOLID_BREP" entity name. The only problem I have is that whenever there is only one solid body in the shape, I can only get the "CLOSED_SHELL" entity name, but not the "MANIFOLD_SOLID_BREP" entity name. I can also get the shape name buy that is not what I'm looking for.

The only thing I can think of is that if there is only one sub-shape/solid body it is not considered as a sub-shape. So my question is then how do you get the MANIFOLD_SOLID_BREP entity name.

Is there any way to find the name of the solids for example I want to find "Boss-Extrude1" and "Boss-Extrude2".

#23=MANIFOLD_SOLID_BREP('Boss-Extrude1',#45);
#78=MANIFOLD_SOLID_BREP('Boss-Extrude2',#66);

Thanks in advance,

Hao Zhan's picture

I have the same question,I want to read the name of a shell witch is represented in STEP file as MANIFOLD_SURFACE_SHAPE_REPRESENTATION and SHELL_BASED_SURFACE_MODEL, but when I read into occ shape and use EntityFromShapeResult(shape,1).get() , I can only get stepshape_closedShell.So I can't get the name of the shell, is there any solve to this?

Dmitrii Pasukhin's picture