개정판 89325f4b
fixed some code
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
114 | 114 |
def buildItem(self, name, type, angle, loc, size, origin, connPts, parentSymbol, childSymbol, hasInstrumentLabel): |
115 | 115 |
try: |
116 | 116 |
docData = AppDocData.instance() |
117 |
symbolInfo = docData.getSymbolByQuery('name', name) |
|
118 | 117 |
self.name = name |
119 | 118 |
self.type = type |
120 | 119 |
self.angle = angle |
121 | 120 |
self.loc = loc |
122 | 121 |
self.size = size |
123 | 122 |
self.origin = origin |
123 |
symbolInfo = docData.getSymbolByQuery('name', name) |
|
124 | 124 |
originalPoint = symbolInfo.getOriginalPoint().split(',') |
125 | 125 |
self.symbolOrigin = (float(originalPoint[0]), float(originalPoint[1])) |
126 | 126 |
|
내보내기 Unified diff