A hello world program.
Ensure you have the Australasia environment loaded. Or otherwise change the profile string to a profile in your environment
Model model = new Model();
if (model.GetConnectionStatus())
{
Beam beam = new Beam();
beam.StartPoint = new Point(0, 0, 0);
beam.EndPoint = new Point(1000, 0, 0);
beam.Profile.ProfileString = "UB150*14"; // make sure this is available in your environment.
beam.Finish = "PAINT";
beam.Insert();
model.CommitChanges();
}