How to create a "Member Group" in STAAD using OpenSTAAD command? Not able to run the command (code) "objOpenSTAAD.Geometry.CreateGroup lGruopType, strGruopName" given in OpenSTAAD Help menu.
You may try the OSGeometryUI::CreateGroup function, which is used to create a group. Use type 2 (first parameter passed) to assign it for members. Alternately, the function OSGeometryUI::CreateGroupEx can be used to create a group and pass a list of members at the same time.
DIM varEntityList As Variant
'select four members to be added to the group in the following command
The function OSGeometryUI::UpdateGroup can then be used to replace, add, or remove objects from the a group.
'Update group to add members from a variant array list
STAAD.Pro CONNECT Edition Update 2 comes with the latest OpenSTAAD help, which can be access by selecting File > Help > OpenSTAAD Help.
Jason Coleman, PE
Bentley Systems Senior Manager Technical Content
I ve noticed that members which were selected at the moment of group creating (VB) goes to be assigned for a new group automatically. This aspect was not declared in Help.