array problem (type mismatch)

Discussion in 'AutoCAD' started by Craig Barrett, Jun 2, 2004.

  1. I am using ldd4, I need to sort a point group by point raw description and
    write to another point group. I have a problem with the last line,
    pointSetArray is my array. Why do I get a type mismatch for pointSetArray?

    Set NewDermPointGroup = DermPointGroups.Add(I, pointSetArray)

    ----------------------------------------------------------------------------
    Here is the ADD method from the help file.
    RetVal = object.Add(Name, PointList)

    object

    PointGroups
    The object or objects this property applies to.

    GroupName

    String; input-only
    The new point group name.

    PointList

    String; input-only
    The point list.

    RetVal

    PointGroup object
    The newly added PointGroup object.
     
    Craig Barrett, Jun 2, 2004
    #1
  2. Craig Barrett

    Jeff Mishler Guest

    Craig,
    The method is looking for a string value and you are supplying an array, you
    need to convert the point numbers from the array to a useable string format.
    grpPoints = "1-15,17,19,101-206" is a valid string

    HTH,
    Jeff

    BTW, there is a group specifically for LDT customization questions.
     
    Jeff Mishler, Jun 2, 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.