In a macro, sending a command to Openroads is possible by using "CadInputQueue.SendKeyin XXXXXX" But how can I send a Openroads command using c# ? I need to use a standart report from openroads. I get it in a macro using the command starting with: CadInputQueue.SendKeyin "GEOMETRY REPORT GEOMETRY "
I am using Bentley Openroads Designer Connect Edition(ver. 10.08.01.33) and the latest Openroads SDK.
Sending a keyin with a C# addin is simply a matter of accessing the active session instance (make sure you include "using Bentley.MstnPlatformNET;") and calling the Keyin method with your command string argument, like this:
Session.Instance.Keyin("geometry report geometry");
I hope this helps.