Return Subassembly Slope Value

How can I return the slope of my subassembly as a value in Dynamo? I am striking out with my current efforts.

Hi @jbrunkhorst
Subassembly parameters names are set as numeric values. Each subassembly has a different name (value) for the slope as differents subassemblies have different config for slope values (such as layers slopes and side).

You can find the value by doing this:


Used nodes belong to Civil3DToolKit extension

This is what I am getting out of the Subassembly.Parameters node.

I also don’t have those nodes available to me from the Civil 3D Toolkit extension.

Hi @jbrunkhorst,

You’ve almost got it. Each subassembly parameter has several associated values that are stored in a dictionary. So the Subassembly.Parameters node returns a dictionary of dictionaries. The keys of the root level dictionary are the names of the parameters, so you can use that to drill down to the parameter that you want. Like this:

Or simplify it down to a single Code Block :slight_smile:

2 Likes

You are already there

1 Like

@zachri.jensen
Thanks guys! I think this is another instance where I just needed to restart CAD. All looks great now and glad I was on the right path!

1 Like