<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Patterning a Feature across the mid plane in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/patterning-a-feature-across-the-mid-plane/m-p/7014662#M101622</link>
    <description>&lt;P&gt;Awesome, Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The whole time I was trying to mess with XDirectionMidPlanePattern, no wonder I couldn't get it working.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2017 12:32:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-13T12:32:45Z</dc:date>
    <item>
      <title>Patterning a Feature across the mid plane</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/patterning-a-feature-across-the-mid-plane/m-p/7012939#M101620</link>
      <description>&lt;P&gt;Afternoon Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I finally figure out how to pattern a feature but now I can't get it pattern from the mid plane. It's probably something simple but I can't see it. Would really appreciate some help. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim objCol As ObjectCollection&lt;BR /&gt;Set objCol = ThisApplication.TransientObjects.CreateObjectCollection&lt;BR /&gt;Call objCol.Add(oPartDef.Features("Extrusion1"))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Set oRecPat = oPartDef.Features.RectangularPatternFeatures.Add(objCol, oPartDef.WorkAxes.Item("X Axis"), False, 98, 1, kDefault, , _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; oPartDef.WorkAxes.Item("Y Axis"), True, 1, 1, kDefault, , kIdenticalCompute, kIdentical)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set oRecPat.Definition.XDirectionMidPlanePattern = True&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 18:17:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/patterning-a-feature-across-the-mid-plane/m-p/7012939#M101620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-12T18:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Patterning a Feature across the mid plane</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/patterning-a-feature-across-the-mid-plane/m-p/7014055#M101621</link>
      <description>&lt;P&gt;Here you go, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;RED&lt;/STRONG&gt;&lt;/FONT&gt; is what I've changed:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oDoc As Document = ThisApplication.ActiveDocument
Dim oPartDef As ComponentDefinition = oDoc.ComponentDefinition
Dim oCol As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection
oCol.Add(oPartDef.Features("Extrusion1"))

&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Dim AxeA As WorkAxis = oPartDef.WorkAxes("X Axis")
Dim AxeB As WorkAxis = oPartDef.WorkAxes("Y Axis")&lt;/STRONG&gt;

&lt;STRONG&gt;Dim&lt;/STRONG&gt; &lt;/FONT&gt;oRecPat &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;As RectangularPatternFeature&lt;/STRONG&gt;&lt;/FONT&gt; = oPartDef.Features.RectangularPatternFeatures.Add(_
oCol, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;AxeA&lt;/STRONG&gt;&lt;/FONT&gt;, False, 98, 1, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;PatternSpacingTypeEnum.&lt;/STRONG&gt;&lt;/FONT&gt;kDefault, , &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;AxeB&lt;/STRONG&gt;&lt;/FONT&gt;, True, 1, 1, _
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;PatternSpacingTypeEnum.&lt;/STRONG&gt;&lt;/FONT&gt;kDefault, , &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;PatternComputeTypeEnum.&lt;/STRONG&gt;&lt;/FONT&gt;kIdenticalCompute, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;PatternOrientationEnum.&lt;/STRONG&gt;&lt;/FONT&gt;kIdentical)

oRecPat.Definition.XDirectionMidPlanePattern = True&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Apr 2017 06:01:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/patterning-a-feature-across-the-mid-plane/m-p/7014055#M101621</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2017-04-13T06:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Patterning a Feature across the mid plane</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/patterning-a-feature-across-the-mid-plane/m-p/7014662#M101622</link>
      <description>&lt;P&gt;Awesome, Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The whole time I was trying to mess with XDirectionMidPlanePattern, no wonder I couldn't get it working.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 12:32:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/patterning-a-feature-across-the-mid-plane/m-p/7014662#M101622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-13T12:32:45Z</dc:date>
    </item>
  </channel>
</rss>

