자유 게시판 제목dcdcs2024-03-11 15:35작성자ddd첨부파일ImprovedGarrisons.zip (164.3KB)MyLittleWarband.zip (34.3KB)// 필요한 네임스페이스 추가using Autodesk.Revit.DB;using Autodesk.Revit.UI;public XYZ GetLevelOriginPoint(Document doc, ElementId levelId){ // 레벨 가져오기 Level level = doc.GetElement(levelId) as Level; if (level != null) { // BasePoint 가져오기 Element basePointElement = doc.GetElement(level.GetDependentElements(new ElementClassFilter(typeof(BasePoint))).FirstOrDefault()); if (basePointElement != null) { LocationPoint locationPoint = basePointElement.Location as LocationPoint; if (locationPoint != null) { // 레벨의 원점 가져오기 XYZ levelOrigin = locationPoint.Point; TaskDialog.Show("Level Origin", "Level Origin Point: " + levelOrigin.ToString()); return levelOrigin; } else { TaskDialog.Show("Error", "Unable to get LocationPoint from BasePoint."); } } else { TaskDialog.Show("Error", "BasePoint not found for the given Level."); } } else { TaskDialog.Show("Error", "Level not found with the given ID."); } return null;} 목록수정삭제답변글쓰기 댓글 [0] 댓글작성자(*)비밀번호(*)자동등록방지(자동등록방지 숫자를 입력해 주세요)내용(*) 댓글 등록 더보기이전조브락스의 유산kitty2024-03-14-dcdcsddd2024-03-11다음frfffㄴㅇㄴㅇ2024-02-06 Powered by MangBoard | 워드프레스 쇼핑몰 망보드