Announcements

Announcement: We’re aware of an issue affecting starting a new topic from category pages and creating new blog posts. New topics can still be started directly from the relevant board. Learn more here.

Roof could not be added in Revit, through Dynamo

Roof could not be added in Revit, through Dynamo

Vasu27
Advocate Advocate
3,306 Views
9 Replies
Message 1 of 10

Roof could not be added in Revit, through Dynamo

Vasu27
Advocate
Advocate

Hi.

I am new to both Programming & Dynamo. I am trying to create a parametric model of a simple building in Revit through Dynamo. But, I couldn't place a roof through Dynamo node. I tried using the 'Roof.SlabShapeByPoints' node, but it isn't working.

Can anyone help me on this, please .

 

 

 

Thanks

 

Vasu

0 Likes
Accepted solutions (2)
3,307 Views
9 Replies
Replies (9)
Message 2 of 10

RDAOU
Mentor
Mentor
Accepted solution

@Vasu27 Hi

 

You cannot place a roof straight from points...the tool in Revit requires boundaries...i.e. You Dynamo script needs to define those boundaries using the points list you have given. In addition, your script needs to define the the level...which I can't see in the image you posted ...

 

 

In short, that script is missing some essential input nodes...i have no access to a pc ATM so can't help u with that script but the same topic is discussed on Dynamobim.org forum...I think you can use any of those with minor tweaks or u can post your question there and I'm sure the guys there would be more than glad to help u put something together.

 

keep in mind, Dynamo isn't a short cut and it doesn't force Revit to do things differently hence what u need as defined input in Revit will be also required in Dynamo

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


Message 3 of 10

Vasu27
Advocate
Advocate
Accepted solution

@RDAOU,

 

Thanks for the guidance. I got it working now.

 

For information, below is the link, where this issue is explained, 

 

http://dynamobim.org/forums/topic/floor-and-roof-slabshapebypoints/

0 Likes
Message 4 of 10

Anonymous
Not applicable

Hi! I got the same issue. The script works perfect when using the floor node but i cant do the same when replacing the floor one with Roof.ByOutlineTypeAndLevel and of course changing the floor type with a roof type. I always get a null result in the roof.byoutline node and cant get why. Is there anything else different to be done when you need to create a roof instead of a floor?

 

Thanks a lot

0 Likes
Message 5 of 10

ToanDN
Consultant
Consultant
Can you share the dynamo script?
0 Likes
Message 6 of 10

Anonymous
Not applicable

Hi ToanDN, yeah of course here i attach the dynamo working with floors and the one not working with roofs.

 

Thank you very much 🙂

0 Likes
Message 7 of 10

Anonymous
Not applicable

Any idea? 🙂

0 Likes
Message 8 of 10

ToanDN
Consultant
Consultant

Sorry I forgot to look at them.  See the modified script attached.  There is one node not working to I replaced it, but you need to enter the Roof Type manually instead of from a dropdown list.  I think if you search on Dynamo forum you may find the updated Roof Types node to replace it.

 

I ran a test and this one did create a roof in the model.  I have no idea if the shape is correct though.

 

Edit: worked if I chose Level 1.  If I chose Level 2 the shape looked wrong.  But I will let you take care of that part 😉

 

 Capture.PNG

Message 9 of 10

Anonymous
Not applicable

Thanks a lot mate. That works perfect! 😄

0 Likes
Message 10 of 10

VALENTINA_FEDE
Community Visitor
Community Visitor

Hello everyone!
I would like to know if there is a script on dynamo that allows pitched roofs to be inserted simultaneously on several solids.

Thanks in advance

0 Likes