Marce2
Mechanical
- Sep 10, 2013
- 2
Hey there guys!
I'm using Visual Basic code within the Visual Studio IDE to automate an analysis within Femap. Up until now, I've just told VS to wait for a time duration I specify while Femap is running an analysis, s.t. Femap has time to generate the data that VS will Get and then write it into an excel file for me.
I want to transition to using Femap Events. These allow us to generate and send messages that go into a message queue that can be accessed by other programs. The section there in the API reference gives sample code, though it isn't VB. I haven't been able to correctly modify it to run in VS, and so I've been researching message queues in VS (MSMQ) but it's byzantine and complicated and I haven't had any joy yet.
I was wondering if anyone had a similar experience, or perhaps even had some sample code out there that shows how to tell VS to listen for messages, tells Femap to generate them, and tells VS to act upon getting the message.
Thanks in advance for the help!
Marce
I'm using Visual Basic code within the Visual Studio IDE to automate an analysis within Femap. Up until now, I've just told VS to wait for a time duration I specify while Femap is running an analysis, s.t. Femap has time to generate the data that VS will Get and then write it into an excel file for me.
I want to transition to using Femap Events. These allow us to generate and send messages that go into a message queue that can be accessed by other programs. The section there in the API reference gives sample code, though it isn't VB. I haven't been able to correctly modify it to run in VS, and so I've been researching message queues in VS (MSMQ) but it's byzantine and complicated and I haven't had any joy yet.
I was wondering if anyone had a similar experience, or perhaps even had some sample code out there that shows how to tell VS to listen for messages, tells Femap to generate them, and tells VS to act upon getting the message.
Thanks in advance for the help!
Marce