<?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: VBA - LIST COMMAND in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294035#M19132</link>
    <description>Why not access the properties directly, such as obj.Layer, obj.Center, and so on?</description>
    <pubDate>Tue, 08 Jul 2008 22:20:31 GMT</pubDate>
    <dc:creator>dgorsman</dc:creator>
    <dc:date>2008-07-08T22:20:31Z</dc:date>
    <item>
      <title>VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294032#M19129</link>
      <description>Is there a VBA equivalent to the LIST command in autoCAD?&lt;BR /&gt;
&lt;BR /&gt;
Liz</description>
      <pubDate>Mon, 07 Jul 2008 14:48:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294032#M19129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-07T14:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294033#M19130</link>
      <description>Have you considered using SendCommand ??  You could pass it "List" and the entity handle.&lt;BR /&gt;
&lt;BR /&gt;
Andrew</description>
      <pubDate>Tue, 08 Jul 2008 10:47:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294033#M19130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-08T10:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294034#M19131</link>
      <description>I'm actually trying to do the opposite.  I'm creating a program that runs through each object and exports the data to excel.  So i'm trying to access the LIST command data in another way.</description>
      <pubDate>Tue, 08 Jul 2008 20:57:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294034#M19131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-08T20:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294035#M19132</link>
      <description>Why not access the properties directly, such as obj.Layer, obj.Center, and so on?</description>
      <pubDate>Tue, 08 Jul 2008 22:20:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294035#M19132</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2008-07-08T22:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294036#M19133</link>
      <description>i agree with dgorsman, if know all of the object types you can access their properties.  otherwise maybe you could log the command window and then access the logged file to get results from the sendcommand list.</description>
      <pubDate>Tue, 08 Jul 2008 22:29:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294036#M19133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-08T22:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294037#M19134</link>
      <description>I am doing that for the AutoCAD objects.  But I am also trying to do this with objects created in Bentley AutoPLANT.  The call commands are different for those objects and are proving difficult.  That method is leading me in a direction I don't like, and LIST still provides all the useful information.  there is an issue regarding the handle of the objects when I try using the AutoPLANT references.   I would prefer to use a routine similar to LIST.&lt;BR /&gt;
&lt;BR /&gt;
Another thought: Does anyone know how to see the code behind the list command?</description>
      <pubDate>Tue, 08 Jul 2008 23:00:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294037#M19134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-08T23:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294038#M19135</link>
      <description>that would be a useful routine to cycle through an unknown object's properties and methods...you'd think there'd be a way... if all else fails maybe set the logfile on and set the command echo off and run the list command and search backward through the log file for the last issued list command and its all string manipulation from there.. maybe useful too is the lisp (entget(car(entsel))) for dxf codes as gary recently posted&lt;BR /&gt;
&lt;BR /&gt;
hth&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: cadger

Message was edited by: cadger</description>
      <pubDate>Wed, 09 Jul 2008 01:08:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294038#M19135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-09T01:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294039#M19136</link>
      <description>If there isn't a COM interface available for the AutoPLANT objects (I think there is one for the structural part), you are probably SOL.  It uses custom, non-AutoCAD objects with their own set of properties.  You might make better progress reading off the project database.</description>
      <pubDate>Wed, 09 Jul 2008 14:47:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294039#M19136</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2008-07-09T14:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294040#M19137</link>
      <description>How can I do that? - sorry still kinda green at this</description>
      <pubDate>Wed, 09 Jul 2008 15:06:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294040#M19137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-09T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294041#M19138</link>
      <description>Try asking and searching over in the ADO/Connectivity group - this is their bread-and-butter.  Pulling stuff from a database is not for the faint of heart, and will require up-front planning before any code is written.</description>
      <pubDate>Wed, 09 Jul 2008 18:28:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294041#M19138</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2008-07-09T18:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294042#M19139</link>
      <description>ok then lets backtrack a sec.  How can I send a handle to the list command?  I'm thinking if i sort through the objects for each object run the command and send the current handle to it. Then extract the information from the command box as we discussed.</description>
      <pubDate>Wed, 09 Jul 2008 19:28:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294042#M19139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-09T19:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294043#M19140</link>
      <description>Hi,In AutoCAD rum VBAIDE. Create an empty project. Go to Extras - Add &lt;BR /&gt;
