<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311742#M59767</link>
    <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;It should be (ssseetfirst nil nil), and you can do &lt;BR /&gt;
it like this:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ThisDrawing.SendCommand &lt;BR /&gt;
"(sssetfirst nil nil)" &amp;amp; vbLf&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;BR /&gt;
size=2&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;Kevin&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"RolandF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:feletic@pauser.at"&amp;gt;feletic@pauser.at&lt;/A&gt;&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f1969ec.6@WebX.maYIadrTaRb"&amp;gt;news:f1969ec.6@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Thank &lt;BR /&gt;
  you to all.&lt;BR /&gt;Isn't it crazy, there is a pickfirstSelectionSet and you can &lt;BR /&gt;
  not do anything with it.&lt;BR /&gt;Is it possible to use (ssgetfirst nil nil) at the &lt;BR /&gt;
  end of an vbaprogramm in any way?&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Tue, 28 Oct 2003 08:21:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-10-28T08:21:36Z</dc:date>
    <item>
      <title>PickfirstSelectionSet</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311734#M59759</link>
      <description>&lt;P&gt;I have a little problem, i like to use the PickfirstSelectionSet.&lt;BR /&gt;&lt;BR /&gt;
When you select the objects before you start the program you will see the grips  and the selection.&lt;BR /&gt;&lt;BR /&gt;
Now i want to clear the grips and the selection.&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;Is this possible with VBA? I could't find anything, maybe it is possible with vlisp?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2003 04:31:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311734#M59759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-27T04:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: PickfirstSelectionSet</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311735#M59760</link>
      <description>&lt;P&gt;OK, i forgot to tell you a little bit more.&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;I want to start the vba-program with a button on a toolbar&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;First i created a, for example, Test.mnu&lt;BR /&gt;&lt;BR /&gt;
  I have an Button like this&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;ID_CopyLayCurr [_Button("Copy to current Layer", "CopyLayCurr.bmp", &lt;BR /&gt;
  "CopyLayCurr.bmp")]^C^CCoLayCur;&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt; and a Test.mnl with this&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;(defun c:CoLayCur (/) (vla-runmacro(vlax-get-acad-object) "acad.dvb!modify.CopyLayerCurrent"))&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;When i select some objects befor the command, the objects will be selected &lt;BR /&gt;
  after the command.&lt;BR /&gt;&lt;BR /&gt;
  What do i have to do that i can use the pickfirstselectionset with a toolbar?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2003 05:30:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311735#M59760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-27T05:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: PickfirstSelectionSet</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311736#M59761</link>
      <description>Will the "ActiveSelectionSet" property help. Here are some things you can do&lt;BR /&gt;
with it.&lt;BR /&gt;
&lt;BR /&gt;
Gary&lt;BR /&gt;
&lt;BR /&gt;
Dim oEnt As AcadEntity&lt;BR /&gt;
&lt;BR /&gt;
MsgBox ThisDrawing.ActiveSelectionSet.Count&lt;BR /&gt;
ThisDrawing.ActiveSelectionSet.Highlight False&lt;BR /&gt;
ThisDrawing.ActiveSelectionSet.Clear&lt;BR /&gt;
&lt;BR /&gt;
For Each oEnt In ThisDrawing.ActiveSelectionSet&lt;BR /&gt;
    ThisDrawing.ActiveSelectionSet.RemoveItems oEnt&lt;BR /&gt;
