.NET

.NET

Reply
Distinguished Contributor
a7v1n
Posts: 216
Registered: ‎10-02-2008
Message 1 of 4 (254 Views)

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

254 Views, 3 Replies
04-07-2010 11:18 PM
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...
Contributor
bertyboy
Posts: 18
Registered: ‎09-25-2007
Message 2 of 4 (254 Views)

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

04-08-2010 05:46 AM in reply to: a7v1n
Are you getting the user to interact by picking the entities?
Distinguished Contributor
a7v1n
Posts: 216
Registered: ‎10-02-2008
Message 3 of 4 (254 Views)

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

04-08-2010 08:30 AM in reply to: a7v1n
yes... id like to select the xref and line and get their intersection points
Contributor
bertyboy
Posts: 18
Registered: ‎09-25-2007
Message 4 of 4 (254 Views)

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

04-09-2010 04:36 AM in reply to: a7v1n
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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.