<?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 Betreff: SelectOnScreen Win7-64bit  with Version 2011 Acad. in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/selectonscreen-win7-64bit-with-version-2011-acad/m-p/3159716#M12500</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does my code run on your AutoCAD?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2011 20:34:04 GMT</pubDate>
    <dc:creator>Alfred.NESWADBA</dc:creator>
    <dc:date>2011-09-15T20:34:04Z</dc:date>
    <item>
      <title>SelectOnScreen Win7-64bit  with Version 2011 Acad.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selectonscreen-win7-64bit-with-version-2011-acad/m-p/3156626#M12497</link>
      <description>&lt;P&gt;Has anybody used the SelectOnScreen method of creating a selection set in AutoCAD 2011.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using the same VBA code in version 2005-2008 without a problem, so I am guessing the problem is with&lt;/P&gt;&lt;P&gt;version 2011.&amp;nbsp; This is the first time time to this VBA code in Win7-64 Bit with 2011 AutoCad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code snippet below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;' the user is selecting text or Mtext from the screen&lt;/P&gt;&lt;P&gt;If strType = "Text" Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ReDim intFltrCode(3) As Integer&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ReDim varFltrVal(3) As Variant&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; intFltrCode(0) = -4:&amp;nbsp;&amp;nbsp; varFltrVal(0) = "&amp;lt;OR"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; intFltrCode(1) = 0:&amp;nbsp;&amp;nbsp;&amp;nbsp; varFltrVal(1) = "TEXT"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; intFltrCode(2) = 0:&amp;nbsp;&amp;nbsp; varFltrVal(2) = "MTEXT"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; intFltrCode(3) = -4:&amp;nbsp;&amp;nbsp; varFltrVal(3) = "OR&amp;gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;' call selection set function which creates new selection set and erases old&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objSelSet = ChkSelSet(strSetName)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;' Prompts the user to select entity&amp;nbsp; from drawing based on filter&lt;/P&gt;&lt;P&gt;****************************&amp;nbsp; error is generated here ******************************************&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objSelSet.SelectOnScreen intFltrCode, varFltrVal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2011 22:53:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selectonscreen-win7-64bit-with-version-2011-acad/m-p/3156626#M12497</guid>
      <dc:creator>fxcastil</dc:creator>
      <dc:date>2011-09-13T22:53:50Z</dc:date>
    </item>
    <item>
      <title>Betreff: SelectOnScreen Win7-64bit  with Version 2011 Acad.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selectonscreen-win7-64bit-with-version-2011-acad/m-p/3156828#M12498</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; so I am guessing the problem is withversion 2011﻿&lt;/P&gt;&lt;P&gt;Could you please tell us, what problem you do have? What error-message, at least the number?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this code with AutoCAD 2011x64 (on Win7x64):&lt;/P&gt;&lt;PRE&gt;   Dim intFltrCode(0) As Integer
   Dim varFltrVal(0) As Variant
   intFltrCode(0) = 0:   varFltrVal(0) = "TEXT,MTEXT"
         
   Dim objSelSet As AcadSelectionSet
   Set objSelSet = ThisDrawing.SelectionSets.Add("TSTSELSET")
   
   objSelSet.SelectOnScreen intFltrCode, varFltrVal&lt;/PRE&gt;&lt;P&gt;I did not built in the check, if a SelectionSet with this name does exist, so that has to built in.&lt;/P&gt;&lt;P&gt;I show how you can do an "OR"-filter without using "&amp;lt;OR" ..."OR&amp;gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....and my code runs without exception. So I guess that the base of your problem is placed in that part of code you did not show (for example where the SelectionSet is created?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&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>Wed, 14 Sep 2011 06:15:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selectonscreen-win7-64bit-with-version-2011-acad/m-p/3156828#M12498</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2011-09-14T06:15:28Z</dc:date>
    </item>
    <item>
      <title>Betreff: SelectOnScreen Win7-64bit  with Version 2011 Acad.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selectonscreen-win7-64bit-with-version-2011-acad/m-p/3159708#M12499</link>
      <description>&lt;P&gt;The error message is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run Time Error '-2147418113&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AUTOMATION ERROR&lt;/P&gt;&lt;P&gt;CATASTROPHIC FAILURE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2011 20:28:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selectonscreen-win7-64bit-with-version-2011-acad/m-p/3159708#M12499</guid>
      <dc:creator>fxcastil</dc:creator>
      <dc:date>2011-09-15T20:28:41Z</dc:date>
    </item>
    <item>
      <title>Betreff: SelectOnScreen Win7-64bit  with Version 2011 Acad.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selectonscreen-win7-64bit-with-version-2011-acad/m-p/3159716#M12500</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does my code run on your AutoCAD?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2011 20:34:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selectonscreen-win7-64bit-with-version-2011-acad/m-p/3159716#M12500</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2011-09-15T20:34:04Z</dc:date>
    </item>
    <item>
      <title>Betreff: SelectOnScreen Win7-64bit  with Version 2011 Acad.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/selectonscreen-win7-64bit-with-version-2011-acad/m-p/3160990#M12501</link>
      <description>&lt;P&gt;I get the same error with your code as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using you sample&amp;nbsp;code inside a user-form? In other words can you use a button-click to start your lines of code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem seems to be be when&amp;nbsp;using a user-form to allow the operator/user to start the SelectOnScreen method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read other posts about the same problem I am having.&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, 16 Sep 2011 17:07:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/selectonscreen-win7-64bit-with-version-2011-acad/m-p/3160990#M12501</guid>
      <dc:creator>fxcastil</dc:creator>
      <dc:date>2011-09-16T17:07:20Z</dc:date>
    </item>
  </channel>
</rss>

