selectatpoint solid hatch

Discussion in 'AutoCAD' started by johnsonm, Aug 25, 2004.

  1. johnsonm

    johnsonm Guest

    I am trying to select a solid filled hatch at a point based on the insert of a block that lies inside a hatched area. When I use selectatpoint, the sub doesn't find anything. When I use select acselectionsetcrossing, point, point I don't get anything, If I change the hatch to ansi and make sure the insertion of the block is on a line, it works. How can I select the hatch without changing the hatch style?
     
    johnsonm, Aug 25, 2004
    #1
  2. Having never tried selecting a solid hatch, this is only a guess based upon
    typical AutoCAD functionality...

    To select it, you need to select an edge of the hatch not in the middle.
    Your crossing should work but you didn't state if you were doing the
    crossing "within" the hatch boundaries or across them. Also, depending upon
    your order of ops, you could track the solid hatch in memory til you need
    access to it - if you are drawing the hatch, then inserting the block, then
    selecting the hatch. If you're not doing something like that then storing
    it isn't an option.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Aug 25, 2004
    #2
  3. johnsonm

    johnsonm Guest

    The crossing was actually a suggestion on another thread. It is inside the hatch area. Actually, what I'm trying to do is select an aec space object, but the same thing applies to both and since most people here know acad and not adt, I said hatch instead of space. These spaces are existing so I cant add them to memory. Any thoughts on how to select it without grabbing the boundary based on a block that lays inside it?
     
    johnsonm, Aug 25, 2004
    #3
  4. You could always bulld a collection [access internal adt collection] of the
    space entities, then loop through them using the block's IntersectsWIth
    method.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Aug 25, 2004
    #4
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.