示例#1
0
 public SapFrameElement(cSapModel mySapObjectModel, SapPoint p1, SapPoint p2, SapRectSection myRectSec, string label, string name)
 {
     this.mySapObjectModel = mySapObjectModel;
     this.p1           = p1;
     this.p2           = p2;
     this.myRectSec    = myRectSec;
     this.label        = label;
     this.name         = name;
     this.distLoads    = new List <SapFrameDistLoad>();
     this.pointLoads   = new List <SapPointLoad>();
     this.frameResults = new List <SapFrameResult>();
     this.sec          = new List <SapRectSection>();
     mySapObjectModel.FrameObj.AddByPoint(this.p1.PointName, this.p2.PointName, ref this.name, this.name);
     SetFrameSection(mySapObjectModel, this.MyRectSec, MyRectSec.SecName);
 }
示例#2
0
 public void SetFrameSection(cSapModel mySapObjectModel, SapRectSection myRectSec, string propName)
 {
     MySapObjectModel.FrameObj.SetSection(name, propName, eItemType.Objects);
 }