Anyone figured out how to underline text in a formula property set definition (perhaps using vbscript)?
-Buzz
|
|
|
Anyone figured out how to underline text in a formula property set definition (perhaps using vbscript)?
-Buzz
I have tried:
RESULT = "<u>" & TEXT & "</u>"
RESULT = <u>TEXT</u>
RESULT = "ULine(TEXT)
RESULT = "%%U" & TEXT
RESULT = %%UTEXT
RESULT = "^u" & TEXT
RESULT = ^uTEXT
None work...
-Buzz
Hmmm, %%U has worked for me to create an underlined equipment tag. Maybe the SSs will help?
-Brad
I have not tried it lately, but I have had success using a formula property to concatenate "%%u" in front of text to be underlined.
This blog post has a link to a thread in the Autodesk Discussion Groups that has a sample file attached, if that would be of any help to you.
Depending upon your circumstances, you may find that using a Property Data Format to do the underlining works as well (or possibly better).
Perhaps the reason why %%U doesn't work for you is because your tag uses MText?
I know I made my tag using DText, and it works fine, and typing %%U into MText has no effect whatsoever.
Just an idea,
-Brad
Brad,
I think you are correct - but I am not using the PSD for a tag, I am referencing it in a Schedule Table.
...and I think when I explode a Schedule Table the text becomes mtext...
[running out to check what happens when I explode a Schedule Table]
Ok, I'm back... yes it is mtext in the Table.
soo.... any other ideas?
-Buzz
David,
I tried creating a new Property Data Format, which has a prefix of %%u, but that did not underline (it just added the string %%u in front of the text (because it is mtext).
-Buzz
I'd give David's second link a shot; using a Property Data Format to control the underlining.
If you tried this and it didn't work, then I'm out of ideas for now...
-Brad
Edit: oops.. you beat me before I could post...
Buzz, maybe you could try this?: http://www.cadforum.cz/cadforum_en/qaID.asp?tip=4324
It didn't work for me in regular MText, but maybe it'll work when passed through the VBScript...
-Brad
Brad,
I owe you a beer! [Insert dancing smiley here]
Thanks a ton man - works great!
-Buzz