Hi,
We need to send parameters during SMART CLIENT activation, in order to use the parameters within our plug-in that is in SMART CLIENT, specific parameters for our development, not a username and password. We would love to hear ways to accomplish such a thing.
Many thanks
I am not sure what you mean by Smart Client activation. If my answer below doesn’t fit please elaborate on what the parameters are and how you envision the use.
You can develop a Smart Client plugin and then you can communicate with it using your preferred communication method.
MIP SDK also comes with a communication option; MessageCommunication. You can explore the Chat sample to see this in use.
https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/intro_mip_messaging.html&tree=tree_4.html
https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/chat/readme.html&tree=tree_1.html
https://github.com/milestonesys
it does not match to me.
I need to send a parameter when opening SMART CLIENT
I open the SMART CLIENT by CMD
For example:
"Client.exe -myParam="111
The parameters exist for me when opening the software.
I want to get the parameters inside the plugin to use the plugin
Incorrect answer, see below
It is not possible to extend the Client with extra parameters and then access the parameter from a MIP plugin.
Perhaps a workaround, instead of making a plugin that can communicate as I suggest above, make a plugin that can read a file on disk. The file could contain “-myParam=111” or anything that might support your integration.
Yes, you can simply use-
Environment.GetCommandLineArgs - https://learn.microsoft.com/en-us/dotnet/api/system.environment.getcommandlineargs?view=netframework-4.7.2
I have tested it. Please note that there are command-line arguments that are implemented and used by the Client.exe itself, so make sure you parse the arguments correctly and extract your arguments.