revit二次开发管线翻弯功能
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
UIDocument uiDoc = commandData.Application.ActiveUIDocument;
Document doc = uiDoc.Document;
//交互选择第一个点ObjectType
Reference reference = uiDoc.Selection.PickObject(ObjectType.PointOnElement, new Pipefilter());
XYZ point1 = reference.GlobalPoint;
//交互选择第二个点
Reference
1