# Detail curve getting off placed

**URL:** <https://forum.dynamobim.com/t/detail-curve-getting-off-placed/104852>\
**Category:** Revit\
**Tags:** revit, python, dynamo\
**Created:** [October 3, 2024, 9:26am UTC](https://forum.dynamobim.com/t/detail-curve-getting-off-placed/104852 "2024-10-03T09:26:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![neelDZKPU](https://avatars.discourse-cdn.com/v4/letter/n/e0b2c6/32.png) [@neelDZKPU](https://forum.dynamobim.com/u/neelDZKPU)\
**Post date:** [October 3, 2024, 9:26am UTC](https://forum.dynamobim.com/t/detail-curve-getting-off-placed/104852/1 "2024-10-03T09:26:12Z")

</div>

I am creating a detail curve with Revit using python script. first curve generated by curve is getting off place no matter what curve i have given first. what can be the reasons to happen like that?  
Python script  
import clr  
clr.AddReference(‘RevitAPI’)  
from Autodesk.Revit.DB import \*

clr.AddReference(“RevitNodes”)  
import Revit  
clr.ImportExtensions(Revit.GeometryConversion)

clr.AddReference(“RevitServices”)  
import RevitServices  
from RevitServices.Persistence import DocumentManager  
from RevitServices.Transactions import TransactionManager

curves = UnwrapElement(IN[0])  
views = UnwrapElement(IN[1]) if isinstance(IN[1], list) else [UnwrapElement(IN[1])]  
elementlist =   
doc = DocumentManager.Instance.CurrentDBDocument  
TransactionManager.Instance.EnsureInTransaction(doc)

doc\_create = doc.Create  
for view, curve in zip(views, curves):  
temp\_list = # Temporary list to store detail curves for this view  
if len(curve) != 0:  
for c in curve:  
detcurve = doc\_create.NewDetailCurve(view, c.ToRevitType())  
temp\_list.append(detcurve)

```
# Append temp_list even if it is empty
elementlist.append(temp_list)

```

TransactionManager.Instance.TransactionTaskDone()

# Filter out None values from elementlist if needed

OUT = elementlist

---

<div class="post-metadata">

**Author:** ![harilalmn](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/harilalmn/32/116193_2.png) [@harilalmn](https://forum.dynamobim.com/u/harilalmn)\
**Post date:** [October 4, 2024, 1:44am UTC](https://forum.dynamobim.com/t/detail-curve-getting-off-placed/104852/2 "2024-10-04T01:44:58Z")

</div>

What is your IN[0] and IN[1]?  
It would be helpful if you could share the screenshot of your Dynamo graph
