I find the intersected point of Line and block as this code:
'bref is a block reference Dim tmpLine As New Line(pt1, bref.Position) Dim ptCol As New Point3dCollection bref.IntersectWith(tmpLine, Intersect.OnBothOperands, ptCol, 0, 0) Dim acLine As New Line(pt1,ptCol(0))
But the intersected point is not located on block as picture below. I don't know what happen.
Thank you for any help.
Solved! Go to Solution.
It is look like you found intersect point which on bounding box of block reference:
Easiest way is explode BlockRerence (method BlockReference.Explode but without adding entities to Database) and then intersect your's line with every entity in collection of exploded entities (maybe recursive if entity in collection is also BlockReference).
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.