AutoCAD Civil 3D Customization

AutoCAD Civil 3D Customization

Reply
Contributor
13 Posts
0 Kudos
Registered: ‎01-21-2012
Post 1 of 2

IntersectWith function for Alignment and Parcel

162 Views, 1 Replies
07-29-2012 04:30 AM

Hi,

I need to determine intersection points between Alignment and Parcels.
In .NET I haven't Parcel object and in COM IntersectWith function doesn't work.
Can I somehow solve my issue?

ADN Support Specialist
543 Posts
26 Kudos
Registered: ‎06-09-2009
Post 2 of 2

Re: IntersectWith function for Alignment and Parcel

07-30-2012 09:35 PM in reply to: Alexey.Terno

Hi Alexey,

I think it's the same question you asked to DevTech / ADN team earlier which we already responded to you :

>>>
Public Sub test()
    Dim ent1 As AcadEntity
    Dim ent2 As AcadEntity
    Dim pick As Object
   
    ThisDrawing.Utility.GetEntity ent1, pick, "Select first entity: "
    ThisDrawing.Utility.GetEntity ent2, pick, "Select second entity: "
   
    Dim res As Variant
    res = ent1.IntersectWith(ent2, acExtendNone)
   
End Sub
<<<


Thanks,



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!