I have a part with a multiple lumpdefinition
and I trying to count all lump in the activeDocument
Does anyone know how do it?
Thanks in advance.
Solved! Go to Solution.
Solved by humbertogo. Go to Solution.
Solved by philippe.leefsma. Go to Solution.
Hi
There is no way to retrieve the lumps once your surface body has been created, the LumpDefinition object is used only has a transient entity when your are generating a surface body using TransientBRep.CreateSurfaceBodyDefinition.
You can access the various surface bodies if you are working in a multi-body part, each body can have one or several face shells, but you do not have access to lumps. What are you trying to achieve anyway with counting the lumps? I see no point doing that...
Regards,
Philippe.
Thanks any way
<What are you trying to achieve anyway with counting the lumps?>
I try to recognize this kind of parts
Which kind of parts? Multi-body? Multi face shell?
There is no such kind of part as multi lumps, so it's unlikely you can achieve this ...
Once again: there is no such thing as lumps once the surface body has been created, lumps are only transient entities used when creating a solid body using the API.
Your part simply contains multiple face shells, 272 in the example you provided.
I hope it helps.
Thanks again
I done
oPartDocument.ComponentDefinition.SurfaceBodies.Item(1).FaceShells.Count
Can't find what you're looking for? Ask the community or share your knowledge.