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.
I want to know the answer to.
And second question is how to assign members to group. There is no such function in OpenStaad help.
Now i see the one way to get a text strings for input file using VB macro... like this:
START GROUP DEFINITIONMEMBER_BEAMS 1 5 TO 10 14END GROUP DEFINITION
And after that it should be copied/pasted into input file by user. Not so productively as i wanted
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.