cad.net client server socket communication

This blog has listed an operation that I also implemented in this way. So I will not write it ...

https://www.cnblogs.com/he-xiang/p/7890488.html

 

The reason for listing this is because there was a need to implement the "double-click.vlx" loaded on the currently opened cad,

Then I just started to use com to realize that com cannot load "multiple open states of the same version of cad", which is very bad ...

That is to say, it has:

1: Multiple cads of the same version, open on the current computer

2: Multiple cads of different versions, open on the current computer

The advantage of com is that it only operates one version of one cad ... can only give up com ...

Later, both Feishi and Fucai told me to use winform to achieve multi-threaded processing,

Then write the server of the port on the "win service", so that the port monitoring does not need to be occupied repeatedly, repeated occupation will die ...

Then the client you wrote is the cad plugin, and the console program "Send vlx to cad program.exe" ..

In this way, double-click "Send vlx to cad program.exe" will send information to "win service", "win service" forwards "cad plug-in", "cad plug-in" is equivalent to running on cad .... Do whatever you want.

 

The above are just some ideas and processes, in fact, you will also encounter problems such as modifying the registry of double-clicking the suffix ...

Guess you like

Origin www.cnblogs.com/JJBox/p/12749296.html