public override int ExecuteCommand(string commandId, params string[] parameters)
{
// Version
if (!Autodesk.Navisworks.Api.Application.Version.RuntimeProductName.Contains("2015"))
{
MessageBox.Show("Incompatible Navisworks Version" +
"\nThis Add-In was built for Navisworks 2015, please contact info@case-inc for assistance...",
"Cannot Continue!",
MessageBoxButtons.OK,
MessageBoxIcon.Error);
return 0;
}
switch (commandId)
{
case "ID_Navis2BCF":
{
LaunchNavis2Bcf();
break;
}
default:
{
MessageBox.Show("You have clicked on the command with ID = '" + commandId + "'");
break;
}
}
return 0;
}