How to create a "Member Group" in STAAD using OpenSTAAD command?

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.

Parents
  • 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.

    Example (VBA):

    objOpenSTAAD.Geometry.CreateGroup(2,"MyBeamGroup")

    DIM varEntityList As Variant

    'select four members to be added to the group in the following command

    objOpenSTAAD.Geometry.CreateGroupEx(2,"MyBeamGroup2",4,&varEntityList)

    The function OSGeometryUI::UpdateGroup can then be used to replace, add, or remove objects from the a group.

    Example (VBA):

    'Update group to add members from a variant array list

    objOpenSTAAD.Geometry.UpdateGroup("MyBeamGroup",2,4,&varEntityList)

    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



  • Thank you.

    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.

Reply Children
No Data