I have good experince with VB.Net, But i am new in prgramming for Autocad .
I had wrote code that catch all polylines on drawing, but now i have a problem, i need to catch that entities (blocks in my case) which intersected with each polyline.
any help please.
Thank you in advance.
Solved! Go to Solution.
Thank you very much Mr. mzakiralam
This is good try.
I know how to get intersection points using (IntersectWith) function, My problem is how to specify the type of the entity that intersects with the polyline.
entity.GetType() will help you to get entity type. you can also use below function.
Dim ent as entity = transaction.GetObject(ObjectId, OpenMode.Write)
If TypeOf ent is Polyline
'do as you want
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register