.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Block on line

1 REPLY 1
Reply
Message 1 of 2
sanjaymann
271 Views, 1 Reply

Block on line

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.

 

1 REPLY 1
Message 2 of 2
hgasty1001
in reply to: sanjaymann

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost