Revit Mass from Dynamo Surface in Revit Project Files

Hi.
I’d like to be able to create a mass from a topo in my project file.
I can create an import instance, but that is not the same as a mass.

I can get the geometry fine in dynamo, but can’t find a way to create a mass in the project it self.
Is it possible?

try a directshape

your graph looks like it will create a surface (which you can feed into a directshape)- you probably want to give it a thickness ?

this works for me:


But sometimes i get an error if the topo is to difficult

  //Topography to PolySurface
tm1=topo.Mesh;
vp1=tm1.VertexPositions;
iG=tm1.FaceIndices;
lst1=DSCore.List.Transpose({iG.A,iG.B,iG.C});
lst2=DSCore.List.GetItemAtIndex(vp1,lst1);
srf1=Surface.ByPerimeterPoints(lst2);
srf2=PolySurface.ByJoinedSurfaces(srf1);

//Solid Topography
pln1=Plane.ByOriginNormal(srf2.BoundingBox.MinPoint,Vector.ZAxis());
per1=srf2.PerimeterCurves().Project(pln1,Vector.ByCoordinates(0,0,-1));
per2=PolyCurve.ByJoinedCurves(Flatten(per1)).Translate(Vector.ZAxis(),-10);
sld1=per2.ExtrudeAsSolid((srf2.BoundingBox.MaxPoint.Z-srf2.BoundingBox.MinPoint.Z)+2000);
sld2=sld1.Trim(srf2,srf2.BoundingBox.MaxPoint);
//sld3=sld2.Difference(bld.Geometry());