How to find out a point is on a pipe in autocad.net

How to find out a point is on a pipe in autocad.net

Anonymous
Not applicable
400 Views
1 Reply
Message 1 of 2

How to find out a point is on a pipe in autocad.net

Anonymous
Not applicable

i have a point3d, i want to check whether it's in a pipe

Thanks

Please help

0 Likes
401 Views
1 Reply
Reply (1)
Message 2 of 2

dgorsman
Consultant
Consultant

You may need to back up a step or two, as "pipe" could be one of a number of objects e.g. MEP object, 3D solid, a couple of 2D lines, etc.  The intelligent objects may already have a method for determining what you need.  If not, then off the top of my head...

 

- get the shortest perpendicular distance from the point to the center line of the "pipe"

- get the radius of the "pipe"

- if the distance is within the radius, its inside the pipe

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes