How to get member list corresponding to its property reference number


  
 Applies To 
  
 Product(s):STAAD.Pro
 Version(s):All
 Environment: N/A
 Area: OpenSTAAD
 Subarea: Property
 Original Author:Bentley Technical Support Group
  

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 functioGetSectionPropertyAssignedBeamList:

[Input] refno: Property Reference ID

[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: