StructuralType beam and it's end point

StructuralType beam and it's end point

Anonymous
Not applicable
789 Views
2 Replies
Message 1 of 3

StructuralType beam and it's end point

Anonymous
Not applicable
Why the StructuralType of a "beam?" instance I created is "NonStuctural"? Maybe due to this, I could not set the 2nd end point either:
....
Autodesk.Revit.Symbols.FamilySymbol bmType = FindFamilySymbol(rvtDoc, "W-Wide Flange", "W8X10");
....
Autodesk.Revit.Elements.FamilyInstance beam = rvtDoc.Create.NewFamilyInstance(ref startPt, bmType);

1)Autodesk.Revit.LocationCurve loc = (Autodesk.Revit.LocationCurve) beam.Location;
will exit the C# code without warning?
2)check beam.StructuralType, it's "NonStuctural"?
how to creat a real Beam StructuralType?
By the way, the family instance "W-Wide Flange", "W8X10" is defined under "Structural Framing"
0 Likes
790 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
I am new to this RevitAPI and wanted to know how you know if an element is column or beam or nay other structural member

thanks
0 Likes
Message 3 of 3

ctm_mka
Collaborator
Collaborator

check the API documentation for Create.NewFamilyInstance. I suspect you are either missing an overload, or NewFamilyInstance is not what you need for structural elements. There are a lot of specific methods of Create for specific things.

0 Likes