Revit API/Dynamo

C3D Dynamo

Polyline 그리기

홍사훈     0건     100회

본문

● (0.0.0)에서 (1000,1000,0)를 잇는 폴리라인(PolyLine)을 그립니다.                        

        ┌━━━━━━━━━━┐  ┌━━━━━━━┐

        │Point.ByCoordinates │ │List.Create  │

        ├━━━━━━━━━━┤ ├━━━━━━━┤

        │x)      (Point│→│item0)  (list│┐

        │y)         │ │       ││

        │z)         │┌│item1)    ││

        ┗━━━━━━━━━━┛│┗━━━━━━━┛│

┌━━━━━┐ ┌━━━━━━━━━━┐│ ┌━━━━━┐ │

│Code Block│ │Point.ByCoordinates ││ │Code Block│ │

├━┬━━━┤ ├━━━━━━━━━━┤│ ├━┬━━━┤ │

│ 1│1000; │→│x)      (Point│┛ │ 1│"0"; │┐│

│ 2│1000; │→│y)         │  ┗━┴━━━┛││

┗━┴━━━┛ │z)         │         ││

        ┗━━━━━━━━━━┛         ││

┌━━━━━━━━┐ ┌━━━━━━━━━━┐ ┌━━━━┛│

│Document.Current│ │Document.ModelSpace │ │┌━━━━┛

├━━━━━━━━┤ ├━━━━━━━━━━┤ ││┌━━━━━━━━━━┐

│    (Document│→│Document)     (Block│┐│││Polyline.ByPoints  │

┗━━━━━━━━┛ ┗━━━━━━━━━━┛│││├━━━━━━━━━━┤

                       ││┗│points)  (Polyline│

                       │┗━│layer)       │

                       ┗━━│block)       │

                          ┗━━━━━━━━━━┛

● 사용 노드

 ▷ Document.Current : 현재 문서를 반환

   AutoCAD > Document > ?Current

 ▷ Document.ModelSpace : 문서의 모형 공간 블록을 반환

   AutoCAD > Document > ?ModelSpace  

 ▷ Point.ByCoorinates : 데카르트 좌표를 사용하여 점을 생성

   Geometry > Points > Point > +ByCoordinates(x,y,z)

 ▷ Polyline.ByPoints : 점 리스트에서 폴리선을 작성

   Geometry > Curves > Polyline3D > +ByPoints


0f3047bc17149606d6cae28fea2e3f97_1754799

등록된 댓글이 없습니다.



Copyrightⓡ1996~2025, sahoon.com All Rights Reserved.