- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
trying to pattern a bolt hole feature in assembly. It fails to create the pattern definition.
// and add the hole pattern
oICollecton = .oITransObj.CreateObjectCollection();
oICollecton.Add(oIExtrudedFeatures[oIExtrudedFeatures.Count]);
if (endData.FileType3D == ".ipt")
{
oICirclePatternDef = oICirclePatternFeatures.CreateDefinition(oICollecton, oISMCompDef.WorkAxes[1], false, 4, oDeg, true);
}
else
{
oICirclePatternDef = oICirclePatternFeatures.CreateDefinition(oICollecton, oIAssyCompDef.WorkAxes[1], false, 4, oDeg, true);
}
oICirclePatternFeature = oICirclePatternFeatures.AddByDefinition(oICirclePatternDef);
oICirclePatternFeature.Name = "Flange Brg Bolt Pattern";
It works fine for the sheet metal file but not the assembly. Am I missing something?
Solved! Go to Solution.