Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Khoa_NguyenDang
1350 Views, 10 Replies

Inventor API - Thicken Error in Part (Make Components from Multi Solid part file)

Hi Everybody 

Have you ever met the error with ThickenFeature in Inventor

I have created code to thicken faces that I selected before 

But in the new part file, the code is very normal and work well

But when I open 1 part file (which created it by Making a component from the MultiSolid part file) the code just can create the first thicken face, it met the error for the second and stop the code for the first time I run code in that part file for the first time. When I that code for the second time, it works normally.

 Does anyone have experience with my issue? 

If you help any ideas, please help me

 

Khoa_NguyenDang_0-1608280974072.png

I also attach my code here so you guys can know my code 

foreach (Face face in laminate)
{
FaceCollection FacesCol = default(FaceCollection);
FacesCol = _invApp.TransientObjects.CreateFaceCollection();
FacesCol.Add(face);

oThickFeat = partDef.Features.ThickenFeatures.Add(FacesCol, laminate_thick.Text + "mm", PartFeatureExtentDirectionEnum.kNegativeExtentDirection, PartFeatureOperationEnum.kNewBodyOperation, false, false, false);
oThickFeat.SurfaceBody.Name = "Laminate " + i.ToString();
oThickFeat.Name = "Thicken_Laminate " + i.ToString(); ;

}

 

Thank you so much and hope someone can help me!

 

 

Labels (1)