Specifying a midplane option in a pattern

Specifying a midplane option in a pattern

keithjk
Advocate Advocate
534 Views
5 Replies
Message 1 of 6

Specifying a midplane option in a pattern

keithjk
Advocate
Advocate

 

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)))

0 Likes
535 Views
5 Replies
Replies (5)
Message 2 of 6

Owner2229
Advisor
Advisor

Hey, try adding this (after the pattern creation):

 

oPattern.Definition.XDirectionMidPlanePattern = True
Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods
0 Likes
Message 3 of 6

keithjk
Advocate
Advocate

Thanks for the reply but that doesn't work. I get a "definition on type RectangularOccurrencePattern not found error".

0 Likes
Message 4 of 6

chandra.shekar.g
Autodesk Support
Autodesk Support

Hi Keith,

 

Unfortunately, current Inventor 2018 API does not support to set midplane for RectangularOccurancePattern.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 5 of 6

JamieVJohnson2
Collaborator
Collaborator

Well what about the Inventor 2020 API?  Don't you think it should be supported by now?

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
0 Likes
Message 6 of 6

chandra.shekar.g
Autodesk Support
Autodesk Support

@JamieVJohnson2,

 

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,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes