Select divided surface by intersection

I have a custom divided surface in revit done with intersections.
I now would like to import the surface do dynamo tu evaluate uv and nodes.
I’m unable to select the divided surface. How can I do it? Which node do i have to use?

Thanks

is it in a project or in a conceptual mass template?

Conceptual mass template

You can do it like this:
Make sure the nodes are displayed! otherwise dynamo won’t retrieve them.

here’s the code:

import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import*

clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager

clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.Elements)

doc = DocumentManager.Instance.CurrentDBDocument

pts = []

divsurf = FilteredElementCollector(doc).OfClass(DividedSurface)
s = [d.ToDSType(True) for d in divsurf]

OUT = s
2 Likes

Great! It works, thanks Mostafa!
I have another questione. How can I trim the surface with the curves to get the single shape of the panels?

check this post:

the onlly difference here is instead of using ZAxis to extrude you need to use some other vector… I don’t know exactly how your grid is created but maybe the normal to the surface at the midle point of each gridline could work…

Hello,

I have the same question but my divided surface is inside a project- not in the conceptual mass template, and the options for surface representations are disabled…

Appreciate any help.

You have an in place mass?

yes it is an in place mass, from an updated 2014 model into 2017.

@sebastian_sepulveda if you show the surface you can display the nodes:


then an element.geometry node will get you the points. You’ll just need to filter them out :
image

1 Like

Great! Thanks.