SelectOnScreen Win7-64bit with Version 2011 Acad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Has anybody used the SelectOnScreen method of creating a selection set in AutoCAD 2011.
I have been using the same VBA code in version 2005-2008 without a problem, so I am guessing the problem is with
version 2011. This is the first time time to this VBA code in Win7-64 Bit with 2011 AutoCad.
Code snippet below
*********************************************
' the user is selecting text or Mtext from the screen
If strType = "Text" Then
ReDim intFltrCode(3) As Integer
ReDim varFltrVal(3) As Variant
intFltrCode(0) = -4: varFltrVal(0) = "<OR"
intFltrCode(1) = 0: varFltrVal(1) = "TEXT"
intFltrCode(2) = 0: varFltrVal(2) = "MTEXT"
intFltrCode(3) = -4: varFltrVal(3) = "OR>"
End If
' call selection set function which creates new selection set and erases old
Set objSelSet = ChkSelSet(strSetName)
' Prompts the user to select entity from drawing based on filter
**************************** error is generated here ******************************************
objSelSet.SelectOnScreen intFltrCode, varFltrVal