I want to renumber my rebars in drawing by 3 parameters (“Bar Diameter” , “Bar Length” and finally ‘‘Shape’’). I am stuck on the parameter ‘‘Shape’’ with this warning. Can someone help me out ?
This is the code in the Pythone script :
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
allRebars = IN[0]
partition = IN[1]
rebars =
for rebar in allRebars:
if rebar.GetParameterValueByName(“Partition”) == partition:
rebars.append(rebar)
Assign your output to the OUT variable.
OUT = rebars