Question about Form.ByLoftCrossSections

I imported a linear object created in Civil 3D into Revit and tried to generate a linear solid using Dynamo.
However, when I use the “Form.ByLoftCrossSections” node to create the final solid, I get the following error, and only the cross-sections are placed while the solid is not generated:

“Document.FamilyCreate can only be used in the Revit Family Editor. Use Document.Create with project documents.”

If anyone knows the reason for this issue, I would appreciate your help.
Thank you for taking the time to read this.

Welcome to the forum @KUJINHOI!

The image didn’t post though - can you follow the instructions to create an image of your workspace and post here?

Hello yes that one only work in a family document, if in project ducument you could try family type by geometry and insert as instance with family instance by point

Thank you so much for your helpful advice.
However, I’m really new to Dynamo, so I didn’t fully understand what you meant about how to modify it.
Could you please explain in more detail how I should change it so that it works in a project file?

the answer is in the warning, use the proper node

I’ll just add that i dont think either of these nodes are the correct one for creating geometry.
as Sovitek said, try using the family type by geometry node, use the dynamo search to find it.