Message 1 of 5
Set definition on rectangular pattern not implemented?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi.
I have a part where a pattern determines the placement and type of an inlet. I am trying to change the solid that is getting patterned by updating the definition, like so:
Dim new_def As RectangularPatternFeatureDefinition = oPartComp.Features.RectangularPatternFeatures.CreateDefinition(oBjCol, plane, True, count, offset/10, PatternSpacingTypeEnum.kDefault)
Dim rec_pattern As RectangularPatternFeature = oPartComp.Features.RectangularPatternFeatures.Item(pattern_name)
rec_pattern.Definition = new_def
But then I get an not implemented (0x80004001 (E_NOTIMPL))) exception. Instead, I have tried to find the pattern by name, delete it and then create a new one with the new definition, but it does not work every time.
Is there another way to update the definition, besides creating a new pattern?
Thanks in advance!
-Casper