Skip to content

Commit

Permalink
add new nodes for Toposolid and ToposolidType (#2966) (#2970)
Browse files Browse the repository at this point in the history
- New node for Toposolid
- New node for ToposolidType
- Simple Revit node tests
---------

Co-authored-by: Yueqiang Ni <[email protected]>
  • Loading branch information
BurrrNing and nyqRevit authored Sep 19, 2023
1 parent 53bed6f commit ffb4e69
Show file tree
Hide file tree
Showing 11 changed files with 611 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/DynamoRevit/Resources/LayoutSpecs.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,12 @@
{
"path": "RevitNodes.Revit.Elements.Topography"
},
{
"path": "RevitNodes.Revit.Elements.Toposolid"
},
{
"path": "RevitNodes.Revit.Elements.ToposolidType"
},
{
"path": "RevitNodes.Revit.Elements.Viewport"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,16 @@ public static Topography Wrap(Autodesk.Revit.DB.Architecture.TopographySurface t
return Topography.FromExisting(topoSurface, isRevitOwned);
}

public static Toposolid Wrap(Autodesk.Revit.DB.Toposolid toposolid, bool isRevitOwned)
{
return Toposolid.FromExisting(toposolid, isRevitOwned);
}

public static ToposolidType Wrap(Autodesk.Revit.DB.ToposolidType toposolidType, bool isRevitOwned)
{
return ToposolidType.FromExisting(toposolidType, isRevitOwned);
}

public static object Wrap(Autodesk.Revit.DB.Panel ele, bool isRevitOwned)
{
if (AdaptiveComponentInstanceUtils.IsAdaptiveFamilySymbol(ele.Symbol))
Expand Down
Loading

0 comments on commit ffb4e69

Please sign in to comment.