ID String to Elements


#1

 

 

Hello

When i read the excel Element id as the Strings, i can’t select the Element by id.

I was try to different type of data like Number and Integers, but that’s not work as string.

any way to select element by id without the select model element?

Thanks
4-27-2015 10-44-23 AM


#2

There’s a node called Id to Element in Konrad Sobon’s awesome archi-lab.net package that can convert strings of element IDs to actual elements.


#3

Thanks Andreas

I just found out i was confused with the Revit build in Document.Current node

and now that is fine when i use Get Documents by archi-lab node.

4-27-2015 12-04-36 PM


#4

What if you have an array of element IDs? Can use select multiple Elements?

Capture


#5

Should work with List.Map …


#6

No errors, but no selection. Just a null value, individual values work so I think it is a Python issue. Revit 2015 Dynamo .8

Capture

Capture2


#7

Know what else it could be… These are Wall Element IDs. https://github.com/DynamoDS/Dynamo/issues/2460


#8

Now working.

Just removed .toDSType in line 34… Strange it did not require a conversion. I’m not really sure what I’m doing but it worked.

Capture

 


#9

Yes, ToDSType is one of those unfinished Dynamo projects and highly annoying in its present state (https://github.com/DynamoDS/Dynamo/issues/2460).


#10

Hi guys,

Where do I find the node Current Document? what package?

 

Thanks

 


#11

Hi Salvatore,

You can find in Konrad Sobon’s awesome archi-lab.net package in dynamopackages.com or you can search for package in dynamo.

Good luck!!!


#12

See new thread: http://dynamobim.com/forums/topic/id-to-element/

 

Any ideas why I’m getting an “invalid ID” when using “ID to element” node? Trying to isolate warnings.Warnings isolation script

Invalid ID

 


#13

Hello,

I’d like to revisit this post. This was exactly what I was looking for. Reading off an excel file and converting that list of numbers

into id elements. I have copied the python script but it’s giving me a different error message. Can somebody please try to figure

out what’s wrong. I hope the screen shots comes out in order…Error MsgThank you in advance.

 

 


#14

That’s just a formatting issue. Notice on lines 38 ,40, and 42 that the indentation doesn’t match the indentations on lines 35 and 31? You just need to make sure that they match (delete back to the left and then tab twice).


#15

BO,

Thank you. Now that I got the indentation all fixed. No error message Empty Listbut it did not create the element ID’s. Any ideas?