<?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 Inventor Vb.Net &amp;quot;Stand Alone&amp;quot; Verses &amp;quot;AddIn&amp;quot; in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-quot-stand-alone-quot-verses-quot-addin-quot/m-p/12977144#M6854</link>
    <description>&lt;P&gt;Can anybody help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following Vb.Net code that works great with a "Stand Alone" appiclation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Sub GetTubeDimensions(oDoc)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Dim oCompDef As PartComponentDefinition = oDoc.ComponentDefinition&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Dim oSketch As PlanarSketch = Nothing&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;For Each oSketch In oCompDef.Sketches&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Dim oSketchCircles As SketchCircles = oSketch.SketchCircles&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Dim oSketchCircle As SketchCircle&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;If oSketchCircles.Count = 2 Then&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;For Each oSketchCircle In oSketchCircles&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Counter += 1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Dim oDia As Double = (oSketchCircle.Radius * 2) * 10&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;IMsgbox(oDia)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;End If&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;End Sub&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I use the above code in a Inventor Vb.Net "AddIn" the code does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know how the code needs modifying to make it work in an "AddIn"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2024 13:25:24 GMT</pubDate>
    <dc:creator>isocam</dc:creator>
    <dc:date>2024-08-23T13:25:24Z</dc:date>
    <item>
      <title>Inventor Vb.Net "Stand Alone" Verses "AddIn"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-quot-stand-alone-quot-verses-quot-addin-quot/m-p/12977144#M6854</link>
      <description>&lt;P&gt;Can anybody help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following Vb.Net code that works great with a "Stand Alone" appiclation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Sub GetTubeDimensions(oDoc)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Dim oCompDef As PartComponentDefinition = oDoc.ComponentDefinition&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Dim oSketch As PlanarSketch = Nothing&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;For Each oSketch In oCompDef.Sketches&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Dim oSketchCircles As SketchCircles = oSketch.SketchCircles&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Dim oSketchCircle As SketchCircle&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;If oSketchCircles.Count = 2 Then&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;For Each oSketchCircle In oSketchCircles&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Counter += 1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Dim oDia As Double = (oSketchCircle.Radius * 2) * 10&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;IMsgbox(oDia)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;End If&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;End Sub&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I use the above code in a Inventor Vb.Net "AddIn" the code does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know how the code needs modifying to make it work in an "AddIn"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 13:25:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-quot-stand-alone-quot-verses-quot-addin-quot/m-p/12977144#M6854</guid>
      <dc:creator>isocam</dc:creator>
      <dc:date>2024-08-23T13:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Vb.Net "Stand Alone" Verses "AddIn"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-quot-stand-alone-quot-verses-quot-addin-quot/m-p/12977380#M6855</link>
      <description>&lt;P&gt;us this in your module:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mports Inventor&lt;BR /&gt;Imports System.Reflection&lt;/P&gt;
&lt;P&gt;Module Module1&lt;/P&gt;
&lt;P&gt;Sub GetTubeDimensions(oDoc As PartDocument)&lt;BR /&gt;Dim oCompDef As PartComponentDefinition = oDoc.ComponentDefinition&lt;/P&gt;
&lt;P&gt;Dim oSketch As PlanarSketch = Nothing&lt;/P&gt;
&lt;P&gt;For Each oSketch In oCompDef.Sketches&lt;BR /&gt;Dim oSketchCircles As SketchCircles = oSketch.SketchCircles&lt;/P&gt;
&lt;P&gt;Dim oSketchCircle As SketchCircle&lt;/P&gt;
&lt;P&gt;If oSketchCircles.Count = 2 Then&lt;BR /&gt;For Each oSketchCircle In oSketchCircles&lt;BR /&gt;''Counter += 1&lt;/P&gt;
&lt;P&gt;Dim oDia As Double = (oSketchCircle.Radius * 2) * 10&lt;/P&gt;
&lt;P&gt;MsgBox(oDia)&lt;BR /&gt;Next&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;End Sub&lt;/P&gt;
&lt;P&gt;End Module&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 14:51:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-quot-stand-alone-quot-verses-quot-addin-quot/m-p/12977380#M6855</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2024-08-23T14:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Vb.Net "Stand Alone" Verses "AddIn"</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-quot-stand-alone-quot-verses-quot-addin-quot/m-p/12977418#M6856</link>
      <description>&lt;P&gt;unzip this to your add-in folder&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 15:09:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-quot-stand-alone-quot-verses-quot-addin-quot/m-p/12977418#M6856</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2024-08-23T15:09:38Z</dc:date>
    </item>
  </channel>
</rss>