references, select the file ps3d_com.arx in the Prg folder. Paste the &lt;BR /&gt;
following lines and store the macro.Forget using LIST for the AutoPLANT &lt;BR /&gt;
structural elements - using this COM interface can give you all information &lt;BR /&gt;
you need.As long as you dont know which AutoPLANT structural entity you are &lt;BR /&gt;
using it is the best way to make use of Ks_ComProperty.Run the macro using &lt;BR /&gt;
F5! Make yourself familiar with VBA, it can be used easier than Lisp. And &lt;BR /&gt;
from this it is only a small step to VB.NET to create professional &lt;BR /&gt;
applications!DominikSub Example_ReadFrom()        Dim Result As Long &lt;BR /&gt;
Dim Entity As AcadEntity    Dim Selection As Ks_ComSelection    Dim Prop As &lt;BR /&gt;
Ks_ComProperty        Set Selection = New Ks_ComSelection    Set Prop = New &lt;BR /&gt;
Ks_ComProperty        Set Entity = Selection.PickObject(vbCrLf &amp;amp; "Select &lt;BR /&gt;
object: ", Result)        Prop.ReadFrom Entity &lt;BR /&gt;
ThisDrawing.Utility.Prompt vbCrLf &amp;amp; Prop.Name    ThisDrawing.Utility.Prompt &lt;BR /&gt;
vbCrLf &amp;amp; Prop.InternalName        Prop.Note1 = "Note 1"    Prop.Note2 = &lt;BR /&gt;
"Note 2"        Prop.WriteTo Entity        ThisDrawing.Utility.Prompt vbCrLf &lt;BR /&gt;
&amp;amp; Prop.Name    ThisDrawing.Utility.Prompt vbCrLf &amp;amp; Prop.Note1 &lt;BR /&gt;
ThisDrawing.Utility.Prompt vbCrLf &amp;amp; Prop.Note2    End Sub&lt;BHAMLIZARD&gt; &lt;BR /&gt;
schrieb im Newsbeitrag news:5977465@discussion.autodesk.com...&lt;BR /&gt;
ok then lets backtrack a sec.  How can I send a handle to the list command? &lt;BR /&gt;
I'm thinking if i sort through the objects for each object run the command &lt;BR /&gt;
and send the current handle to it. Then extract the information from the &lt;BR /&gt;
command box as we discussed.&lt;/BHAMLIZARD&gt;</description>
      <pubDate>Wed, 09 Jul 2008 20:26:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294043#M19140</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-09T20:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294044#M19141</link>
      <description>When you are building your command text string to pass to SendCommand, and you get to the part of the command that wants an entity to be selected, do somehting like this:&lt;BR /&gt;
&lt;BR /&gt;
strCommand = strCommand &amp;amp; "(handent """ &amp;amp; ent.Handle &amp;amp; """)" &amp;amp; vbCr&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
&lt;BR /&gt;
Andrew</description>
      <pubDate>Thu, 10 Jul 2008 06:54:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294044#M19141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-10T06:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294045#M19142</link>
      <description>Perhaps this example might help point you in the right direction?&lt;BR /&gt;
&lt;BR /&gt;
Joe ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BHAMLIZARD&gt; wrote in message news:5977465@discussion.autodesk.com...&lt;BR /&gt;
ok then lets backtrack a sec.  How can I send a handle to the list command? &lt;BR /&gt;
I'm thinking if i sort through the objects for each object run the command &lt;BR /&gt;
and send the current handle to it. Then extract the information from the &lt;BR /&gt;
command box as we discussed.&lt;/BHAMLIZARD&gt;</description>
      <pubDate>Thu, 10 Jul 2008 13:18:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294045#M19142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-10T13:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294046#M19143</link>
      <description>Ok I think there is enough to work with here.  Thanks for all your help guys!</description>
      <pubDate>Thu, 10 Jul 2008 16:25:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294046#M19143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-10T16:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - LIST COMMAND</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294047#M19144</link>
      <description>Hai&lt;BR /&gt;
Loop through all the entites inthe drawing to get list of objects from drawing</description>
      <pubDate>Wed, 30 Jul 2008 04:13:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-list-command/m-p/2294047#M19144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-07-30T04:13:45Z</dc:date>
    </item>
  </channel>
</rss>

