Hi
I am trying to make a node in dynamo with the ZeroTouch that creates a line load for a structural element in Revit. The same result as in this post: Revit Line loads through Dynamo but with c#.
I don’t have any experience with c# (or coding) but i watched some tutorials for ZeroTouch.
I know i have to define variables and objects, but i am not sure how. This is my script so far:
using Autodesk.DesignScript.Geometry;
using Autodesk.DesignScript.Runtime;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Structure;
using Revit.Elements;
using RevitServices.Persistence;
namespace ClassLibrary6
{
public class Structure
{
private Structure()
{
}
public static LineLoad Create(Document aDoc, AnalyticalModelSurface host, int curveIndex, XYZ forceVector1, XYZ momentVector1, LineLoadType symbol)
{
aDoc = DocumentManager.Instance.CurrentDBDocument;
Autodesk.Revit.DB.Structure.AnalyticalModel Input;
Input = host.
XYZ forceVector;
XYZ momentVector;
forceVector = forceVector1.
momentVector = momentVector1.
return LineLoad
}
}
I am missing a lot of input here, so if anyone can point me in the right direction that would be great!