/// <summary>
 /// 设置属性
 /// </summary>
 /// <param name="objs"></param>
 /// <returns></returns>
 public virtual bool SetAttribute(params NXObject[] objs)
 {
     try
     {
         AttributeUtils.AttributeOperation("PartType", Enum.GetName(this.Type.GetType(), this.Type), objs);
         return(MoldInfo.SetAttribute(objs) && UserModel.SetAttribute(objs));
     }
     catch
     {
         return(false);
     }
 }
Example #2
0
 /// <summary>
 /// 设置属性
 /// </summary>
 protected virtual void SetAttribute()
 {
     MoldInfo.SetAttribute(this.PartTag);
     AttributeUtils.AttributeOperation("PartType", this.PartType, this.PartTag);
 }