for i in ids:
idInt = int(i) # assign i as integer to idInt
elemId = Autodesk.Revit.DB.ElementId(idInt) # create an element Id from integer
elements.append(doc.GetElement(elemId).ToDSType(True)) # append the selected element to a list called elements
it does not matter if it is walls, windows…
maybe you post your full dynamo definition
my guess is, that your variable idInt is not integer
Peter - I have a list of strings, these strings contain numerical characters that were once Elements IDs. I am looking to use these numbers to select the elements once again. It is related to this topic:
Not sure if you saw the first divided surface post, but this trail leads back to there. The more i try to understand the missing links in the logic (in this case missing element id’s) , the more the different issues arise. All to much to explain on here, but here is a rough take on the process:
revit / dynamo does not see all families (curtain panel pattern based) of a triangular divided surface…except that perhaps it does.
use these nodes (Select Divided Surface Families > Element.ID (‘Clockwork’ package) > Excel.WriteToFile ). Within the new .xlsx, you will find all of the families hosted on the divided surface. SelectDivided Surface Families node , within Dynamo, only outputs every other panel.
so now you are left with an .xlsx sheet, with all of the elements id’s, with which you can copy and paste into “Select by IDs” command within Revit. This does work; can select all of the panels. The trick is, how can you use this same data to have Dynamo select the very same panels??
Import the IDs from Excel to Dynamo and then use either Peter’s node mentioned above, alternatively Element.ByID (package Clockwork) or Id to Element (package archi-lab.net) to turn them back into Revit elements.
And I think you should file a bug report for the thing with the missing panels. It sounds very odd.
Andreas - yes, I put together a python node from the info above. That is successful.
The other issue is likely not solely a Dynamo issue, but perhaps has something to do with how Revit generates paneling for the triangle patterns, bent and flat. The Select Divided Surface Families node seems to recognize all panels on a basic rectangle patterned surface. It is just something with the triangle…