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: 

Select one Solid Body to Merge with another Solid Body

1 REPLY 1
Reply
Message 1 of 2
Anonymous
244 Views, 1 Reply

Select one Solid Body to Merge with another Solid Body

Hi everyone,

 

I am working with three Soldi bodies "Body1 as Boss-Extrude1", "Body2 as Boss-Extrude2", and "Body3 as Boss-Extrude3" and 

I need to merge Body3 with Body2.

 

My problem is how do I get the information of Body2 so that I can select it and merge with Body3 using API?

 

My code is here:

 

 ObjectCollection objCol = default(ObjectCollection);

 objCol.Add(objInvOperationBossExtru.oCompDef.SurfaceBodies[2]);

 ............................

oExtrudeDef.AffectedBodies = objCol;

 

 

If I pass the id 2 then it selects the Body2 and gets merge with Body3 but I want to make it dynamic.

 

Please help me to solve my problem. 

 

Regards,

1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

I don't know if you need something complex but sometimes simple is easier. why not just make use of the Combine feature?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report