get intersection of an entity inside an xref and entity in modelspace

get intersection of an entity inside an xref and entity in modelspace

Anonymous
Not applicable
613 Views
3 Replies
Message 1 of 4

get intersection of an entity inside an xref and entity in modelspace

Anonymous
Not applicable
hi. is there any way to get the intersection points of an entity inside an xref and a line,arc,spline,pline in modelspace? im using vb.net. thanks...
0 Likes
614 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Are you getting the user to interact by picking the entities?
0 Likes
Message 3 of 4

Anonymous
Not applicable
yes... id like to select the xref and line and get their intersection points
0 Likes
Message 4 of 4

Anonymous
Not applicable
On the first think, I would say you need to copy the entity from your xref (to your current drawing, move this entity relating to the displacement of your xref. Scale by your xref scale. Rotate by your xref rotation.

Dim bDB As New Database(false, false)
bDB.ReadDwgFile("XrefPath",IO.FileShare.Read, True, "")

use WblockCloneObjects you can check on the forum.

Then use the IntersectWith method.

Maybe erase new entity.

Good luck!
Bert

Edited by: bertyboy on Apr 9, 2010 4:36 AM

Edited by: bertyboy on Apr 9, 2010 4:39 AM Edited by: bertyboy on Apr 9, 2010 4:39 AM
0 Likes