<?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: The challenge for the iLogic in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6818997#M69472</link>
    <description>&lt;P&gt;Place for the opening is always on the spline. Spline - it is rather isocurve, because the surface is always on and repeats it.&lt;BR /&gt;The points for the holes to be selected counter. And the diameter should be selected only two - the largest and the smallest. The diameters between large and small should decrease uniformly.&lt;BR /&gt;For example: 1. The large diameter of 5mm, 0.7mm small&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; 2. Step between holes 0.2mm&lt;BR /&gt;As a result, iLogic must calculate the number of holes in increments of 0.2mm in said isocurve and reduce the diameter from 5mm to 0.7mm evenly. Or choose to reduce the diameter of the said advance otdelnom box (a list of diameters). If it is not possible to place these holes display a message that is not possible to place a given number of openings of the curve on this curve.&lt;BR /&gt;Start holes can be set using the indent (specify manually).&lt;BR /&gt;Yes holes are always perpendicular to the surface.&lt;BR /&gt;Lines - a (very often) offset from the surface of the rib (in rinoceros - this is called isocurve)&lt;/P&gt;&lt;P&gt;Post Inventor:&lt;/P&gt;&lt;P&gt;(Failed to create the hole.Part1.ipt: Error updating An error in the calculation of the sketch. Use the "Sketch" command tochange sketch geometry or relationships.3D Sketch2: Problems when you try to perform an operation of 3D sketch)&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2017 10:54:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-20T10:54:33Z</dc:date>
    <item>
      <title>The challenge for the iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6818782#M69467</link>
      <description>&lt;P&gt;&lt;SPAN&gt;1. Imagine, you have to place&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;array of scale-down holes on a&amp;nbsp;nonplanar surface.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Is it possible to implement this problem through iLogic function? And use it in the future for different surfaces?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&amp;nbsp;And how to make an array of holes with the diameter reduction?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3.&amp;nbsp;And how to get rid of errors in the operation of the extrusion holes?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-01-19_170716.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/313320i1A9AC8982D6C7EB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-01-19_170716.jpg" alt="2017-01-19_170716.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-01-19_170938.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/313321i2F71BACDD24EB0AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-01-19_170938.jpg" alt="2017-01-19_170938.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-01-19_171141.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/313319i9213A4DC4A488FB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-01-19_171141.jpg" alt="2017-01-19_171141.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-01-19_171329.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/313322iD7EB98B65D6EA74F/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-01-19_171329.jpg" alt="2017-01-19_171329.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-01-19_171524.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/313324i1AF741170BB345F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-01-19_171524.jpg" alt="2017-01-19_171524.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-01-19_171603.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/313323i0BA86E1FCC3C045C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-01-19_171603.jpg" alt="2017-01-19_171603.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 08:55:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6818782#M69467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-20T08:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: The challenge for the iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6818898#M69469</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;
