Hi,
I made a Cimplicity project with a class. I also made a script which reads data from the database and generates the class objects, based on the information in the database. When I run the script, I see following warning appear in the projects' log:
does anybody have an idea what it means? it seems that the warning is generated every time that I save a class object...
In the code below a recordset Ors is read line by line to read the object name and the values of some attributes:
I searched on google and in this forum, but I can't find much information about this.
I made a Cimplicity project with a class. I also made a script which reads data from the database and generates the class objects, based on the information in the database. When I run the script, I see following warning appear in the projects' log:
Quote:
8/25/2015|8:54:40 AM|Warning|5308|ScriptEd|ptexph.registerFunctions| 25|Function identifier is already in symbol table|COR_PTEXP_ERR|23566 |
In the code below a recordset Ors is read line by line to read the object name and the values of some attributes:
Code:
'open the list with all the class objects
Set ObjList = Proj.Objects
Set Obj = CreateObject("CimObjectInstance")
Do While Not Ors.EOF
Trace "ObjectID = " & Ors("ObjectID") & "; ClassID = " & Ors("ClassID") & "; Description = " & oRS("Description")
'Create the object (or update if it already exists)
Obj.ID = Ors("ObjectID")
Obj.ClassID = "FAULT_BASED"
'fill in all the required attributes
Obj.Attributes.Item("$DESCRIPTION").Value = oRs("Description")
Obj.Attributes.Item("$DEVICE_ID").Value = DeviceID
Obj.Attributes.Item("$RESOURCE_ID").Value = ResourceID
Obj.Attributes.Item("POS_ID").Value = Ors("ObjectID")
' save the object
ObjList.Save Obj, false
'go to next record in the recordset
Ors.MoveNext
Loop