Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynamo Gridbuilder with multiple grid types

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Joos_T
343 Views, 3 Replies

Dynamo Gridbuilder with multiple grid types

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

 

 

Labels (4)
3 REPLIES 3
Message 2 of 4
robert2JCCH
in reply to: Joos_T

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.

Message 3 of 4
Joos_T
in reply to: robert2JCCH

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

 

Message 4 of 4
robert2JCCH
in reply to: Joos_T

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report