multiple filters

Discussion in 'AutoCAD' started by elefebvre, Jun 21, 2004.

  1. elefebvre

    elefebvre Guest

    hi,
    i want to filter my selectionset with more then one filter. How do i dod that? I have tried the following but it gives me an error.

    Dim groupcode(0 To 1) As Integer
    Dim datavalue(0 To 1) As Variant
    Dim gpcode, dtvalue As Variant


    groupcode(0) = 0
    datavalue(0) = "INSERT"
    groupcode(1) = 2
    datavalue(1) = "BARHEADER"
    gpcode = groupcode
    dtvalue = datavalue
    On Error Resume Next
    ThisDrawing.SelectionSets.item("blocks").Delete
    On Error GoTo 0
    Set ssetBLK = ThisDrawing.SelectionSets.Add("blocks")
    ssetBLK.Select acSelectionSetAll, , gpcode, dtvalue


    in lisp you can add several types of filters after each other. how do you do that in vba?

    thanks for any help in advance.

    Emmanuel
     
    elefebvre, Jun 21, 2004
    #1
  2. elefebvre

    Jeff Mishler Guest

    See below, my comments are preceeded by '***

    Good Luck,
    Jeff

    that? I have tried the following but it gives me an error.
    ssetBLK.Select acSelectionSetAll, , , groupcode, datavalue
     
    Jeff Mishler, Jun 21, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.