Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Specifying a midplane option in a pattern

5 REPLIES 5
Reply
Message 1 of 6
keithjk
362 Views, 5 Replies

Specifying a midplane option in a pattern

 

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

5 REPLIES 5
Message 2 of 6
Owner2229
in reply to: keithjk

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
Message 3 of 6
keithjk
in reply to: Owner2229

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

Message 4 of 6
chandra.shekar.g
in reply to: keithjk

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



Message 5 of 6

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

jvj
Message 6 of 6

@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



Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report