Exemple #1
0
        public ElectrodeDrawingModel(List <ElectrodeModel> eleModels, Part asmPart, UserModel user)
        {
            this.eleModels = eleModels;
            this.asmPart   = asmPart;

            work = GetWorkModel(eleModels[0]);
            if (work == null)
            {
                throw new Exception("无法找到Work!");
            }
            Info = new ElectrodeDrawingInfo(eleModels[0].Info.MoldInfo, user, eleModels[0].Info.AllInfo);
        }
Exemple #2
0
 protected override void GetModelForAttribute(NXObject obj)
 {
     this.Info = ElectrodeDrawingInfo.GetAttribute(obj);
 }