if (rvtDoc.GetElement(selectedRef) is SteelProxyElement weldEl &&
(BuiltInCategory)weldEl.Category.Id.IntegerValue ==
BuiltInCategory.OST_StructConnectionWelds)
IList<SteelInputMemberInfo> steelElementsInfo =
weldEl.GetInputMemberInfos();//get connected elements RVT2020
Hello,
This code works well for Revit 2020. But in Revit 2021 I can't use GetInputMemberInfos for weld outside joint(SteelProxyElement). Are there any other approaches?
Solved! Go to Solution.
Solved by sorin.brinzaru. Go to Solution.
Why can't you use that approach in Revit 2021?
Hi, Jeremy. Because this method
GetInputMemberInfos()
absent in Revit 2021 for SteelProxyELement weld. You can see this in RevitLookup:
RevitLookup does not necessarily display all the available methods. Some methods take arguments, and RevitLookup cannot guess what arguments to supply, so it cannot call them. Maybe the method still exists, but a new argument was added to it. To research such a method, you will have to use other, more intimate tools, e.g., RevitPythonShell:
Hello @NinovSM ,
For getting weld connected elements you have to use Advance Steel API. Please take a look at the Revit SDK Samples (project SampleCommandsSteelElements) to learn how to get an Advance Steel filer object from a Revit steel element reference.
Please let me know if you need sample code.
Sorin
Hi @sorin.brinzaru , thanks for the tip. I thought I could use Fabrication Transaction and get Filer only for subelements inside joints. But it works for all steel elemants.
Can't find what you're looking for? Ask the community or share your knowledge.