My project has a font that is using all capital letters for all text, and small letters for symbols not on the keyboard. The problem is that all of my file names are in small letters and so is our Microstation username. When I do a predefined text substitution replacement such as for $(USERNAME or _FILEL_, I can't read the operator name or the filename because it's all a bunch of symbols. Is there any kind of switch that would convert it or read it as all caps before applying it to the plot stamp?
Thanks
-brenda
Thanks Todd,
That worked! The "Step By Step Guide" helped to set it up in a dgnlib first, and showed a list of all the other variables that can be used to change just about anything. This will definitely come in handy in the future.
-Brenda
You may be able to use Named Expressions to accomplish this.
The following will return the file name in uppercase characters:
System.String.ToUpper (ActiveFile.FileName)
The following will return the user name in uppercase characters:
System.String.ToUpper (System.Environment.UserName ())
“filename” and “user” were used in the example below
Refer to Andrew’s blog “A Step-by-Step Guide for Advanced Pen Table TextSubstitution”
http://communities.bentley.com/other/old_site_member_blogs/bentley_employees/b/andrew_edges_blog/archive/2009/04/29/a-step-by-step-guide-for-advanced-pen-table-text-substitution.aspx
Answer Verified By: TRCBJY