public SapPoint(cSapModel _mySapObjectModel, double x, double y, double z) { this.mySapObjectModel = _mySapObjectModel; this.x = x; this.y = y; this.z = z; //initialize point with no restraints jointRestraint = new SapJointRestraints(Restraints.NoRestraints); mySapObjectModel.PointObj.AddCartesian(x, y, z, ref pointName); }
public void SetRestraints(Restraints restriantType) { jointRestraint = new SapJointRestraints(restriantType); bool[] tempRestraints = jointRestraint.Restraints; mySapObjectModel.PointObj.SetRestraint(this.pointName, ref tempRestraints, eItemType.Objects); }