Thank you Vaclav, at least now I know there’s no easy way to duplicate default functionality. So I’ll just have to determine the best way to accomplish what I need.
The reasoning for this is that we have requirements on the format of constraint names. All constraints have the format: type_tableAbbreviation_column (where type is 3 characters or less and table abbreviation is 5 characters or less). Since the same table abbreviations are used for PK, FK, UK, NN, CK it means typing essentially the same thing many many times.
My intention was to create a variable, say %tableabbr%, so that I could automatically populate constraint names with ex. pk_%tableabbr%_%atrname%. For each table you could go to the advanced tab and create your abbreviation once and all constraints would be named automatically upon generation. If you ever changed the abbreviation all the constraints would be updated automatically as well.
I know that I could create a template which would perform a renaming pass upon demand. This would reduce developer time but would need to be run after any changes. We do have multiple developers though and I always prefer to limit manual processes and human error as much as possible.
My current thinking is that I could create a jscript function which accepts a constraint name and a user variable name, returning the altered constraint name. It could replace occurances of the user variable with the table abbreviation to simulate default functionality. This would require extensive editing of the existing templates to ensure all occurances of the constraint name were replaced with the function but it would only have to be done once.