<?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: Data texts extraction from autocad in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/data-texts-extraction-from-autocad/m-p/11840448#M1712</link>
    <description>Thank you.&lt;BR /&gt;Yes exactly I tried the command dataextraction that gives me my data as csv or xls...file what I'm trying to do now it's to find out a way to extract and filter data dirctly to my dataset from autocad(that why I'm trying using VBA to add such command) and then I have to find out how to separate the line and text information from the recognized drawings then recognize the meaning of text in proximity to the shaped object on the drawing.</description>
    <pubDate>Wed, 22 Mar 2023 20:59:44 GMT</pubDate>
    <dc:creator>yasminezahir20</dc:creator>
    <dc:date>2023-03-22T20:59:44Z</dc:date>
    <item>
      <title>Data texts extraction from autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/data-texts-extraction-from-autocad/m-p/11839877#M1708</link>
      <description>&lt;P&gt;Hi everyone I'm looking for a Data texts extraction from autocad to a an excel file using a command or VBA (here I mean by texts the texts that contain the objects informations) such as shown in this picture below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 17:12:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/data-texts-extraction-from-autocad/m-p/11839877#M1708</guid>
      <dc:creator>yasminezahir20</dc:creator>
      <dc:date>2023-03-22T17:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data texts extraction from autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/data-texts-extraction-from-autocad/m-p/11840037#M1709</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13669914"&gt;@yasminezahir20&lt;/a&gt;&amp;nbsp;just for example:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Sub Testi()
Dim oApp_Excel As Excel.Application
Dim oBook As Excel.workbook
Dim MyObject  As AcadEntity

Set oApp_Excel = CreateObject("EXCEL.APPLICATION")
Set oBook = oApp_Excel.workbooks.Add
oApp_Excel.Visible = True
oApp_Excel.workbooks(oApp_Excel.ActiveWorkbook.Name).Activate
Row = 2
For Each MyObject In ThisDrawing.ModelSpace
    If TypeOf MyObject Is AcadText Or TypeOf MyObject Is AcadMText Then
        If Right(MyObject.TextString, 2) &amp;lt;&amp;gt; "kW" Then 'Filter on partial text contents
            If Len(MyObject.TextString) &amp;gt; 1 Then 'filter on text with lenght higher than 1 char
                oApp_Excel.Sheets(ActiveSheet.Name).Range("A" &amp;amp; Row).Value = MyObject.TextString
                Row = Row + 1
            End If
        End If
    End If
Next
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Please note that the above code extract all text, and Mtext including special format code of Mtext.&lt;/P&gt;&lt;P&gt;You should add to the project libray MS office Excel lib.&lt;/P&gt;&lt;P&gt;If you want to remove special code formatting from Mtext, search on this forum, there is a function for removing special char code.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 18:08:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/data-texts-extraction-from-autocad/m-p/11840037#M1709</guid>
      <dc:creator>grobnik</dc:creator>
      <dc:date>2023-03-22T18:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data texts extraction from autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/data-texts-extraction-from-autocad/m-p/11840178#M1710</link>
      <description>&lt;P&gt;It would be rather unlikely for you to find available VBA code that does exactly you want, while creating a more general-purpose data extraction code is not a trivial work. So, before you starts working on VBA code, or find/hire someone one do it for you, I hope you did tried AutoCAD's built-in data extract tool ( command "DataExtraction"), which is a general-purposed data extracting tool and quite flexible to use. You would only want re-invent a wheel for your specific road conditions when it is really necessary.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 18:59:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/data-texts-extraction-from-autocad/m-p/11840178#M1710</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2023-03-22T18:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data texts extraction from autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/data-texts-extraction-from-autocad/m-p/11840426#M1711</link>
      <description>Thank you very much I'm working with Python (Pandas) now I find out a command for extracting data to a xls or csv file but now I'm trying to extract and filter data dirctly to my dataset from autocad.</description>
      <pubDate>Wed, 22 Mar 2023 20:51:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/data-texts-extraction-from-autocad/m-p/11840426#M1711</guid>
      <dc:creator>yasminezahir20</dc:creator>
      <dc:date>2023-03-22T20:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data texts extraction from autocad</title>
      <link>https://forums.autodesk.com/t5/vba-forum/data-texts-extraction-from-autocad/m-p/11840448#M1712</link>
      <description>Thank you.&lt;BR /&gt;Yes exactly I tried the command dataextraction that gives me my data as csv or xls...file what I'm trying to do now it's to find out a way to extract and filter data dirctly to my dataset from autocad(that why I'm trying using VBA to add such command) and then I have to find out how to separate the line and text information from the recognized drawings then recognize the meaning of text in proximity to the shaped object on the drawing.</description>
      <pubDate>Wed, 22 Mar 2023 20:59:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/data-texts-extraction-from-autocad/m-p/11840448#M1712</guid>
      <dc:creator>yasminezahir20</dc:creator>
      <dc:date>2023-03-22T20:59:44Z</dc:date>
    </item>
  </channel>
</rss>

