Here is the issue I am trying to resolve. On a drawing title block I would like to display the drawing number for the part or assembly. Normally, this is done by just referencing the file name of the model view, \$PRPSHEET:{SW-File Name(File Name)}. However, when there are configurations where each configuration is named a unique drawing number, how do I automatically have the title block not display the filename, but rather display the configuration name? The answer would appear to be simply display the configuration name in the title block instead, or \$PRPSHEET:{SW-Configuration Name(Configuration Name)}.
Now, the issue is that when there is only the default configuration for a part or assembly, that configuration is called "default". I would like to setup my template files so that the name of the default configuration is equal to the file name. Is there a way to do this?
How does everyone else have their drawing title blocks setup? What property to you use to display the drawing number, and is there a better way to address this issue of handling parts with and without configurations?
Thanks in advance!
SolidworksApi macros