Hi everyone, I’m trying to create Space separator from Curves, So using Clockwork node"SpaceSeparator.FromCurve" is not working, then I bring python script into my graph but it shows below warning. then basically I don’t python so can you Copy Element From Linked Model.dyn  (30.6 KB)
import clr
clr.AddReference("RevitNodes")
clr.AddReference("RevitServices")
doc = DocumentManager.Instance.CurrentDBDocument
TransactionManager.Instance.EnsureInTransaction(doc)
elementlist = list()
Revit Version - 2015
             
            
              
            
           
          
            
            
              Hi @thiru2jack ,
Can you show us the rest of the graph?
             
            
              
            
           
          
            
            
              
thank you Mr.@CVestesen  but i dont know how to solve it…
             
            
              
            
           
          
            
            
              i think the sketch plane can be a level
             
            
              
            
           
          
            
            
              still,
  it shows the same warning 
@Marcel_Rijsmus 
             
            
              
            
           
          
            
            
              can you draw a space separator in a 3d view in Revit???
             
            
              1 Like 
            
            
           
          
            
            
              @Andreas_Dieckmann 
             
            
              1 Like 
            
            
           
          
            
            
              It is telling you that it is not made for getting a list of sketchplanes… Your IN[1]
Edit… This is because it is made to be within a custom node which handles the iteration through dynamo
             
            
              3 Likes 
            
            
           
          
            
              
                SeanP  
              
                  
                    January 17, 2019,  4:57pm
                   
                  10 
               
             
            
              You either need to give it only ONE sketchplane, or you need to modify the code to iterate each plane with each curve in each view.
             
            
              1 Like 
            
            
           
          
            
            
              Try using this one in your python script:
if isinstance(IN[1], list):
             
            
              2 Likes 
            
            
           
          
            
            
              yes, @SeanP  I did each plane for each Curve but now it shows this error.
             
            
              
            
           
          
            
            
              Sorry For late reply, i did this changes for curves and sketchplane but it shows the same error so iterate each sketchplane for each curve but it shows 
             
            
              
            
           
          
            
            
              Can you share the code again? 
             
            
              2 Likes 
            
            
           
          
            
            
              yes,
import clr
clr.AddReference("RevitNodes")
clr.AddReference("RevitServices")
doc = DocumentManager.Instance.CurrentDBDocument
view = UnwrapElement(IN[2])
if isinstance(IN[1], list):
if isinstance(IN[1], list):
TransactionManager.Instance.EnsureInTransaction(doc)
elementlist = list()
Copy Element From Linked Model.dyn  (71.7 KB)
             
            
              
            
           
          
            
              
                SeanP  
              
                  
                    January 19, 2019,  4:00pm
                   
                  17 
               
             
            
              You have the sketchplane and the curves coming in on IN[1] in the code above. Change the curves to IN[0] and see if that works.
             
            
              1 Like 
            
            
           
          
            
            
              no, it shows the same the error,
separatorarray = doccreation.NewSpaceBoundaryLines(sketchplane,curvearray, view) 
this line is correct or not ??
where do i check?
separatorarray = doccreation.NewSpaceBoundaryLines(sketchplane,curvearray, view )
these three variables are only needed or these variables are correct order ??
             
            
              
            
           
          
            
              
                SeanP  
              
                  
                    January 19, 2019,  4:24pm
                   
                  19 
               
             
            
              It appears to be in the correct order.
http://www.revitapidocs.com/2016/e95433bf-3440-50e3-c9d0-c5559fbb0aff.htm 
However, I think k your list structures aren’t working right. You have nested lists of curves coming in, but you only iterate o er them all one time. IE: Curve List 0 has 4 curves in it, but you never get curve[0][1]. You just add them all to curvearray.  Try to work through your lists and make sure they are all matching and at the same level.
             
            
              
            
           
          
            
            
              i tried, Nested curves with 4 plane and Nested Curves with Nested Planes and also change the views but
but i try with model line. it’s working