public SapPoint(cSapModel model, double x, double y, double z) { this.SapModel = model; this.x = x; this.y = y; this.z = z; model.PointObj.AddCartesian(x, y, z, ref name); //Iniitialize the point with no restraints; jointRestraint = new SapJointRestraint(RestrainCase.NoRestraint); }
public void SetRestraint(RestrainCase restrains) { jointRestraint = new SapJointRestraint(restrains); bool[] tempRestrains = jointRestraint.Restrains; SapModel.PointObj.SetRestraint(name, ref tempRestrains, 0); }