<?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: Create circular pattern feature in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9477039#M118984</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/582192"&gt;@JBerns&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears that AD removed the CircularPatternFeatures.Add method in Inventor 2017:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/manufacturing/inventor/page/4/" target="_blank" rel="noopener"&gt;https://adndevblog.typepad.com/manufacturing/inventor/page/4/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the AddByDefinition method that&amp;nbsp;jhoel.forshav&amp;nbsp;shows is the way to go now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 15:57:41 GMT</pubDate>
    <dc:creator>Curtis_Waguespack</dc:creator>
    <dc:date>2020-04-28T15:57:41Z</dc:date>
    <item>
      <title>Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/5593847#M118974</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking&amp;nbsp;some sample code to create a circular pattern&amp;nbsp;feature using the API.&lt;/P&gt;&lt;P&gt;A simple extruded cut patterned around a center axis&amp;nbsp;is what i'm going for.&lt;/P&gt;&lt;P&gt;Does anyone have any experience with something like&amp;nbsp;this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2015 20:07:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/5593847#M118974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-15T20:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/5593961#M118975</link>
      <description>&lt;P&gt;Hi ROBTRONIX,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had this iLogic example on hand, hopefully you can convert it to straight VB or what ever is needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached is an example file in case it helps. (I also attached an example file with some rules that modify patterns in case that is useful.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oCdef As ComponentDefinition
oCdef = ThisDoc.Document.ComponentDefinition

Dim objCol As ObjectCollection
objCol = ThisApplication.TransientObjects.CreateObjectCollection

'Feature to be patterned
objCol.Add (oCdef.Features("Extrusion2"))

'convert degrees to radians
oDeg = 360 * 0.0174532925 

'create pattern
'....CircularPatternFeatures.Add(Features in Pattern, Axis, NaturalAxisDirection, Count, Angle, FitWithinAngle)
oCdef.Features.CircularPatternFeatures.Add(objCol, oCdef.WorkAxes.Item("Z Axis"), False, 3, oDeg , True)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2015 21:31:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/5593961#M118975</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2015-04-15T21:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/5594962#M118976</link>
      <description>&lt;P&gt;Curtis,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We plugged this into VBA with some modification and it worked well, but we're having problems when trying different base features or change the&amp;nbsp;orientation of the base feature.&amp;nbsp; It seems to be tempermental to the type of geometry being patterened, where as a&amp;nbsp;sculpt pattern will error, but the underlying surface will work. A simple extrusion on a plane parallel to the axis of rotation also generates and error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;See attached modified code (in vba) and ref part file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 5222 StartFragment: 314 EndFragment: 5190 StartSelection: 314 EndSelection: 314SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCdef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oCdef&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisDoc&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Document&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;objCol&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ObjectCollection&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;objCol&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;TransientObjects&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreateObjectCollection&lt;/SPAN&gt;

&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;Feature to be patterned&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;objCol&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oCdef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Features&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;Extrusion4&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;))&lt;/SPAN&gt;

&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;convert degrees to radians&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oDeg&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;360&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;*&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-weight: bold;"&gt;0.0174532925&lt;/SPAN&gt; 

&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;create pattern&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;....CircularPatternFeatures.Add(Features in Pattern, Axis, NaturalAxisDirection, Count, Angle, FitWithinAngle)&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oCdef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Features&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CircularPatternFeatures&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;objCol&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oCdef&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;WorkAxes&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;Z Axis&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;False&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;oDeg&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 13:24:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/5594962#M118976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-16T13:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/5595252#M118977</link>
      <description>&lt;P&gt;Hi ROBTRONIX,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think what you're seeing is the result of how the ParentFeatures parameter collection is defined. I don't have much more information than what is in the API help, so hopefully you can interpret it for your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the API help:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="Element14"&gt;
