How to generate a part, using category name?

With reference to my previous question “Abort the dragging Tool - with custom part value set”

  • I have a various node templates added in diagram template collection.
    Now I need to create a node which can be added in diagram’s but should not be part of model
    using following statement

To create that part , instead of setting the complete template structure to some node variable, I need to construct the part using category name (used for identifiing the template). How one can achieve that ??

Just copy it.