Next&lt;BR /&gt;
&lt;BR /&gt;
ThisDrawing.ActiveSelectionSet.Erase</description>
      <pubDate>Mon, 27 Oct 2003 06:29:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311736#M59761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-27T06:29:21Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311737#M59762</link>
      <description>&lt;P&gt;Hallo Gary,&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;this is not the answer to this problem, sorry.&lt;BR /&gt;&lt;BR /&gt;
  The ActiveSelectionSet returns the same as the PickfirstSelectionSet.&lt;BR /&gt;&lt;BR /&gt;
  The problem is, that i don't know how to start a vbaprogramm with a button at &lt;BR /&gt;
  the toolbar.&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;When i set a command with&lt;BR /&gt;&lt;BR /&gt;
  &lt;EM&gt;(defun c:CoLayCur (/) (vla-runmacro(vlax-get-acad-object) "acad.dvb!modify.CopyLayerCurrent"))&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;
  the command starts with the selection but the selection will not be cleared &lt;BR /&gt;
  after the command.&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;When i use following to set a command&lt;BR /&gt;&lt;BR /&gt;
  &lt;EM&gt;(defun c:colaycur (/) (command "_-vbarun" "modify.CopyLayerCurrent"))&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;
  the selection will be cleared and i have to select the objects again.&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;Therefore my question, i can not believe that there is no one who had this &lt;BR /&gt;
  problem before.&lt;BR /&gt;&lt;BR /&gt;
  I try to find a solution since four days but nobody could help me till today.&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;So please &lt;STRONG&gt;HELP&lt;/STRONG&gt; me.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2003 22:51:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311737#M59762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-27T22:51:28Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311738#M59763</link>
      <description>Roland,&lt;BR /&gt;
&lt;BR /&gt;
I don't use vlisp very much, but I don't think you need the statement:&lt;BR /&gt;
(vlax-get-acad-object)&lt;BR /&gt;
&lt;BR /&gt;
I always use vl-vbarun, something like this:&lt;BR /&gt;
(defun c:CL1 (/) (vl-vbarun "modify.CopyLayerCurrent"))&lt;BR /&gt;
&lt;BR /&gt;
A VBA program can be loaded (without the pesky dialog box) something like&lt;BR /&gt;
this:&lt;BR /&gt;
(vl-vbaload  "C:\\Test\\My_VBA_Program.dvb")&lt;BR /&gt;
&lt;BR /&gt;
I'm not sure I fully understand your problem but I hope this helps.&lt;BR /&gt;
&lt;BR /&gt;
Gary</description>
      <pubDate>Tue, 28 Oct 2003 04:40:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311738#M59763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-28T04:40:18Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311739#M59764</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Roland,&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I believe you are out of luck on this with what's &lt;BR /&gt;
currently available in the VBA object model. You can look into the .Highlight &lt;BR /&gt;
method for selection sets, but I think you will find (as I did) that this does &lt;BR /&gt;
not sufficiently 'deselect' objects. The objects will be deselected, but the &lt;BR /&gt;
grips will still be visible (akin to hitting the escape key only once in 2002 &lt;BR /&gt;
products). I experience the same behavior you see, and have looked for a work &lt;BR /&gt;
around too. Seems like we need a .Gripped property that we could set to false at &lt;BR /&gt;
the end of a macro in order to make this work.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;BR /&gt;
size=2&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;Kevin&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"RolandF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:feletic@pauser.at"&amp;gt;feletic@pauser.at&lt;/A&gt;&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f1969ec.2@WebX.maYIadrTaRb"&amp;gt;news:f1969ec.2@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;P&gt;Hallo Gary,&lt;/P&gt;&lt;BR /&gt;
  &lt;P&gt;this is not the answer to this problem, sorry.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;The &lt;BR /&gt;
  ActiveSelectionSet returns the same as the &lt;BR /&gt;
  PickfirstSelectionSet.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;The problem is, that i don't know how to &lt;BR /&gt;
  start a vbaprogramm with a button at &lt;BR /&gt;&amp;nbsp;&amp;nbsp;the toolbar.&lt;/P&gt;&lt;BR /&gt;
  &lt;P&gt;When i set a command with&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;EM&gt;(defun c:CoLayCur (/) &lt;BR /&gt;
  (vla-runmacro(vlax-get-acad-object) &lt;BR /&gt;
  "acad.dvb!modify.CopyLayerCurrent"))&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;the command starts &lt;BR /&gt;
  with the selection but the selection will not be cleared &lt;BR /&gt;&amp;nbsp;&amp;nbsp;after &lt;BR /&gt;
  the command.&lt;/P&gt;&lt;BR /&gt;
  &lt;P&gt;When i use following to set a command&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;EM&gt;(defun c:colaycur &lt;BR /&gt;
  (/) (command "_-vbarun" "modify.CopyLayerCurrent"))&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;the &lt;BR /&gt;
  selection will be cleared and i have to select the objects again.&lt;/P&gt;&lt;BR /&gt;
  &lt;P&gt;Therefore my question, i can not believe that there is no one who had this &lt;BR /&gt;
  &lt;BR /&gt;&amp;nbsp;&amp;nbsp;problem before.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;I try to find a solution since &lt;BR /&gt;
  four days but nobody could help me till today.&lt;/P&gt;&lt;BR /&gt;
  &lt;P&gt;So please &lt;STRONG&gt;HELP&lt;/STRONG&gt; me.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 28 Oct 2003 05:43:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311739#M59764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-28T05:43:25Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311740#M59765</link>
      <description>heres a notes i found in past posts here via google, author unknown&lt;BR /&gt;
