Message Boards Message Boards

0
|
3237 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Access to low level severity messages

Posted 11 years ago

If I run:

Graphics3D[ { Red, Sphere[] } ]
MessageList[$Line - 1]

the output is {} as no message has been generated when producing the graphic.

Now, if I run:

Graphics3D[ { red, Sphere[] } ]
MessageList[$Line - 1]

the ouput is still {}, although on the console the message: "red is not a Graphics3D primitive or directive." has been correctly generated when producing the incorrect graphic.

How to get access to this message, or at least know that a low level message has been generated to take proper action?

Thanks.

POSTED BY: Alain Herve
2 Replies
Posted 11 years ago

Yes,

that does it. I have to learn how to manipulate this list!

Thanks,

A.

POSTED BY: Updating Name

These messages do not appear in MessageList since they aren't generated by the kernel, but by the front end rendering. To access them, try

MathLink`CallFrontEnd[FrontEnd`GetErrorsInSelectionPacket[EvaluationNotebook[]]]
POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract