.NET

.NET

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

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

244 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 (244 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 (244 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 (244 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
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.