<?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: For loop stops at step 200 in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/for-loop-stops-at-step-200/m-p/12411333#M1137</link>
    <description>&lt;P&gt;Can you not simply do a Data Extraction?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fkellogg_0-1701363766781.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1299298i816CB2029C435EFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fkellogg_0-1701363766781.png" alt="fkellogg_0-1701363766781.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 17:03:26 GMT</pubDate>
    <dc:creator>fkellogg</dc:creator>
    <dc:date>2023-11-30T17:03:26Z</dc:date>
    <item>
      <title>For loop stops at step 200</title>
      <link>https://forums.autodesk.com/t5/vba-forum/for-loop-stops-at-step-200/m-p/12411237#M1136</link>
      <description>&lt;P&gt;I have really simple document. There is only 1116 circles on one layer.&lt;/P&gt;&lt;P&gt;I want to transfer radius of each circle and wrote really simple VBA code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Sub radiusOfCircles()
    Dim ent As AcadEntity
    For Each ent In ThisDrawing.ModelSpace
      If TypeOf ent Is AcadCircle Then
        Debug.Print ent.Radius
      End If
    Next
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I wanted do copy from debug window. If I run it, I get only 199 objects. I have no idea why.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 16:19:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/for-loop-stops-at-step-200/m-p/12411237#M1136</guid>
      <dc:creator>erhan.lale</dc:creator>
      <dc:date>2023-11-30T16:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: For loop stops at step 200</title>
      <link>https://forums.autodesk.com/t5/vba-forum/for-loop-stops-at-step-200/m-p/12411333#M1137</link>
      <description>&lt;P&gt;Can you not simply do a Data Extraction?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fkellogg_0-1701363766781.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1299298i816CB2029C435EFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fkellogg_0-1701363766781.png" alt="fkellogg_0-1701363766781.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 17:03:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/for-loop-stops-at-step-200/m-p/12411333#M1137</guid>
      <dc:creator>fkellogg</dc:creator>
      <dc:date>2023-11-30T17:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: For loop stops at step 200</title>
      <link>https://forums.autodesk.com/t5/vba-forum/for-loop-stops-at-step-200/m-p/12411334#M1138</link>
      <description>&lt;P&gt;It's a limitation of the IDE. Acad also has this limitation. The command line (F2) history can only store 400 lines. Write the data to Excel instead.&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;Sub radiusOfCircles()

    Dim xl As Excel.Application
    Dim wb As Excel.Workbook
    Dim sht As Excel.Worksheet
    Set xl = GetXL()
    Set wb = xl.Workbooks.Add
    Set sht = wb.Worksheets(1)
    sht.Name = "circles"
    Dim i As Integer
    
    sht.Cells(1, "A").Value = "Handle"
    sht.Cells(1, "B").Value = "Radius"
    i = 2
    
    Dim ent As AcadEntity
    For Each ent In ThisDrawing.ModelSpace
      If TypeOf ent Is AcadCircle Then
        sht.Cells(i, "A").Value = ent.Handle
        sht.Cells(i, "B").Value = ent.radius
      End If
      i = i + 1
    Next
    wb.SaveAs "C:\Temp\RadiusOfCircles.xlsx"
    Set sht = Nothing
    Set wb = Nothing
    Set xl = Nothing
End Sub
Public Function GetXL() As Application
    On Error Resume Next
    Dim xlApp As Application
    Set xlApp = GetObject(, "Excel.Application")
    If xlApp Is Nothing Then
        Set xlApp = CreateObject("Excel.Application")
    End If
    Set GetXL = xlApp
End Function

&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 30 Nov 2023 17:03:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/for-loop-stops-at-step-200/m-p/12411334#M1138</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-11-30T17:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: For loop stops at step 200</title>
      <link>https://forums.autodesk.com/t5/vba-forum/for-loop-stops-at-step-200/m-p/12413039#M1139</link>
      <description>&lt;P&gt;@&lt;SPAN class=""&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7563122" target="_self"&gt;&lt;SPAN class=""&gt;erhan.lale&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;T&lt;/SPAN&gt;hanks for the Solution!&lt;/P&gt;&lt;P&gt;The extent of my knowledge of lisp code is the defun: C thing.&lt;/P&gt;&lt;P&gt;My acaddoc.lsp file is chock full of ways to bypass tedious keystrokes and dialog boxes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun C:cc0 ( ) (command "chamfer" "distance" 0 0 "chamfer" "polyline" )&lt;BR /&gt;(princ "Polyline Chamfer at Distance 0-0" )(princ) )&lt;/P&gt;&lt;P&gt;(defun C:f116 ( ) (command "fillet" "radius" ".6875" "fillet" "Multiple" )&lt;BR /&gt;(princ "Multiple Fillet At 11/16 Inch " )(princ) )&lt;/P&gt;&lt;P&gt;(defun C:n ( ) (command "move" "p")&lt;BR /&gt;(princ "Move Previous" )(princ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All that other code is just gibberish to me. No offense intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;CFK&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 12:23:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/for-loop-stops-at-step-200/m-p/12413039#M1139</guid>
      <dc:creator>fkellogg</dc:creator>
      <dc:date>2023-12-01T12:23:26Z</dc:date>
    </item>
  </channel>
</rss>

