i was able to make it happen using this code :
Dim RDmServer As RDimServer
Dim RDmStream As RDimStream
Set RDmServer = RobApp.Kernel.GetExtension("RDimServer")
Dim RDmGrp1 As RDimGroup 'object of the 1st group
Dim RDmGrpProfs As RDimGrpProfs 'collection of sections for design
Dim GroupNo As String ' group’s number
RDmServer.Mode = RobotOM.IRDimServerMode.I_DSM_STEEL
Set RDmGrps = RDmServer.GroupsService
RDmServer.Mode = RobotOM.IRDimServerMode.I_DSM_STEEL
Set RDmGrps = RDmServer.GroupsService
GroupNo = Range("B" & I)
Set RDmGrp1 = RDmGrps.New(0, GroupNo) ' creates a new Object of the group with default settings
RDmGrp1.Material = "ACIER E28 D9000 ACIER E28 D9000"
RDmGrp1.Name = Range("D" & I)
Set RDmStream = RDmServer.Connection.GetStream
RDmStream.Clear
RDmStream.WriteText (Range("E" & I)) 'list of members
RDmGrp1.SetMembList RDmStream
Set RDmGrpProfs = RDmServer.Connection.GetGrpProfs
RDmGrp1.SetProfs RDmGrpProfs
RDmGrps.Save RDmGrp1
But im having issues defining the right material for my groupe .
I bascially need to ask robot to use either S235 or S355 steel .
but the specific line that makes this happen in the documentation is :
RDmGrp1.Material = "ACIER E28 D9000 ACIER E28 D9000"
this doesnt seem to work , does anyone know how i can make it happen ?
Thanks a lot for the advices .