&lt;BR /&gt;
"vla-runmacro will prevent you from picking on screen while a userform is&lt;BR /&gt;
hidden&lt;BR /&gt;
as you say.  As I understand it, this is because it causes your VBA macro to&lt;BR /&gt;
be&lt;BR /&gt;
run in the application context rather than in the document context.  If you&lt;BR /&gt;
need&lt;BR /&gt;
to be able to do this, the easiest fix is to use vl-vbarun.  However, there&lt;BR /&gt;
are&lt;BR /&gt;
a couple of important points to note:&lt;BR /&gt;
&lt;BR /&gt;
vla-runmacro is the only method I am aware of that will allow you to use the&lt;BR /&gt;
PickFirstSelectionSet, and it is also the only method I know of that will&lt;BR /&gt;
allow&lt;BR /&gt;
you to click a toolbar button while running a vba macro without crashing the&lt;BR /&gt;
macro."&lt;BR /&gt;
&lt;BR /&gt;
basically i don't think they have any good way to start vba from lisp.&lt;BR /&gt;
either way you use has problems, too many print statements on command line&lt;BR /&gt;
etc....&lt;BR /&gt;
sadly it doesn't seem like they plan to fix any of it in the near future&lt;BR /&gt;
either.&lt;BR /&gt;
&lt;BR /&gt;
if you just need to clear your selection set you can (ssgetfirst nil nil) at&lt;BR /&gt;
the end of your lisp.&lt;BR /&gt;
hth&lt;BR /&gt;
mark&lt;BR /&gt;
&lt;BR /&gt;
"RolandF" &lt;FELETIC&gt; wrote in message&lt;BR /&gt;
news:f1969ec.2@WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Hallo Gary,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; So please HELP me.&lt;BR /&gt;
&amp;gt;&lt;/FELETIC&gt;</description>
      <pubDate>Tue, 28 Oct 2003 05:53:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311740#M59765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-28T05:53:22Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311741#M59766</link>
      <description>Thank you to all.&lt;BR /&gt;&lt;BR /&gt;
Isn't it crazy, there is a pickfirstSelectionSet and you can not do anything with it.&lt;BR /&gt;&lt;BR /&gt;
Is it possible to use (ssgetfirst nil nil) at the end of an vbaprogramm in any way?</description>
      <pubDate>Tue, 28 Oct 2003 06:10:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311741#M59766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-28T06:10:55Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311742#M59767</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;It should be (ssseetfirst nil nil), and you can do &lt;BR /&gt;
it like this:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ThisDrawing.SendCommand &lt;BR /&gt;
"(sssetfirst nil nil)" &amp;amp; vbLf&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&lt;FONT face="Arial"&gt;&lt;BR /&gt;
size=2&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;Kevin&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"RolandF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:feletic@pauser.at"&amp;gt;feletic@pauser.at&lt;/A&gt;&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f1969ec.6@WebX.maYIadrTaRb"&amp;gt;news:f1969ec.6@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Thank &lt;BR /&gt;
  you to all.&lt;BR /&gt;Isn't it crazy, there is a pickfirstSelectionSet and you can &lt;BR /&gt;
  not do anything with it.&lt;BR /&gt;Is it possible to use (ssgetfirst nil nil) at the &lt;BR /&gt;
  end of an vbaprogramm in any way?&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 28 Oct 2003 08:21:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311742#M59767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-28T08:21:36Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311743#M59768</link>
      <description>I believe the author was me, and I only got it half right.  vla-runmacro&lt;BR /&gt;
