I am trying to modify the BVN package’s node “Door.RenumberByRoom”. The node works very well, however I want the suffix to be letters going from a-z rather than numbers. Here is my current thought process.
I open up the BVN custom node. The area that I think I need to modify is here,
I then make this intervention with custom Python code.
My code reads:
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 input = IN letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'] count = 0 for item in input: if item == IN[count]: OUT = letters[count] count += 1
Could anyone please steer me in the right direction or give me an easier solution? My goal is to add letters from a-z rather than numbers as the door suffix. I appreciate the help!