.NET

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

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

247 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 (247 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 (247 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 (247 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
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!