<?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: Re: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8798150#M77426</link>
    <description>&lt;P&gt;No, that just writes the output of a command to the system variable USERS1.&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 14:07:36 GMT</pubDate>
    <dc:creator>Ed__Jobe</dc:creator>
    <dc:date>2019-05-17T14:07:36Z</dc:date>
    <item>
      <title>Text Window Access thru VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/348936#M77416</link>
      <description>I would like to know if there is a way to access either the command line or the text window through Visual Basic other than the SendCommand method.  I would like to post a comment to the command line area and not to a popup dialog box as MsgBox does.</description>
      <pubDate>Thu, 31 Jan 2002 14:32:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/348936#M77416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-01-31T14:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Text Window Access thru VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/348937#M77417</link>
      <description>ThisDrawing.Utility.Prompt "My Message to display goes here" &lt;BR /&gt;
&lt;BR /&gt;
Will display the message at the command prompt but not pause for user input. You also need CMDECHO to be ON.</description>
      <pubDate>Thu, 31 Jan 2002 14:38:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/348937#M77417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-01-31T14:38:03Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/348938#M77418</link>
      <description>Thanks!!  It really works!!!</description>
      <pubDate>Thu, 31 Jan 2002 14:51:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/348938#M77418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-01-31T14:51:34Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/348939#M77419</link>
      <description>If you want to make it look like the Command: prompt is clear, use ThisDrawing.Utility.Prompt "my message" &amp;amp; vbCrLf &amp;amp; "Command:" HTH, Ed</description>
      <pubDate>Thu, 31 Jan 2002 15:12:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/348939#M77419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-01-31T15:12:27Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/348940#M77420</link>
      <description>Thank you.  That will come in very handy!</description>
      <pubDate>Fri, 01 Feb 2002 07:12:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/348940#M77420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-02-01T07:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8795203#M77421</link>
      <description>&lt;P&gt;Is there way to capture text from Autocad text window or command line?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 11:40:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8795203#M77421</guid>
      <dc:creator>brian_adams</dc:creator>
      <dc:date>2019-05-16T11:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8795619#M77422</link>
      <description>&lt;P&gt;No, not with AutoCAD VBA/COM APIs, AFAIK.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 14:12:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8795619#M77422</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2019-05-16T14:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8796110#M77423</link>
      <description>&lt;P&gt;But i found it&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dmcinfo.com/latest-thinking/blog/id/247/read-command-line-parameters-from-vba" target="_blank"&gt;https://www.dmcinfo.com/latest-thinking/blog/id/247/read-command-line-parameters-from-vba&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It ain't works ...can't link "&lt;SPAN&gt;Kernel32"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 16:35:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8796110#M77423</guid>
      <dc:creator>brian_adams</dc:creator>
      <dc:date>2019-05-16T16:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8796122#M77424</link>
      <description>&lt;P&gt;Even if you could, those api's don't apply to AutoCAD's command line.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 16:40:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8796122#M77424</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-05-16T16:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8797579#M77425</link>
      <description>&lt;P&gt;Could it be sollution???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-basic-customization/capturing-command-line-output-from-vba/m-p/2717783/highlight/false#M94518" target="_blank"&gt;https://forums.autodesk.com/t5/visual-basic-customization/capturing-command-line-output-from-vba/m-p/2717783/highlight/false#M94518&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I missed some thing it capture emptyness&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 09:54:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8797579#M77425</guid>
      <dc:creator>brian_adams</dc:creator>
      <dc:date>2019-05-17T09:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8798150#M77426</link>
      <description>&lt;P&gt;No, that just writes the output of a command to the system variable USERS1.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 14:07:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8798150#M77426</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-05-17T14:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8798180#M77427</link>
      <description>&lt;P&gt;There is some macros that&amp;nbsp; can capture a lot of things. they works&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/2784367/capture-output-value-from-a-shell-command-in-vba" target="_blank"&gt;https://stackoverflow.com/questions/2784367/capture-output-value-from-a-shell-command-in-vba&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;but any example of text window in AutoCAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 14:21:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8798180#M77427</guid>
      <dc:creator>brian_adams</dc:creator>
      <dc:date>2019-05-17T14:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8798189#M77428</link>
      <description>&lt;P&gt;As &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt; already mentioned, not for AutoCAD VBA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You never stated what you're trying to do. Why do you need to capture the command window text? Perhaps there is an alternative?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 14:24:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8798189#M77428</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-05-17T14:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8798239#M77429</link>
      <description>&lt;P&gt;oh this is dream&lt;/P&gt;
