Reading the GabControl mode of the CA group//read the GapControlMode of CaGroup1GapControlMode:=fbXtsEnvironment.Mc2CaGroup(1).GetDefaultGapControlMode();