개정판 2fac2754
dev issue #000 : fix
Change-Id: I9f53fc3049c54acbdb9932f051712cc8f0075492
DTI_PID/SPPIDConverter/AutoModeling.cs | ||
---|---|---|
3115 | 3115 |
|
3116 | 3116 |
try |
3117 | 3117 |
{ |
3118 |
if (string.IsNullOrEmpty(note.OWNER) || note.OWNER == "None") |
|
3119 |
{ |
|
3120 |
double x = 0; |
|
3121 |
double y = 0; |
|
3122 |
|
|
3123 |
CalcLabelLocation(ref x, ref y, note.SPPID.ORIGINAL_X, note.SPPID.ORIGINAL_Y, note.SPPIDLabelLocation, _ETCSetting.NoteLocation); |
|
3124 |
|
|
3125 |
_LMSymbol = _placement.PIDPlaceSymbol(note.SPPID.MAPPINGNAME, x, y); |
|
3126 |
_LMSymbol.Commit(); |
|
3127 |
_LMItemNote = _placement.PIDDataSource.GetItemNote(_LMSymbol.ModelItemID); |
|
3128 |
_LMItemNote.Commit(); |
|
3129 |
_LMAAttribute = _LMItemNote.Attributes["Note.Body"]; |
|
3130 |
_LMAAttribute.set_Value(note.VALUE); |
|
3131 |
_LMItemNote.Commit(); |
|
3132 |
} |
|
3118 |
//if (string.IsNullOrEmpty(note.OWNER) || note.OWNER == "None")
|
|
3119 |
//{
|
|
3120 |
// double x = 0;
|
|
3121 |
// double y = 0;
|
|
3122 |
|
|
3123 |
// CalcLabelLocation(ref x, ref y, note.SPPID.ORIGINAL_X, note.SPPID.ORIGINAL_Y, note.SPPIDLabelLocation, _ETCSetting.NoteLocation);
|
|
3124 |
|
|
3125 |
// _LMSymbol = _placement.PIDPlaceSymbol(note.SPPID.MAPPINGNAME, x, y);
|
|
3126 |
// _LMSymbol.Commit();
|
|
3127 |
// _LMItemNote = _placement.PIDDataSource.GetItemNote(_LMSymbol.ModelItemID);
|
|
3128 |
// _LMItemNote.Commit();
|
|
3129 |
// _LMAAttribute = _LMItemNote.Attributes["Note.Body"];
|
|
3130 |
// _LMAAttribute.set_Value(note.VALUE);
|
|
3131 |
// _LMItemNote.Commit();
|
|
3132 |
//}
|
|
3133 | 3133 |
} |
3134 | 3134 |
catch (Exception ex) |
3135 | 3135 |
{ |
... | ... | |
3160 | 3160 |
|
3161 | 3161 |
LMSymbol _LMSymbol = _placement.PIDPlaceSymbol(mappingPath, x, y, Mirror: mirror, Rotation: angle); |
3162 | 3162 |
ReleaseCOMObjects(_LMSymbol); |
3163 |
|
|
3164 |
InputSymbolAttribute(symbol, symbol.ATTRIBUTES); |
|
3163 | 3165 |
} |
3164 | 3166 |
} |
3165 | 3167 |
|
내보내기 Unified diff