&lt;P&gt;I want to make material report for AECobject in Autocad Architecture&lt;/P&gt;
&lt;P&gt;The only method to calculate&amp;nbsp; fine is command "Materiallist"&lt;/P&gt;
&lt;P&gt;I've made is macro that&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. makes property set deffinition for (AECwall)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.creates property"material"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. serching for AECwall in current drawing&lt;/P&gt;
&lt;P&gt;4. select it and&amp;nbsp; run materiallist command for every AECwall&lt;BR /&gt;5. MiSSED PART(capture value from command line and filtering it) but filtering not a problam&lt;BR /&gt;6. wright it to property&lt;/P&gt;
&lt;P&gt;I made chek wrighting ID of every AECwall to&amp;nbsp;property"material"&amp;nbsp; it works&lt;/P&gt;
&lt;P&gt;so there is&amp;nbsp; another way only I see now&lt;/P&gt;
&lt;P&gt;Manually&amp;nbsp; copy history of autocad window text and copy it to excel file&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;then&amp;nbsp; run another script to capture date&amp;nbsp; &amp;nbsp;and apply it to AECwall&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that how it looks now&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sub materiallist()&lt;/P&gt;
&lt;P&gt;Dim SchedApp As New AecScheduleApplication&lt;BR /&gt;Dim cProps As AecScheduleProperties&lt;BR /&gt;Dim PropSetDefs As AecSchedulePropertySetDefs&lt;BR /&gt;Dim propsetdef As AecSchedulePropertySetDef&lt;BR /&gt;Dim propertyDefs As AecSchedulePropertyDefs&lt;BR /&gt;Dim propertydef As AecSchedulePropertyDef&lt;BR /&gt;Dim propertyset As AecSchedulePropertySet&lt;BR /&gt;Dim propertysets As AecSchedulePropertySets&lt;BR /&gt;Dim obj As AcadObject&lt;BR /&gt;Dim msg As String&lt;BR /&gt;Dim PrSetDefName As String&lt;BR /&gt;Dim propertydefname As String&lt;/P&gt;
&lt;P&gt;PrSetDefName = "Wall_Materiallist"&lt;BR /&gt;propertydefname = "Materiall"&lt;BR /&gt;'_______________________________create property set________________________________&lt;BR /&gt;On Error Resume Next&lt;BR /&gt;' Access the set of property definitions.&lt;BR /&gt;Set propsetdef = PropSetDefs(PrSetDefName)&lt;BR /&gt;' If set of property definitions isn't created then create it.&lt;BR /&gt;If propsetdef Is Nothing Then&lt;BR /&gt;PropSetDefs.Add (PrSetDefName)&lt;BR /&gt;Set PropSetDefs = SchedApp.PropertySetDefs(ThisDrawing.Database)&lt;BR /&gt;Set propsetdef = PropSetDefs(PrSetDefName)&lt;BR /&gt;End If&lt;/P&gt;
&lt;P&gt;' Now add a property definition to the new set of definitions.&lt;BR /&gt;Set propertyDefs = propsetdef.propertyDefs&lt;BR /&gt;On Error Resume Next&lt;BR /&gt;Set propertydef = propertyDefs(propertydefname)&lt;BR /&gt;' If set of property definitions name isn't created then create it.&lt;BR /&gt;If propertydef Is Nothing Then&lt;BR /&gt;propertyDefs.Add (propertydefname)&lt;BR /&gt;Set propertydef = propertyDefs(propertydefname)&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;' Access the definition just created, and set some properties.&lt;BR /&gt;Set propertydef = propertyDefs(propertydefname)&lt;BR /&gt;propertydef.Description = "materiall from materiallst."&lt;BR /&gt;propertydef.Format = "Standard"&lt;BR /&gt;propertydef.Type = aecSchedulePropertyTypeText&lt;/P&gt;
&lt;P&gt;'_________________________________counting materiallist______________________________________&lt;BR /&gt;&lt;BR /&gt;Dim ent As AcadEntity&lt;BR /&gt;Dim geo As AecGeo&lt;BR /&gt;Dim wall As AecWall&lt;BR /&gt;Dim findObj As AcadObject&lt;BR /&gt;Dim point(0 To 2) As Double&lt;BR /&gt;Dim sset As AcadSelectionSet&lt;BR /&gt;&lt;BR /&gt;For Each ent In ThisDrawing.ModelSpace&lt;BR /&gt;If TypeOf ent Is AecWall Then&lt;BR /&gt;Set wall = ent&lt;BR /&gt;Set sset = ThisDrawing.SelectionSets.Add("SS10")&lt;BR /&gt;ObjectID = wall.ObjectID&lt;BR /&gt;Set findObj = ThisDrawing.ObjectIdToObject(ObjectID)&lt;BR /&gt;point(0) = wall.Location(0): point(1) = wall.Location(1): point(2) = wall.Location(2)&lt;BR /&gt;&lt;BR /&gt;sset.SelectAtPoint point&lt;BR /&gt;If sset.Count &amp;gt; 0 Then&lt;BR /&gt;ThisDrawing.Utility.Prompt "ID " &amp;amp; ObjectID&lt;BR /&gt;ThisDrawing.SendCommand "Select p " &amp;amp; vbCrLf&lt;BR /&gt;ThisDrawing.SendCommand "Materiallist" &amp;amp; vbCr &amp;amp; vbCr&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ThisDrawing.Utility.Prompt "ID " &amp;amp; ObjectID&lt;BR /&gt;&lt;BR /&gt;'________________apply property to walls _____________________&lt;BR /&gt;Set propertysets = SchedApp.propertysets(wall)&lt;BR /&gt;' Add a new property set. Notice that the Add method requires&lt;BR /&gt;' a property set definition argument, not a property set.&lt;BR /&gt;propertysets.Add propsetdef&lt;BR /&gt;'___________________________adding value to property set and_____________________&lt;BR /&gt;&lt;BR /&gt;Dim retval As String&lt;BR /&gt;retval = CStr(ObjectID)&lt;BR /&gt;Set propertysets = SchedApp.propertysets(wall)&lt;BR /&gt;On Error Resume Next&lt;BR /&gt;Set propertyset = propertysets.Item("Wall_Materiallist")&lt;BR /&gt;If Not propSet Is Nothing Then&lt;BR /&gt;Set cProps = propertyset.Properties&lt;BR /&gt;cProps.Item("Materiall").Value = retval&lt;BR /&gt;ThisDrawing.SelectionSets("SS10").Delete&lt;BR /&gt;End If&lt;BR /&gt;End If&lt;BR /&gt;Else&lt;BR /&gt;Set ent = Nothing&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;/P&gt;
&lt;P&gt;End Sub&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 14:45:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8798239#M77429</guid>
      <dc:creator>brian_adams</dc:creator>
      <dc:date>2019-05-17T14:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8801223#M77430</link>
      <description>&lt;P&gt;it seems imposible is posible&amp;nbsp; in a very simple way&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-no-function-definition/m-p/8799235#M385349" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-no-function-definition/m-p/8799235#M385349&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 07:30:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/text-window-access-thru-vba/m-p/8801223#M77430</guid>
      <dc:creator>brian_adams</dc:creator>
      <dc:date>2019-05-20T07:30:53Z</dc:date>
    </item>
  </channel>
</rss>

