How can I capture an entire structure to print to a notebook? My structure contains all sorts of things, so StructPut fails. The purpose is for debugging ... I want to review the structure throughout various stages in processing in a bit more comfort than afforded by the history window. Am my left to parse each portion of the structure to print separately, or can print MYSTUCTURE somehow be "redirected"?
I notice back in Aug 30 2006, Jan Ilavsky had nearly this same question on the Igor mailing list. I did not find a response.
It seems like you could just use the print operation to put the structure into the history window and use CaptureHistory() and CaptureHistoryStart() to grab the history into a string and then place that in a notebook.
[quote=aclight]It seems like you could just use the print operation to put the structure into the history window and use CaptureHistory() and CaptureHistoryStart() to grab the history into a string and then place that in a notebook.[/quote]
Oh! Yes, perfect. Thanks!
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH
[quote=aclight]It seems like you could just use the print operation to put the structure into the history window and use CaptureHistory() and CaptureHistoryStart() to grab the history into a string and then place that in a notebook.[/quote]
Oh, wow! Someone actually knows about CaptureHistory, and someone else thinks it's useful!
CaptureHistory()andCaptureHistoryStart()to grab the history into a string and then place that in a notebook.April 23, 2009 at 04:01 am - Permalink
CaptureHistory()andCaptureHistoryStart()to grab the history into a string and then place that in a notebook.[/quote]Oh! Yes, perfect. Thanks!
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH
April 23, 2009 at 06:28 am - Permalink
CaptureHistory()andCaptureHistoryStart()to grab the history into a string and then place that in a notebook.[/quote]Oh, wow! Someone actually knows about CaptureHistory, and someone else thinks it's useful!
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
April 23, 2009 at 04:49 pm - Permalink