Hi,
Here's some more background about the problem. There are two versions of my software, a GUI and a command-line version. You can download them from
https://www.nist.gov/services-resources/software/step-file-analyzer-and-viewer and the source code is on
GitHub
https://github.com/usnistgov/SFA
The IFCsvr generates some text output when the COM object is created and then when the COM object is used. In the GUI version I have no idea where that text output goes. However, in the command-line, both sets of text are created. I'm not interested
in the first text when the COM object is created, but the other is useful.
So, in the command-line version I want to suppress the first bit of text, but keep the second set of text which is already the behavior. In the GUI version, I'd also like to get the second set of text, but it's not as important. The suppression is more
important in the command-line version.
In general, what would be the common ways to redirect output from: set objIFCsvr [::tcom::ref createobject IFCsvr.R300]
I have considered twapi which would also let me to upgrade to Tcl 8.6 but it doesn't really buy me anything. Years ago I started making a twapi version but never finished. I never liked the twapi syntax for iterating on a COM object. Tcom has ::tcom::
foreach which looks a lot better.
Thanks,
Bob
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)