Surface methods and properties (API)

Hello dear experts,
By accident I bumped onto a fact that surfaces in dynamo are like classes in revit API. It seems that they have a lot of hidden properties and methods which you can not access with a dynamo user interface.
For instance I found that a surface object contain an attribute that is called Faces. Faces have an attribute Loops and these loops have a method that defines if a loop is external or internal




Therefore, I understood that somewhere should be information about Dynamo/Autodesk geometry like we have a website for Revit API.
In another words, can you please advise where I can get all the info about the dynamo’s geometry API

Hi

you can check the XML documentation from nuget

https://nuget.info/packages/DynamoVisualProgramming.ZeroTouchLibrary/3.1.0-beta4184

or use fuget, but the service seem broken

https://www.fuget.org/packages/DynamoVisualProgramming.ZeroTouchLibrary/3.1.0-beta4184

or you can use some software to read the contents of DLLs (like VS2022)

1 Like

Some of these were intentionally hidden as new properties and methods are added to Dynamo in a way to keep them from being exposed in the library. The reasoning for this varies - performance degradation, user confusion, forward compatibility of existing files, and more.

I do recommend looking into these classes, but try to limit passing their outputs directly into the Dynamo environment when not needed (for the above performance concern).