Advertisement
Dmitry_Dronov

Untitled

Nov 21st, 2014
1,465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. import clr
  2.  
  3. # Import RevitNodes
  4. clr.AddReference("RevitNodes")
  5. import Revit
  6. # Import types we need. Instead of listing individual types,
  7. # you can do 'from Revit.Elements import *'
  8. from Revit.Elements import CurveByPoints, ReferencePoint
  9.  
  10. import System
  11.  
  12. startRefPt = IN[0]
  13. endRefPt = IN[1]
  14. refPtArray = System.Array[ReferencePoint]([startRefPt, endRefPt])
  15. OUT = CurveByPoints.ByReferencePoints(refPtArray)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement