(name, cirType, model)
| 339 | _CIRCUITS[name].elements[el.refDes] = el |
| 340 | |
| 341 | def _addModel(name, cirType, model): |
| 342 | global _CIRCUITS, _USERCIRCUITS, _SLiCAPCIRCUITS |
| 343 | if model != None: |
| 344 | if cirType == 'system': |
| 345 | _SLiCAPCIRCUITS[name].modelDefs[model.name] = model |
| 346 | elif cirType == 'user': |
| 347 | _USERCIRCUITS[name].modelDefs[model.name] = model |
| 348 | elif cirType == 'main': |
| 349 | _CIRCUITS[name].modelDefs[model.name] = model |
| 350 | |
| 351 | def _addParDef(name, cirType, parDefs): |
| 352 | global _CIRCUITS, _USERCIRCUITS, _SLiCAPCIRCUITS |