Thank you for your answer. I had use the Model.copyNodeDataFunction in this way :
myDiagram.model.copyNodeDataFunction = function(obj,model){
var a = {};
a.stockNo= "stockNo";
a.category= obj.category;
a.text2= obj.text2;
a.pos= obj.pos;
a.size= obj.size;
return a;
}
The “a” object is the new object . If I don’t give “a” the id property , the new node will not have the property.