Jump to content

Need to find line that intersects with my perpendicular line


Recommended Posts

Posted

Hello: I'm working in AutoCad .net api:

 

I have a line (see black line in pic) and I find it's perpendicular line (see red line in pic) and now i want to find the line that intersects w/ this red line (see blue line in pic).

 

I know about the intersectWith method, but this won't take a collection of lines so i can see which line in the collection it intersects with so i'm wondering if i need to loop through my collection of lines....or if there's another way.

 

thanks

Proctor

perpline.jpg

Posted

A looping test would be the most straightforward method of finding an intersecting pair. Depending on the circumstances there may be some optimization available with selection set filtering . . . . to avoid testing against every entity in the database.

Posted

Hi SEANT: Thanks for your reply. I will go ahead and loop through my selection set of lines then.

 

thanks again,

Proctor

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...