Dear Sir,
We have been trying to select multiple beam numbers in STAAD.Pro using OpenSTAAD functions.
And the .NET code is as follows,
From the above picture we can see that, list of beam numbers are loaded into one dimensional array. And the OpenSTAAD function "objOpenSTAAD.Geometry.SelectMultipleBeams(BeamNos)" does not select any beam numbers in STAAD.Pro application.
This function works fine but there is one problem that I have noticed. Though the members specified in the beam array is being selected correctly, but those members are not highlighted in the geometry. If you go to the geometry page and then execute this command, you can notice that all those members are selected in the beam table. But nothing is highlighted in the GUI at first. If you refresh the screen (scroll, zoom in etc), then those members are highlighted. Also if you specify "Geometry.GetNoOfSelectedBeams" after this function, you will notice the numbers of members selected is reported correctly. I will inform the development team to rectify this.
Meanwhile, you can use "View.RefreshView" function after this function to refresh the screen and highlight those members.
Alternatively, you can use "Geometry.SelectBeam" function and use a loop to select all those members.
Answer Verified By: CKK Raj