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

Exception while using circular pattern feature

// Hi all,

// I am having an exception error while running the line indicated by purple color,

//exception image is also provided at bottom

// can I get the solution why I am getting this.

 

ObjectCollection bodyCollection;
bodyCollection = inventorApplication.TransientObjects.CreateObjectCollection();

bodyCollection.Add("Extrusion2");
bodyCollection.Add("Extrusion3");
object oangle = (360 *Math.PI)/180;

CircularPatternFeatureDefinition pattern1;
pattern1 = oPartCompDef.Features.CircularPatternFeatures.
CreateDefinition(bodyCollection,oPartCompDef.WorkAxes[3],true,
noOfHolesRadially,oangle);
CircularPatternFeature pa = oPartCompDef.Features.
CircularPatternFeatures.AddByDefinition(pattern1);

 

2019mmp003_1-1604930167848.png