&lt;P&gt;1. Everything you can do manually can be done by code, it just depends on the amount of work.&lt;/P&gt;
&lt;P&gt;Can you share the file?&lt;/P&gt;
&lt;P&gt;How do you want to select the "place" where should the holes be? Is there a rule (specified position) for that?&lt;/P&gt;
&lt;P&gt;What is the origin of the spline, is it projected from the shape? If so, what part of it?&lt;/P&gt;
&lt;P&gt;Which features will be present and which do you want to create by the code? (Workplanes, the spline, the lines, the circles' center points)&lt;/P&gt;
&lt;P&gt;Where should the holes start?&lt;/P&gt;
&lt;P&gt;Are the holes' planes&amp;nbsp;perpendicular or&amp;nbsp;parallel to something? The lines maybe?&lt;/P&gt;
&lt;P&gt;Where do the lines come from and where do they lead?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Here's a sample for that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oDoc As Document = ThisApplication.ActiveDocument
Dim oCD As ComponentDefinition = oDoc.ComponentDefinition
Dim TG As TransientGeometry = ThisApplication.TransientGeometry
Dim oPlane As WorkPlane = oCD.WorkPlanes(1)
Dim oSketch As Sketch = oCD.Sketches.Add(oPlane)
oSketch.Edit
Dim CircleDia As Double = 11
Dim DiaReduce As Double = 2
Dim CircleCount As Integer = 5
Dim PointX As Double = 0
Dim PointY As Double = 0
For i = 0 To CircleCount
	Dim CirclePoint As Point2D = TG.CreatePoint2d(PointX, PointY)
	oSketch.SketchCircles.AddByCenterRadius(CirclePoint, CircleDia/2)
	PointX = PointX + CircleDia
	CircleDia = CircleDia - DiaReduce
Next
oSketch.ExitEdit&lt;/PRE&gt;
&lt;P&gt;3. Can you translate the errors for us, so I can see what it wants? Anyway, it can be suppressed like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ThisApplication.SilentOperation = True
Try
     'Do some operations
Catch
End Try
ThisApplication.SilentOperation = False&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 10:06:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6818898#M69469</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2017-01-20T10:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: The challenge for the iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6818997#M69472</link>
      <description>&lt;P&gt;Place for the opening is always on the spline. Spline - it is rather isocurve, because the surface is always on and repeats it.&lt;BR /&gt;The points for the holes to be selected counter. And the diameter should be selected only two - the largest and the smallest. The diameters between large and small should decrease uniformly.&lt;BR /&gt;For example: 1. The large diameter of 5mm, 0.7mm small&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; 2. Step between holes 0.2mm&lt;BR /&gt;As a result, iLogic must calculate the number of holes in increments of 0.2mm in said isocurve and reduce the diameter from 5mm to 0.7mm evenly. Or choose to reduce the diameter of the said advance otdelnom box (a list of diameters). If it is not possible to place these holes display a message that is not possible to place a given number of openings of the curve on this curve.&lt;BR /&gt;Start holes can be set using the indent (specify manually).&lt;BR /&gt;Yes holes are always perpendicular to the surface.&lt;BR /&gt;Lines - a (very often) offset from the surface of the rib (in rinoceros - this is called isocurve)&lt;/P&gt;&lt;P&gt;Post Inventor:&lt;/P&gt;&lt;P&gt;(Failed to create the hole.Part1.ipt: Error updating An error in the calculation of the sketch. Use the "Sketch" command tochange sketch geometry or relationships.3D Sketch2: Problems when you try to perform an operation of 3D sketch)&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 10:54:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6818997#M69472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-20T10:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: The challenge for the iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6819044#M69473</link>
      <description>&lt;P&gt;&lt;SPAN&gt;...otdelnom box -&amp;nbsp;dialog box...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 11:26:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6819044#M69473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-20T11:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: The challenge for the iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6819061#M69474</link>
      <description>&lt;P&gt;Alright then, "isocurve". Should the isocureve be offset from the projected line or just drawn "somewhere on the shape's face"?&lt;/P&gt;
&lt;P&gt;Could, by any chance, be used the original curve from the 3d sketch? Aka it's projection to the outer surface.&lt;/P&gt;
&lt;P&gt;The axis, workplanes, sketches and extrusion should not be a problem, they'll be created on the curve's points.&lt;/P&gt;
&lt;P&gt;Should the points have equal spacing or be driven by an equation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the code to calculate the amount of holes:&lt;/P&gt;
&lt;PRE&gt;Dim lDia As Double = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/FONT&gt;    &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Later we'll set this value from the user's input&lt;/STRONG&gt;&lt;/FONT&gt;
Dim sDia As Double = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0.7&lt;/STRONG&gt;&lt;/FONT&gt;  &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Later we'll set this value from the user's input&lt;/STRONG&gt;&lt;/FONT&gt;
Dim aStep As Double = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;0.2&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Later we'll set this value from the user's input&lt;/STRONG&gt;&lt;/FONT&gt;
Dim CircleCount As Integer = Math.Floor((lDia - sDia) / aStep) + 1
For i = 1 To CircleCount
     Dim aDia As Double = lDia - ((i - 1) * aStep)
     If i = CircleCount Then aDia = sDia
     &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;'Here we're gonna use the variable "aDia" as the diameter for each circle&lt;/STRONG&gt;&lt;/FONT&gt;
Next&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 11:47:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6819061#M69474</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2017-01-20T11:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: The challenge for the iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6831058#M69622</link>
      <description>&lt;P&gt;ok, thx)&amp;nbsp;&lt;/P&gt;&lt;DIV class="Mu SP"&gt;&lt;SPAN&gt;Tell me please where I can get the maximum information about usage of ilogic module&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="Mu SP"&gt;&lt;DIV class="xH"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;SPAN&gt;with the examples of constructive usage&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Jan 2017 19:18:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6831058#M69622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-25T19:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: The challenge for the iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6831229#M69624</link>
      <description>&lt;P&gt;You can eighter search in this forum, or on mode-the-machine blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://modthemachine.typepad.com" target="_self"&gt;http://modthemachine.typepad.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or simply in Inventor:&lt;/P&gt;
&lt;P&gt;Inventor HELP button &amp;gt; Help &amp;gt; Programming/API help&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 20:32:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-challenge-for-the-ilogic/m-p/6831229#M69624</guid>
      <dc:creator>Owner2229</dc:creator>
      <dc:date>2017-01-25T20:32:52Z</dc:date>
    </item>
  </channel>
</rss>

