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.