Пример #1
0
 public ObjectInfo(ModelObject modelObject)
 {
     Model model = new Model();
     Hashtable hashtable = new Hashtable();
     Hashtable hashtable2 = new Hashtable();
     modelObject.GetStringReportProperties(ObjectInfo.ObjectStringProperties, ref hashtable);
     modelObject.GetIntegerReportProperties(ObjectInfo.ObjectIntegerProperties, ref hashtable2);
     this._objectID = modelObject.Identifier.ID;
     this._partGUID = model.GetGUIDByIdentifier(modelObject.Identifier);
     this._partStNr = 0;
     this._assemblyStNr = 0;
     this._partMark = (string)hashtable["PART_POS"];
     this._partPrefix = (string)hashtable["PART_PREFIX"];
     this._assemblyPrefix = (string)hashtable["ASSEMBLY.ASSEMBLY_PREFIX"];
     this._partName = (string)hashtable["NAME"];
     this._partMaterial = (string)hashtable["MATERIAL"];
     this._partProfile = (string)hashtable["PROFILE"];
     this._partClass = (string)hashtable["CLASS_ATTR"];
 }