Change area parameters by group

Hi

I’m trying to change some parameters for areas by groups but I can’t seem to get it to work. Please see my example code below:

+prog aqua urs:58.2
head materials
MAT 1 E 35000
MAT 2 E 20000
end

+prog Sofimshc urs:21.1
SYST 3D GDIV 100000 GDIR NEGZ
CTRL MESH 1

loop#i 5
    loop#j 2
        let#ii 11+#j*10+#i
        prt#ii
        SPT #ii X 500*#i Y 1000*#j Z 0
    endloop
endloop

SLN 1 NPA 11 NPE 21 GRP 1 FIX F

loop#i 2
    loop#j 2
        let#ii #i*2+#j
            SAR 1+#ii MNO 1 GRP 1+#i T 100
                SARB TYPE OUT NA 11+#ii NE 21+#ii
                SARB TYPE OUT NA 21+#ii NE 22+#ii
                SARB TYPE OUT NA 22+#ii NE 12+#ii
                SARB TYPE OUT NA 12+#ii NE 11+#ii
    endloop
endloop

END     

I would like to change the material of group 2, which I would believe should be done like this:

SAR GRP -2 MNO 2

It is possible to change the parameters using this syntax, but only by element number and not by group apparently?

How would I go about changing parameters for an entire group?

Thanks

As far as I know you can’t do it by group.
There are two ways to do it (to my knowledge):

  • By SAR nr:
    Use a negative identifier, e.g.: SAR -X

  • By SAR type prop:
    Create an area you want to change, in your case the outer boundary lines and use prop as an identifier
    E.g.:
    Sar prop Mno 2
    Sarb type out na 1 ne 2

I favor method 1, Sar Prop has not always worked for me