Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Dynamo Gridbuilder with multiple grid types

Joos_T
Enthusiast

Dynamo Gridbuilder with multiple grid types

Joos_T
Enthusiast
Enthusiast

Dear all,

 

I'm builder a gridbuilder so can set up a grid quickly. 

Is it posible to do this with multiple grid types? (6.5mm bubble and 6.5mm bubble gap)

 

See below for an example of how it should look like. 

In the attachment i've added a revit file and the dynamo code to build a grid without multiple types (and a little piece of how i've tried to solve it). 

Thank you in advance!

Joos_T_0-1695889919582.png

 

 

0 Likes
Reply
Accepted solutions (1)
416 Views
3 Replies
Replies (3)

robert2JCCH
Collaborator
Collaborator

https://primer.dynamobim.org/04_The-Building-Blocks-of-Programs/4-3_logic.html

 

robert2JCCH_0-1695928590392.png

This would be an odd/even (or every other item) list splitter. From there you can take each branch and assign a separate type.

 

Alternatively, you can build odd/even structure into the typing and push the lists together:

robert2JCCH_1-1695929014966.png

 

If you need something other than odd/even, the primer has some good examples of list logic to build off of.

0 Likes

Joos_T
Enthusiast
Enthusiast

Thanks for your reply.

 

Sorting the grids in odd and even does work now! Thank you.

The only problem now is change the grid type. FamilyInstance.SetType doesn't work.

Joos_T_0-1695967125904.png

 

0 Likes

robert2JCCH
Collaborator
Collaborator
Accepted solution

Looks like OP got an answer at the DynamoBIM forums, cross-posting the link here for people in the future.

 

https://forum.dynamobim.com/t/dynamo-gridbuilder-with-multiple-grid-types/94139/2