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 )
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”
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()