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: 

How to combine the solid

0 REPLIES 0
Reply
Message 1 of 1
623526308
157 Views, 0 Replies

How to combine the solid

Hi

I want to use code to combine a seires of solids which were created by lost features.

my C# code a following (solid1-10 are loftfeatures)

 Inventor.ObjectCollection Combine2 = inventorApp.TransientObjects.CreateObjectCollection();
            Combine2.Add(solid2);
            Combine2.Add(solid3);
            Combine2.Add(solid4);
            Combine2.Add(solid5);
            Combine2.Add(solid6);
            Combine2.Add(solid7);
            Combine2.Add(solid8);
            Combine2.Add(solid9);
            Combine2.Add(solid10);
            var CombineCreate = compDef.Features.CombineFeatures.Add(solid1.SurfaceBody, Combine2, PartFeatureOperationEnum.kJoinOperation, true);

But it does not work. and the error message is Parameter Error in the last line.

I want to know how to make it correct.

Thank you.

Tags (2)
0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report