C# custom node doesn't work on Revit conceptual mass environment

Hi, I created a C# custom node to model complex shapes.
My node works and the Dynamo script in which I use it works good too…but only if I open the script in a standard Revit project.
If I open for example a conceptual mass project, then Dynamo, the C# custom node doesn’t work giving me the error “Null”.
Why?? Is there some specific string to declare in C# to access to the conceptual mass environment?

Creation of elements in a Revit doc is done differently if its a family doc.

The factory object for most element creation methods for a Revit project document is obtained using doc.Create.

For family docs, you need to use doc.FamilyCreate.

Also, you should post your formatted code, you’d get better/more answers.

1 Like