&lt;DIV class="Element5"&gt;&lt;STRONG&gt;CircularPatternFeatures.Add Method&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="div506172616D6574657273"&gt;
&lt;DIV class="Element11"&gt;
&lt;DIV class="Element10"&gt;
&lt;DIV class="Element252"&gt;
&lt;DIV class="TableDiv"&gt;
&lt;TABLE class="Table1" cellspacing="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="40%" valign="top" class="Element240"&gt;
&lt;DIV class="Element241"&gt;Parameters&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="60%" valign="top" class="Element244"&gt;
&lt;DIV class="Element245"&gt;Description&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="40%" valign="top" class="Element242"&gt;
&lt;DIV class="Element243"&gt;ParentFeatures&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="60%" valign="top" class="Element246"&gt;
&lt;DIV class="Element247"&gt;ObjectCollection object that contains the features to be patterned. The collection could contain the various part features, sheet metal features, work planes, work axes, work points, or a SurfaceBody. Only the primary (result) surface body, obtained from ComponentDefinition.SurfaceBodies.Item(1) is a valid input. If a SurfaceBody is supplied, the only other objects that can be in the collection are work features and surface part features.&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="40%" valign="top" class="Element242"&gt;
&lt;DIV class="Element243"&gt;AxisEntity&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="60%" valign="top" class="Element246"&gt;
&lt;DIV class="Element247"&gt;Input object that returns the axis entity. This can be a linear edge, a work axis, or any face that can define an axis (i.e. every face type except planar and spherical).&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="40%" valign="top" class="Element242"&gt;
&lt;DIV class="Element243"&gt;NaturalAxisDirection&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="60%" valign="top" class="Element246"&gt;
&lt;DIV class="Element247"&gt;Input Boolean that defines if the sketch plane X or Y axis is in the same direction as that defined by the input axis entity. True indicates the axis direction is in the same direction as that of the input entity.&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="40%" valign="top" class="Element242"&gt;
&lt;DIV class="Element243"&gt;Count&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="60%" valign="top" class="Element246"&gt;
&lt;DIV class="Element247"&gt;Input Variant that defines the number of instances in the pattern.&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="40%" valign="top" class="Element242"&gt;
&lt;DIV class="Element243"&gt;Angle&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="60%" valign="top" class="Element246"&gt;
&lt;DIV class="Element247"&gt;Input Variant that defines the angle of the pattern&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="40%" valign="top" class="Element242"&gt;
&lt;DIV class="Element243"&gt;FitWithinAngle&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="60%" valign="top" class="Element246"&gt;
&lt;DIV class="Element247"&gt;Input Boolean that indicates how the count and angle are used to space the occurrences. If this value is true then the angle specifies the total sweep made by the pattern and the occurrences are evenly spaced within the angle. If it is false then the angle specifies the angular offset between each occurrence.&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="40%" valign="top" class="Element242"&gt;
&lt;DIV class="Element243"&gt;ComputeType&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="60%" valign="top" class="Element246"&gt;
&lt;DIV class="Element247"&gt;Property that that indicates the method of solution for the pattern. If specified as kOptimizedCompute, which is the default, patterns are optimized for faster calculation. If kIdenticalCompute is specified, all occurrences in the pattern use an identical termination, regardless of where they intersect another feature. Use this method to efficiently pattern large numbers of features when the feature being duplicated has a distance termination or terminates on a work plane. If kAdjustToModelCompute is specified, the termination of each occurrence is calculated individually. Computation time can be lengthy for patterns with a large number of occurrences. You must use this method if the parent feature terminates on a model face.&amp;nbsp;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Apr 2015 15:29:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/5595252#M118977</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2015-04-16T15:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/6323041#M118978</link>
      <description>Good afternoon people,&lt;BR /&gt;&lt;BR /&gt;I'm trying to apply a circularPattern of a coil in a Revolve object, but as said this procedure is unstable and, in this case also can not create the circularPattern.&lt;BR /&gt;Someone who has had this problem found a solution?&lt;BR /&gt;Thank you.</description>
      <pubDate>Thu, 12 May 2016 14:46:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/6323041#M118978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-12T14:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9475285#M118979</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a circular pattern of a feature within a part.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-04-27_23-33-03.jpg" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/761508i994FAA8579A2A1C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-04-27_23-33-03.jpg" alt="2020-04-27_23-33-03.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I downloaded Curtis' (&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_Waguespack&lt;/a&gt;&amp;nbsp;) part above and the iLogic rule works as expected in his part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I copied his iLogic rule to my part, substituted the feature name, and then run the code. I get an error, "The parameter is incorrect".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the feature name to Extrusion2 as it was in the original code and changed the code back to reference Extrusion2. This time, an "Unspecified error" occurs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone explain why the errors occur? Part file attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed a couple other forum threads reported issues creating part feature circular patterns:&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/inventor/troubleshooting/caas/sfdcarticles/sfdcarticles/CircularPatternFeatures-AddByDefinition-does-not-honor-the-angle-set-in-CircularPatternFeatureDefinition-in-Inventor-API.html" target="_blank" rel="noopener"&gt;https://knowledge.autodesk.com/support/inventor/troubleshooting/caas/sfdcarticles/sfdcarticles/CircularPatternFeatures-AddByDefinition-does-not-honor-the-angle-set-in-CircularPatternFeatureDefinition-in-Inventor-API.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/circular-patterns-feature-strange-results/td-p/7899603" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-customization/circular-patterns-feature-strange-results/td-p/7899603&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time and attention. I look forward to a response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 04:50:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9475285#M118979</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2020-04-28T04:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9475842#M118980</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/582192"&gt;@JBerns&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add a circular pattern you first need to create a definition for it.&lt;/P&gt;&lt;P&gt;Also there is a bug with the angle so you have to set it after the feature is created and update the part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See ilogic code below:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCdef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oCdef&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;objCol&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ObjectCollection&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;objCol&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateObjectCollection&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'Feature to be patterned&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFeature&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ExtrudeFeature&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oCdef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Features&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ExtrudeFeatures&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"WeldTabExtude"&lt;/SPAN&gt;)

