Message 1 of 11
Not applicable
01-26-2020
10:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I need to write a Revit addin(the external command) which listens messages from other process (not from revit itself).
In other word, the revit addin would be the server, another process would be a client.
I tried to use async pipe to communicate with other process but revit addin couldn't listen any messages. I think it's because of my server side pipe in revit closed as execute() returns value.
So my question is below.
Is there any way to keep the server pipe still alive even after the addin's execute() finished?
I think I should create a thread in the execute() to resolve this issue. Is this approach feasible?
If there are some example codes, I really appreciate.
Solved! Go to Solution.