Adding uniform load in global coordination system:

elm.Loads.Add (new UniformLoad1D(-1, Direction.Z, CoordinationSystem.Global));
//Note: we've used -1 as magnitude for the load as it is opposit to Z direction

SlopedBeamZUniformLoad.jpg

Adding uniform load in local coordination system:

elm.Loads.Add (new UniformLoad1D(-1, Direction.Z, CoordinationSystem.Local));
//Note: we've used -1 as magnitude for the load as it is opposit to local Z direction

SlopedBeamLocalZUniformLoad.jpg