public void SetSpecialRecordId(FamilySpecialRecordIdType type, String recordId) { //trace.TraceInformation(this,"SetXrefName:" + name); //automatedRecordId = recordId; if (specialRecordList == null) { specialRecordList = new Dictionary <FamilySpecialRecordIdType, string>(); } specialRecordList.Add(type, recordId); }
public void SetSpecialRecordId(FamilySpecialRecordIdType type, String recordId) { //trace.TraceInformation(this,"SetXrefName:" + name); //automatedRecordId = recordId; if (specialRecordList == null) { specialRecordList = new Dictionary <FamilySpecialRecordIdType, string>(); } if (specialRecordList.ContainsKey(type)) { trace.TraceData(TraceEventType.Error, 0, "Trying to add " + type + ":" + recordId + " which seem to be in already:" + specialRecordList.Count); } else { specialRecordList.Add(type, recordId); } MarkUpdate(); }