Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lumpdefinition

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
humbertogo
529 Views, 7 Replies

lumpdefinition

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.

7 REPLIES 7
Message 2 of 8

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.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 3 of 8

Thanks any way


<What are you trying to achieve anyway with counting the lumps?>
I try to recognize this kind of parts

Message 4 of 8

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 ...

 



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 5 of 8

A part with one solid bodie and multiple lump

Message 6 of 8

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.

 



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 7 of 8

Thanks

I'll try the multiple face shells

Message 8 of 8
humbertogo
in reply to: humbertogo

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.

Post to forums  

Autodesk Design & Make Report