How to specify link template category for dynamic link

By using the LinkTemplateDictionary we can define multiple link template, category for the link can be defined for static or predefined links. But for dynamic links how to specify the category. Can we define the link category for each port?

Got it !!!
Using “Diagram.LinkDrawn” event (There is also Diagram.LinkRelinked, which may be of interest to you for the same reason.), to specify the link template category for dynamic link. This works fine for me…!