Hi,
Can anyone explain why I am getting ‘null’ results in the Incremental Addition block? I don’t entirely understand how it should be working to be honest. I just know i want to see numbers, not ‘null’ values.
ps. this file works perfectly on my other computer running 2016 Revit and down-versioned packages of dynamo…
i’m getting these errors on Revit 2017. I have tried downgrading the updates in the packages but i can’t remember the exact combination to copy that which is on my other computer.
I don’t have this particular node but it looks like it could be a Levels issue because you are dealing with sublists What are the contents of the node?
@salvatoredragotta Did you try yours with lacing set to longest? I wouldn’t expect that to be an issue given what the node’s name implies about its function, but I wonder since you did get one result.
In any case, here is a node solution if what you’re after is what Salvo has shown with Python
edit: I just realized our results are slightly different @salvatoredragotta do you mind sharing your Python script? I’m wondering why the different results
data=IN[0]
Incremental=[]
i=0
while i <len(data)-1:
result=(data[i]+data[i+1])
Incremental.append(result)
i +=1
OUT=Incremental
or if you want to increment your way:
data=IN[0]
Incremental=[]
Incremental.append(data[0])
i=0
while i <len(data)-1:
result=(Incremental[i]+data[i+1])
Incremental.append(result)
i +=1
OUT=Incremental
@awilliams or my code above are already getting those values
data=IN[0]
Incremental=[]
Incremental.append(data[0])
i=0
while i <len(data)-1:
result=(Incremental[i]+data[i+1])
Incremental.append(result)
i +=1
OUT=Incremental
that looks like it would work. i’ll put it in. thanks Ewan_Opie!
in anycase sounds like reanimation block ‘incremental addition’ is broken. would be good to fix this.
The problem here is that the input was a list of list of numbers instead of just a list of numbers. Either take out the nested list or in the python code, change the data = IN[0] to data=IN[0][0]
now the node is working
(i just shutdown dynamo and revit completely and restarted)
but of course something else is broken…no errors, but nothing is happening at the end of the ‘run’. calcs seem to be happening correctly for the most part, at the end of the line it’s meant to create curtain grids at the spacing i’ve determined (900,450,450) for the entier length of ‘selected wall’. however no curtain grids created.
the most frustrating thing is last night this all worked in revit 2016 on my other computer. it was generating grids and mullions based on the input i gave it…
ok so, after going out for a smoke (this is the key), the only way i managed to get the whole ‘thing’ (what’s a dynamo set of nodes called?) to work is by removing the profile from my curtain walls, run the script, then reapply the profile…, for each wall…i’m sure there’s better ways to do this. once im’ not considered a new user i’ll upload the dyn file
You can always upload it to a file sharing service and post the link here! It sounds as if though the workflow you are describing with the curtain walls and the profiles may be a separate topic from the incremental addition node, so a new post might be best