Hi,
I have two layers. one layer has polylines and the others have BlockReference. I need to get blocks which intersect the line.
currently I am looping lines ane by one and then I am looping all the blocks and check which all blocks intersect the line .
BlockReference.IntersectWith(br, Intersect.OnBothOperands, ptCol, IntPtr.Zero, IntPtr.Zero)
but this takes a hell lot of time becasuse I take one line then loop all the blocks to check intersection and then another and then another. Its killing.
Can anyone guide me with a faster approach.
Hi,
Just an idea, why not to use a selection filtering by block references in fence mode using the polylines coordinates as the fence, this should work with straight segments only polylines, but may require aditional work with bulges.
Gaston Nunez