J Link error messages
‎Dec 30, 2009
05:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Dec 30, 2009
05:13 PM
J Link error messages
Here's one for all you J Link gurus out there.
I'm using this routine (from Marc Mettes) to display error messages to the
user:
public void DisplayMessage ( String mesg ) throws Exception {
stringseq seq = stringseq.create();
seq.set(0, mesg);
session.UIDisplayMessage(msgFile, "JLOG %s", seq);
seq.clear();
writeLog(mesg);
}
The message this displays is a plain one.
How do I write a message with an error or other symbol, such as the yellow
triangular sign w/ the exclamation point?
--
Lyle Beidler
MGS Inc
178 Muddy Creek Church Rd
Denver PA 17517
717-336-7528
Fax 717-336-0514
<">mailto:-> -
<">http://www.mgsincorporated.com>
I'm using this routine (from Marc Mettes) to display error messages to the
user:
public void DisplayMessage ( String mesg ) throws Exception {
stringseq seq = stringseq.create();
seq.set(0, mesg);
session.UIDisplayMessage(msgFile, "JLOG %s", seq);
seq.clear();
writeLog(mesg);
}
The message this displays is a plain one.
How do I write a message with an error or other symbol, such as the yellow
triangular sign w/ the exclamation point?
--
Lyle Beidler
MGS Inc
178 Muddy Creek Church Rd
Denver PA 17517
717-336-7528
Fax 717-336-0514
<">mailto:-> -
<">http://www.mgsincorporated.com>
1 REPLY 1
‎Dec 30, 2009
05:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Dec 30, 2009
05:51 PM
> How do I write a message with an error or other symbol,
> such as the yellow triangular sign w/ the exclamation point?
Add the appropriate code (%CP, %CW, %CE, etc) to the first
line of the (four line) message file entry you wish to change.
Your line like this:
JLOG %s
would change to this (leave the space for readability):
%CW JLOG %s
Message file changes can be tedious to test because Pro/E only
loads a message file once per session. To test changes, you
have to restart Pro/E.
Marc
--
Marc Mettes
-
Visit My CAD/PDM AutomationBlog
Or, Subscribe to My CAD/PDM Automation Blog by Email