How to set properties for LinkDataArray like archetypePartData?

Hi all, I am having trouble setting the property for LinkDataArray, I tried with nodeDataArray use archetypePartData was success. I am trying with LinkDataArray but this not working

Could you please describe what you want to do more precisely?

how to I want to add an id attribute in linkDataArray ? Screenshot from 2020-07-27 11-35-14

Set GraphLinksModel.linkKeyProperty.

Screenshot from 2020-07-27 13-13-37
This is the solution I have used with polygonTool nodeDataArray in mydiagram.model.
How can i do the same with linkDataArray ???. thank you

[image]

I do not know what toolPolygon is in your app. Is your code referring to https://gojs.net/latest/api/symbols/PolygonDrawingTool.html#archetypePartData ?

I still do not know what you are trying to accomplish. Are you trying to customize the data that is created by the LinkingTool? If so, set https://gojs.net/latest/api/symbols/LinkingTool.html#archetypeLinkData