hatch pattern selection set

Discussion in 'AutoCAD' started by ljb, Feb 7, 2005.

  1. ljb

    ljb Guest

    How do I filter a hatch pattern named "SOLID,N"? The comma character is
    normally used as the separator for a list. This pattern has comma in its
    name.

    grpCode(0) = 0: grpValue(0) = "HATCH"
    grpCode(1) = 2: grpValue(1) = "SOLID,ANSI31" ?? SOLID,N ??

    sset.Select acSelectionSetAll, , , grpCode, grpValue

    thanks
    LJB
     
    ljb, Feb 7, 2005
    #1
  2. ljb

    fantum Guest

    This is just a guess but it might work:

    grpValue(1) = "SOLID[,]N"
     
    fantum, Feb 7, 2005
    #2
  3. ljb

    ljb Guest

    I couldn't get that to work and since the pattern is created by some other
    application I wasn't able to reproduce it at my desk. Instead I just
    selected all HATCH objects and did the following.

    grpCode(0) = 0: grpValue(0) = "HATCH"

    sset.Select acSelectionSetAll, , , grpCode, grpValue
    If sset.Count > 0 Then
    For Each SolidHatch In sset
    With SolidHatch
    If InStr(UCase(.PatternName), "SOLID") > 0 Then


    thanks
     
    ljb, Feb 8, 2005
    #3
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.