Generic Model to Analytical Model

Hello all,

I have been exploring the ability of dynamo to help me create analytical models to take into Robot based on drafting done using generic models in Revit.

So far I have had promising results but I have reached a road block that I am seeking assistance with. Thus far I have done the following:

Node Flow

In essence I aim to:

  • Determine location of the origin of the generic model within Revit
  • Determine the rotation of the model to plot a second point to accurately represent the model
  • Create analytical line from start and end point
  • Assign properties to the analytical lines

I am running into issues when trying to define all of the relevant properties for the newly created analytical lines. There is a node “AnalyticalMember.SetStructuralRole” which lets me select the element category(Beam,column,wall,ect) which is good but I also need to change the section type which there is not a node for.

I have searched through the plugins with no luck and am wondering what possible solutions for this could be.

From the output of the analytical member:

Structural Role: StructuralRoleBeam;
Structural Material: Unset;
Section Type: Unset;

I can assume that the node “AnalyticalMember.SetStructuralRole” is able to read the parameters of the analytical member and can write to the structural role category.

Is is possible to create a new node using this as an example to also modify the other parameters? Or, could the code that defines the existing node be found and placed into a code block to do something similar.

Any insights would be greatly appreciated, thanks!

Here is some further information on my attempts since my post.

I feel i am very close but am unable to determine the correct type of input for the Parameter.SetValue node.

The parameter within Revit is a drop down selection box and I am not sure what input will suffice to select one of the options. A string is not accepted and neither are integers.

Try numbers - 0-5. It could also be an Element ID. Building a set of elements with known values then and using Element.GetParameterValueByName or some Python might help.

1 Like

Thanks Jacob! I was able to get it working by feeding it a family, it then assumed the same section property.

1 Like