&lt;SPAN style="color: #800000;"&gt;objCol&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oFeature&lt;/SPAN&gt;)


&lt;SPAN style="color: #800000;"&gt;oDeg&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"360 deg"&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;'create pattern&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;featureDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;CircularPatternFeatureDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oCdef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Features&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CircularPatternFeatures&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateDefinition&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;objCol&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oCdef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;WorkAxes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Z Axis"&lt;/SPAN&gt;), &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;, 3, &lt;SPAN style="color: #800000;"&gt;oDeg&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPattern&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;CircularPatternFeature&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oCdef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Features&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CircularPatternFeatures&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByDefinition&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;featureDef&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;'------------------------There is a bug with the angle. Fix it like this!------------------------------------&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDegParam&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ModelParameter&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oCdef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Parameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelParameters&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oCdef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Parameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelParameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oDegParam&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Expression&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDeg&lt;/SPAN&gt;
&lt;SPAN style="color: #800080;"&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;UpdateWhenDone&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I'll also attach an edited ipt.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 09:28:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9475842#M118980</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-04-28T09:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9476447#M118981</link>
      <description>&lt;P&gt;Brilliant,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your code corrections work well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't understand why Curtis' code works without first creating the circular pattern definition. I could not find information on the "Add" method. Is this an undocumented method, but still supported?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;oCdef.Features.CircularPatternFeatures.Add(objCol, oCdef.WorkAxes.Item("Z Axis"), False, 3, oDeg , True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again, Jhoel for the code update and to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_Waguespack&lt;/a&gt;&amp;nbsp; Curtis for the original code.&lt;/P&gt;&lt;P&gt;One structural shape complete, two more to go.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-04-22_8-58-58.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/761751i43D026924346634E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-04-22_8-58-58.png" alt="2020-04-22_8-58-58.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 13:25:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9476447#M118981</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2020-04-28T13:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9476522#M118982</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/582192"&gt;@JBerns&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm super confused about this aswell...&lt;/P&gt;&lt;P&gt;Since Curtis provided this example the method CircularPatternFeatures.Add has disappeared from the documentation.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-1A3ABEC4-D07A-4A7A-AA02-7151C7A2DE7D" target="_blank"&gt;http://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-1A3ABEC4-D07A-4A7A-AA02-7151C7A2DE7D&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;His part still works like you said. I also tried to create a new part and the same code works fine. I guess it still exists but isn't documented anymore.&lt;/P&gt;&lt;P&gt;Couln't get it to work in your part though...&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 13:44:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9476522#M118982</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-04-28T13:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9476779#M118983</link>
      <description>&lt;P&gt;Ackn.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_Waguespack&lt;/a&gt;&amp;nbsp;can explain why the code works in his part, but not in others. Maybe&amp;nbsp;someone from Autodesk?&lt;/P&gt;&lt;P&gt;Even without an explanation, I can continue my progress. Thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 14:49:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9476779#M118983</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2020-04-28T14:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9477039#M118984</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/582192"&gt;@JBerns&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears that AD removed the CircularPatternFeatures.Add method in Inventor 2017:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/manufacturing/inventor/page/4/" target="_blank" rel="noopener"&gt;https://adndevblog.typepad.com/manufacturing/inventor/page/4/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the AddByDefinition method that&amp;nbsp;jhoel.forshav&amp;nbsp;shows is the way to go now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 15:57:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9477039#M118984</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2020-04-28T15:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9477046#M118985</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/582192"&gt;@JBerns&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One structural shape complete, two more to go.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-04-22_8-58-58.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/761751i43D026924346634E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-04-22_8-58-58.png" alt="2020-04-22_8-58-58.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jerry&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/582192"&gt;@JBerns&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to use a circular pattern for the square shape too... what are you thinking for the rectangle?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 15:59:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9477046#M118985</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2020-04-28T15:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9477146#M118986</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_Waguespack&lt;/a&gt;, for the explanation. I'll review the post and the content in the API Help "What's New".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 16:25:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/9477146#M118986</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2020-04-28T16:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create circular pattern feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/12531979#M118987</link>
      <description>&lt;P&gt;I'm going crazy trying to figure out why the angle argument isn't working and I have to find out about an API bug on a comment in the Inventor forums. That's wild. Thank you, though.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 15:10:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-circular-pattern-feature/m-p/12531979#M118987</guid>
      <dc:creator>InventorUser123456</dc:creator>
      <dc:date>2024-01-31T15:10:36Z</dc:date>
    </item>
  </channel>
</rss>

