Problem Description:
How to get member list corresponding to its property reference number
Solution:
You need to use these two functions.
Parameter for function GetSectionPropertyAssignedBeamCount::
[Input] refno: Property Reference ID
[Return Value] beamcountrefno: Total assigned member count corresponding to the provided Property Reference ID
Parameter for function GetSectionPropertyAssignedBeamList:
[Output] beamlist: Member ID(s) corresponding to the provided Property Reference ID
Sample VBA Syntax:
Set objOpenSTAAD = GetObject(, "StaadPro.OpenSTAAD") Dim refno As Long Dim beamcountrefno As Long Dim beamlist() As Long
refno = 2 ' Property Reference Number beamcountrefno = objOpenSTAAD.Property.GetSectionPropertyAssignedBeamCount(refno)
ReDim beamlist(beamcountrefno - 1) objOpenSTAAD.Property.GetSectionPropertyAssignedBeamList refno, beamlist
Output: