Why cant I place detail component by curve?

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

  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.)

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?

@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.

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

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. :sweat_smile: 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