I am creating a rectangular pattern along the x axis and I want it to be bidirectional (or the midplane option in the UI). The following snippet works fine but how do I use the mid plane option?
Dim oPattern As OccurrencePattern = oAssyDef.OccurrencePatterns.AddRectangularPattern(objCol, XAxis, True, xExtents, Convert.ToInt16(Val(txtPatternNo.Text)))
Hey, try adding this (after the pattern creation):
oPattern.Definition.XDirectionMidPlanePattern = True
Thanks for the reply but that doesn't work. I get a "definition on type RectangularOccurrencePattern not found error".
Hi Keith,
Unfortunately, current Inventor 2018 API does not support to set midplane for RectangularOccurancePattern.
Thanks and regards,
Well what about the Inventor 2020 API? Don't you think it should be supported by now?
Still Inventor API is not supported to mention midplane for RectangularOccurrencePattern. Please log a wish list at idea station using below link.
https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232
Thanks and regards,