vb.net and selection sets

Discussion in 'AutoCAD' started by Korry Ritsma, Aug 18, 2004.

  1. Korry Ritsma

    Korry Ritsma Guest

    Hi
    I am using Vb.net and am updating programs written in VBA and VB5 and am
    having
    a problem with selections sets

    the lines of code that I am sending are

    Dim objSS As AutoCAD.AcadSelectionSet

    Dim intCodes() As Integer
    'Dim varCodeValues(3) As string
    Dim varCodeValues(3) As Object

    intCodes(0) = 8 : varCodeValues(0) = G1_ChainageTextLayer 'Layer id
    intCodes(1) = 7 : varCodeValues(1) = G1_ChainageTextStyle 'text style
    intCodes(2) = 6 : varCodeValues(2) = G1_ChainageLineType 'line type
    intCodes(3) = 62 : varCodeValues(3) = Str(G1_ChainageTextColour) 'text
    colour


    'Cant get the following to work - has problems with the filter
    'Had it working in Vb5
    objSS.Select(AutoCAD.AcSelect.acSelectionSetAll, , , intCodes,
    varCodeValues)
    ' Returns the message
    ' Additional information:Invalid argument FilterType in Select


    Any help would be much appreciated
    Cheers Korry
     
    Korry Ritsma, Aug 18, 2004
    #1
  2. Dim IntCodes() As Short

    or whatever VB.NET's type is for Int16
     
    Bobby C. Jones, Aug 18, 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.