Set sump elevation from CSV file

I’m a new user, and I built the script in the picture today.
Its purpose is to pull the sump height from a CSV file and set it.
What am I missing?

Hi @itzhakLFGFA,

I’m not sure where the GetStructureByName node is coming from (a package perhaps?), but I would recommend using the PipeNetwork.GetStructureByName node that is available in the main library.

Thank you for responding.
I found other nodes that might be more suitable for my purpose, which is creating structures by number, by XY coordinates, in a network by type, with settings for rim and sump elevation, all drawn from a CSV file.
Am i riching for the moon here?
Here is what I have got so far:

Certainly not! This is definitely possible, and a very good use case for Dynamo :slightly_smiling_face:

What do the node warnings say?

You may also consider taking a look at this sample, which discusses importing and organizing data from an Excel file. The use case is slightly different (creating block references instead of structures), but could be adapted without too much trouble.

1 Like

Thanks!
This is very helpful.
I do want to ask two questions:
How come I’m missing this nod?
Can you recommend someone who can help me with this?
It is a bit time-sensitive.

In the library on the left there is a ‘dictionary’ section - check what your options are in there, and post a screenshot of two after you expand the various bookcases and shelves therein and the community can help you find it.

This is all i have,

ValueAtKey is the node you want.

The leading portion before the dot is the class - in this case a dictionary - so you don’t ‘see’ that when exploring the library as it is exposed at the shelf.

The trailing portion after the dot is the constructor/method/action name - in this case ValueAtKey which is a method (lightening bolt symbol).

If searching “Dictionary.ValueAtKey” doesn’t turn up the node, find the class (Dictionary) in your library and look for the trailing portion of the name (ValueAtKey).

Can you search “Dictionary.ValueAtKey” (everything between the quotes) so we can see what might be throwing your search off?

1 Like