# Why cant I place detail component by curve?

**URL:** https://forum.dynamobim.com/t/why-cant-i-place-detail-component-by-curve/41252
**Category:** Uncategorized
**Created:** [September 30, 2019, 9:31am UTC](https://forum.dynamobim.com/t/why-cant-i-place-detail-component-by-curve/41252 "2019-09-30T09:31:20Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![bao1296](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@bao1296](https://forum.dynamobim.com/u/bao1296)
#### Post date: [October 2, 2019, 5:46pm UTC](https://forum.dynamobim.com/t/why-cant-i-place-detail-component-by-curve/41252/21 "2019-10-02T17:46:07Z")

</div>

I am developing this file, but I have 2 unsolved questions.

 ![Place%20Detail%20Component%20Floor%20Rebar_2019-10-03_12-35-40](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/c/ecaba7c89dfb69fcd90095eed7a8efd279f35d87.png)

1. I want to divide 2 type rebar shape, with M\_01, I will use family 90 degree, with M\_01 I will use family 180 degree, but When I try with this file, It cant convert list rebar shape to list family type (as node List.create )
2. Why I choose 2 rebar and I create list with 2 value Family type, I cant finish file dynamo (Warning: Internal error, please report: Dereferencing a non-pointer.)

---

<div class="post-metadata">

### Author: ![rinag](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rinag/32/75084_2.png) [@rinag](https://forum.dynamobim.com/u/rinag)
#### Post date: [October 26, 2019, 8:27am UTC](https://forum.dynamobim.com/t/why-cant-i-place-detail-component-by-curve/41252/22 "2019-10-26T08:27:46Z")

</div>

Hi,  
I’m following ur instruction but i got this error in python script :  
“Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.  
Traceback (most recent call last):  
File “”, line 32, in   
ImportError: No module named traceback”

any idea how to fix it?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/6/e6a54c9ffaec3af249145ed0c183f4af41f96cf0.png)

---

<div class="post-metadata">

### Author: ![Daniel\_Woodcock1](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@Daniel\_Woodcock1](https://forum.dynamobim.com/u/Daniel_Woodcock1)
#### Post date: [October 26, 2019, 11:19am UTC](https://forum.dynamobim.com/t/why-cant-i-place-detail-component-by-curve/41252/23 "2019-10-26T11:19:11Z")

</div>

@rinag

Use this just under `import clr`…

`import sys pyt_path = r'C:\Program Files (x86)\IronPython 2.7\Lib' sys.path.append(pyt_path)`

This should fix it.

---

<div class="post-metadata">

### Author: ![rinag](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rinag/32/75084_2.png) [@rinag](https://forum.dynamobim.com/u/rinag)
#### Post date: [October 26, 2019, 12:50pm UTC](https://forum.dynamobim.com/t/why-cant-i-place-detail-component-by-curve/41252/25 "2019-10-26T12:50:02Z")

</div>

thank .  
now i got this warning:  
IronPythonEvaluator.EvaluateIronPythonScript operation failed.  
unexpected token ‘pyt\_path’

---

<div class="post-metadata">

### Author: ![Daniel\_Woodcock1](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@Daniel\_Woodcock1](https://forum.dynamobim.com/u/Daniel_Woodcock1)
#### Post date: [October 26, 2019, 1:21pm UTC](https://forum.dynamobim.com/t/why-cant-i-place-detail-component-by-curve/41252/26 "2019-10-26T13:21:10Z")

</div>

Hi @rinag, without showing your code it’s hard for me to determine your issue.

EDIT: Apologies, after looking at my first reply again, I seems like I have formatted the code wrong, looked ok on mobile. 😅 It should have read…

```
import sys
pyt_path = r'C:\Program Files (x86)\IronPython 2.7\Lib'
sys.path.append(pyt_path)

```

This is why it failed. However, please use this snippet of code for reference for traceback example…

```
"""
Description: Traceback example catching Divide by Zero Exception.
Author: Dan Woodcock
Website: https://danimosite.wordpress.com
Licence: N/A
"""

##### Imports #####

import clr

# Add IronPython Path to sys.path. This will expose additional IronPython Modules...
import sys
pyt_path = r'C:\Program Files (x86)\IronPython 2.7\Lib'
sys.path.append(pyt_path)

# Import traceback module...
import traceback

##### Inputs #####
a = IN[0] # Input any Number...
b = IN[1] # Make this Zero to see traceback error...

##### Main Script #####

# Try divide by zero. We know this will fail and trigger the traceback...
try:
	OUT = a/b
except:
	# Return Traceback....
	OUT = traceback.format_exc()

```

Hope this helps.  
D

[Previous page](https://forum.dynamobim.com/t/why-cant-i-place-detail-component-by-curve/41252.md?page=1)
