저는 Revit API의 새로운 기능으로, 도움이 필요합니다. 저는 ModelLine을 가지고 있습니다. ModelLine의 시작점 또는 끝점을 어떻게 알 수 있습니까?시작점 또는 끝점 모델 라인을 얻는 방법
Selection mySelection = rvtUIDoc.Selection;
ICollection<ElementId> selectedIds = rvtUIDoc.Selection.GetElementIds();
ICollection<ElementId> selectedlinesIds = new List<ElementId>();
foreach (ElementId id in selectedIds)
{
Element elements = rvtUIDoc.Document.GetElement(id);
if (elements is ModelLine)
{
selectedlinesIds.Add(id);
}
}
//Проверяем есть ли выделенные объекты
if (0 == selectedlinesIds.Count)
{
TaskDialog.Show("Revit","Вы не выделили ни одной линии");
}
else
{
ModelLine(rvtUIDoc, m_rvtDoc, selectedlinesIds);
}
다음에해야 할 사항은 무엇입니까?
http://thebuildingcoder.typepad.com/blog/about-the-author.html#2
실제로 답변 :
은 Revit API에 초보자로서
덕분 대답 : 다음은
은 정확히 수행의 예입니다 – Kuvon