here is a list of variables needed in order to create members in Revit VSTA. I this this might be useful to whoever is new to VSTA…I’d see it as a kind of guide, just to make sure you are not skipping any fundamental variable…
you’ll find how to put togheter all these variables and how to draw a member in VSTA in these following 2 posts:
creating elements in REVIT VSTA (beams, columns, braces and so forth…) – loading path
creating elements in REVIT VSTA (beams, columns, braces and so forth…) – define start and end point and draw member
‘VARIABLES
Dim beam_sym As Autodesk.Revit.DB.FamilySymbol = Nothing
Dim instance As Autodesk.Revit.DB.FamilyInstance = Nothing
Dim myBeam As Autodesk.Revit.DB.Line = Nothing
Dim start_point As Autodesk.Revit.DB.XYZ = Nothing
Dim end_point As Autodesk.Revit.DB.XYZ = Nothing
Dim my_level As Autodesk.Revit.DB.Level