@@ -829,8 +829,18 class Project(): | |||
|
829 | 829 | |
|
830 | 830 | def __getNewId(self): |
|
831 | 831 | |
|
832 |
id = |
|
|
832 | idList = self.procUnitConfObjDict.keys() | |
|
833 | 833 | |
|
834 | id = int(self.id)*10 | |
|
835 | ||
|
836 | while True: | |
|
837 | id += 1 | |
|
838 | ||
|
839 | if str(id) in idList: | |
|
840 | continue | |
|
841 | ||
|
842 | break | |
|
843 | ||
|
834 | 844 | return str(id) |
|
835 | 845 | |
|
836 | 846 | def getElementName(self): |
General Comments 0
You need to be logged in to leave comments.
Login now