actually executes your macro in the DOCUMENT context (not the application&lt;BR /&gt;
context).  *hangs head*&lt;BR /&gt;
&lt;BR /&gt;
Note to self:  If you only think you know the answer, don't post. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Mark Propst" &lt;MARK-AT-ATRENG-DOT-COM&gt; wrote in message&lt;BR /&gt;
news:412CA64AC804AD6E874EB5EF76622BE6@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; heres a notes i found in past posts here via google, author unknown&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "vla-runmacro will prevent you from picking on screen while a userform is&lt;BR /&gt;
&amp;gt; hidden&lt;BR /&gt;
&amp;gt; as you say.  As I understand it, this is because it causes your VBA macro to&lt;BR /&gt;
&amp;gt; be&lt;BR /&gt;
&amp;gt; run in the application context rather than in the document context.  If you&lt;BR /&gt;
&amp;gt; need&lt;BR /&gt;
&amp;gt; to be able to do this, the easiest fix is to use vl-vbarun.  However, there&lt;BR /&gt;
&amp;gt; are&lt;BR /&gt;
&amp;gt; a couple of important points to note:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; vla-runmacro is the only method I am aware of that will allow you to use the&lt;BR /&gt;
&amp;gt; PickFirstSelectionSet, and it is also the only method I know of that will&lt;BR /&gt;
&amp;gt; allow&lt;BR /&gt;
&amp;gt; you to click a toolbar button while running a vba macro without crashing the&lt;BR /&gt;
&amp;gt; macro."&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; basically i don't think they have any good way to start vba from lisp.&lt;BR /&gt;
&amp;gt; either way you use has problems, too many print statements on command line&lt;BR /&gt;
&amp;gt; etc....&lt;BR /&gt;
&amp;gt; sadly it doesn't seem like they plan to fix any of it in the near future&lt;BR /&gt;
&amp;gt; either.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; if you just need to clear your selection set you can (ssgetfirst nil nil) at&lt;BR /&gt;
&amp;gt; the end of your lisp.&lt;BR /&gt;
&amp;gt; hth&lt;BR /&gt;
&amp;gt; mark&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "RolandF" &lt;FELETIC&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:f1969ec.2@WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Hallo Gary,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; So please HELP me.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/FELETIC&gt;&lt;/MARK-AT-ATRENG-DOT-COM&gt;</description>
      <pubDate>Tue, 28 Oct 2003 12:57:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311743#M59768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-28T12:57:39Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311744#M59769</link>
      <description>&amp;gt; Note to self:  If you only think you know the answer, don't post. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
I disagree.  The rest of the group can tell me if I need to change my&lt;BR /&gt;
position.  There have been several times where I've almost held my tongue&lt;BR /&gt;
because it wasn't my area of expertise, but my answer then helped the person&lt;BR /&gt;
find the rest of the answer, or triggered someone more knowledgeable to&lt;BR /&gt;
rebut my half-truth, and thus answer the original question....&lt;BR /&gt;
&lt;BR /&gt;
I say since it's a discussion group and not a classroom, if you think you're&lt;BR /&gt;
reasonably close to right, fire away....</description>
      <pubDate>Tue, 28 Oct 2003 13:27:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311744#M59769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-28T13:27:54Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311745#M59770</link>
      <description>Thank you, Terry.&lt;BR /&gt;&lt;BR /&gt;
The command can be also (sssetfirst nil).&lt;BR /&gt;&lt;BR /&gt;
But, is it possible to send this command without sendcommand.&lt;BR /&gt;&lt;BR /&gt;
Because when i do it with sendcommand i will get two lines in the commandline which maybe confuse some users.&lt;BR /&gt;&lt;BR /&gt;
If it is not possible, it is OK. I just want to know.&lt;BR /&gt;&lt;BR /&gt;
Roland</description>
      <pubDate>Tue, 28 Oct 2003 21:51:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311745#M59770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-28T21:51:40Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311746#M59771</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I don't know of a way offhand using vba/lisp right &lt;BR /&gt;
