XDATA - Highlight?

Discussion in 'AutoCAD' started by media, Apr 7, 2004.

  1. media

    media Guest

    Hi
    I would like to know how to make a filter on the objects which are
    linked by a xdata. My problem is I want that the program can seek in the
    objects in the screen those which are attached by a xdata (application =
    "test") and which display them in "highlight"..
    Thank you for your assistance
     
    media, Apr 7, 2004
    #1
  2. media

    LochDhu Guest

    Credit Chuck Gabriel for posting this snippet a while back:

    Create selection set based on application name:

    Dim intFilterType(1) As Integer
    Dim varFilterData(1) As Variant
    Dim objSelSet As AcadSelectionSet

    intFilterType(0) = 0: varFilterData(0) = "TEXT"
    intFilterType(1) = 1001: varFilterData(1) = "MyAppName"
    Set objSelSet = ThisDrawing.SelectionSets.Add("MySelSet")
    objSelSet.Select acSelectionSetAll, , , intFilterType, varFilterData

    Good Luck,

    Scott
     
    LochDhu, Apr 7, 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.