Reference intersector to filter the pipe fitting objects

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have pipe like as shown in below,
While adding the coupling i have filter the branches/ pipe fittings/ Sprinklers which are connected to and i have give minimum distance between the couopling and the branches/ pipe fittings/ Sprinklers objects, and i have to calculate the distance from the start point.
I am trying with the below code, i am unabel to read the proper location of the pipe fittings,
Please help me to slove the issue.
ReferenceIntersector referenceIntersector = new ReferenceIntersector((View3D)m_document.ActiveView);
referenceIntersector.TargetType = FindReferenceTarget.Face;
IList<ReferenceWithContext> pipe_fitting_location = referenceIntersector.Find(strat,end);
foreach (ReferenceWithContext gRef in pipe_fitting_location)
{
double proximity = gRef.Proximity;
Reference pipe_fiitings = gRef.GetReference();
TaskDialog.Show("ReferenceIntersector", pipe_fiitings.GlobalPoint.ToString());
}
Thank you in advance.