out of the box. You might have a look at &lt;A&gt;&lt;BR /&gt;
href="http://www.acadx.com"&amp;gt;http://www.acadx.com&lt;/A&gt;, look for &lt;BR /&gt;
VLAX.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Kevin&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"RolandF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:feletic@pauser.at"&amp;gt;feletic@pauser.at&lt;/A&gt;&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f1969ec.10@WebX.maYIadrTaRb"&amp;gt;news:f1969ec.10@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Thank &lt;BR /&gt;
  you, Terry.&lt;BR /&gt;The command can be also (sssetfirst nil).&lt;BR /&gt;But, is it &lt;BR /&gt;
  possible to send this command without sendcommand.&lt;BR /&gt;Because when i do it &lt;BR /&gt;
  with sendcommand i will get two lines in the commandline which maybe confuse &lt;BR /&gt;
  some users.&lt;BR /&gt;If it is not possible, it is OK. I just want to &lt;BR /&gt;
know.&lt;BR /&gt;Roland&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 29 Oct 2003 05:13:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311746#M59771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-29T05:13:06Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311747#M59772</link>
      <description>I know AcadX, it is a great tool, would like to have it for 2004, hope it comes soon.&lt;BR /&gt;&lt;BR /&gt;
But i think i've got it. Here is the answer:&lt;BR /&gt;&lt;BR /&gt;
(defun c:CoLayCur (/) (vla-runmacro(vlax-get-acad-object) "acad.dvb!modify.CopyLayerCurrent")(sssetfirst nil)(princ))&lt;BR /&gt;&lt;BR /&gt;
Roland</description>
      <pubDate>Wed, 29 Oct 2003 05:46:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311747#M59772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-29T05:46:00Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311748#M59773</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;good idea Roland - thanks for sharing&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;BR /&gt;Kevin&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"RolandF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:feletic@pauser.at"&amp;gt;feletic@pauser.at&lt;/A&gt;&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:f1969ec.12@WebX.maYIadrTaRb"&amp;gt;news:f1969ec.12@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;I &lt;BR /&gt;
  know AcadX, it is a great tool, would like to have it for 2004, hope it comes &lt;BR /&gt;
  soon.&lt;BR /&gt;But i think i've got it. Here is the answer:&lt;BR /&gt;(defun c:CoLayCur (/) &lt;BR /&gt;
  (vla-runmacro(vlax-get-acad-object) &lt;BR /&gt;
  "acad.dvb!modify.CopyLayerCurrent")(sssetfirst &lt;BR /&gt;
nil)(princ))&lt;BR /&gt;Roland&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 29 Oct 2003 07:47:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311748#M59773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-10-29T07:47:41Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311749#M59774</link>
      <description>&lt;P&gt;OK, i am back again. I hope that there was someone interested in this post.&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;No i think i know a little bit more about preselecting.&lt;/P&gt;&lt;BR /&gt;
&lt;UL&gt;&lt;BR /&gt;
  &lt;LI&gt;Do not use the PICKFIRSTSELECTIONSET if you want to use the selected items&lt;/LI&gt;&lt;BR /&gt;
  &lt;LI&gt;Just use the SS.SelectOnScreen FilterType, FiterData&lt;/LI&gt;&lt;BR /&gt;
  &lt;LI&gt;and use i.e. (defun c:CoLayCur (/) (vla-runmacro(vlax-get-acad-object) "acad.dvb!modify.CopyLayerCurrent")) &lt;BR /&gt;
    for the toolbar-button &lt;/LI&gt;&lt;BR /&gt;
&lt;/UL&gt;&lt;BR /&gt;
&lt;P&gt;Like you see at the comments above, if you use PickfirstSelectionSet and vla-runmacro, &lt;BR /&gt;
  the previous selection will not be cleared after the command.&lt;BR /&gt;&lt;BR /&gt;
  If you use a nomal SelectionSet you can use Filter or not, and the best, the &lt;BR /&gt;
  objects you've selected before will be deselect automatically after the command. &lt;BR /&gt;
  It's great, isn't it?&lt;/P&gt;&lt;BR /&gt;
&lt;P&gt;Roland&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2003 22:13:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/pickfirstselectionset/m-p/311749#M59774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-11-05T22:13:49Z</dc:date>
    </item>
  </channel>
</rss>

