Hi @eduardo_salvador02 ,
Do you want to disable those buttons or Do you want to turn of/off those buttons?
I tried to disable the buttons but it is not working as expected.
Here is the sample code to turn on/off those buttons
string commandId1 = "RoamerGUI_OM_PRIMITIVE_TRIANGLES";
string commandId2 = "RoamerGUI_OM_PRIMITIVE_LINES";
string commandId3 = "RoamerGUI_OM_PRIMITIVE_SNAP_POINTS";
string commandId4 = "RoamerGUI_OM_PRIMITIVE_TEXT";
string commandId5 = "RoamerGUI_OM_PRIMITIVE_POINTS";
Autodesk.Navisworks.Api.Interop.LcUCIPExecutionContext av = Autodesk.Navisworks.Api.Interop.LcUCIPExecutionContext.eTOOLBAR;
try
{
Autodesk.Navisworks.Api.Interop.LcRmFrameworkInterface.ExecuteCommand(commandId1, av);
Autodesk.Navisworks.Api.Interop.LcRmFrameworkInterface.ExecuteCommand(commandId2, av);
Autodesk.Navisworks.Api.Interop.LcRmFrameworkInterface.ExecuteCommand(commandId3, av);
Autodesk.Navisworks.Api.Interop.LcRmFrameworkInterface.ExecuteCommand(commandId4, av);
Autodesk.Navisworks.Api.Interop.LcRmFrameworkInterface.ExecuteCommand(commandId5, av);
}
catch
{
System.Windows.Forms.MessageBox.Show("This tool does not appear to be supported");
}
Naveen Kumar T
Developer Technical Services
Autodesk Developer Network