<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calling Navisworks Commands using Command ID in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/12070578#M1234</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5661631"&gt;@naveen.kumar.t&lt;/a&gt;&amp;nbsp;Tested, working, thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 00:58:17 GMT</pubDate>
    <dc:creator>alexisDVJML</dc:creator>
    <dc:date>2023-06-30T00:58:17Z</dc:date>
    <item>
      <title>Calling Navisworks Commands using Command ID</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/12062426#M1231</link>
      <description>&lt;P&gt;Seems similar question has been asked in the past, without reply:&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/navisworks-api/call-navis-commands-from-our-add-in-ribbon/m-p/8014920" target="_blank"&gt;https://forums.autodesk.com/t5/navisworks-api/call-navis-commands-from-our-add-in-ribbon/m-p/8014920&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However it would be very useful, so asking again &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; with a little bit extra details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RoamerCommands.xml file contains a list of Roamer commands, exemple:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Command ID="RoamerGUI_EDIT_RESET_COLOUR" /&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;So the question is simple,&amp;nbsp; how to run a CanExecute and an Execute using a Command ID string?&lt;BR /&gt;I really try hard to find before reverting to asking, hoping we can get help on this.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 02:40:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/12062426#M1231</guid>
      <dc:creator>alexisDVJML</dc:creator>
      <dc:date>2023-06-27T02:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Navisworks Commands using Command ID</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/12066279#M1232</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6001790"&gt;@alexisDVJML&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please take a look at the below link&lt;BR /&gt;&lt;STRONG&gt;&lt;A href="https://www.houseofbim.com/posts/naviworks-net-executecommand-method/" target="_blank" rel="noopener"&gt;https://www.houseofbim.com/posts/naviworks-net-executecommand-method/&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Here is the sample code that worked for me&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;private void MyCode(Document doc)
        {
            string commandId = "RoamerGUI_EDIT_RESET_COLOUR";
            string commandId2 = "RoamerGUI_EDIT_OVERRIDE_TRANSPARENCY";
            Autodesk.Navisworks.Api.Interop.LcUCIPExecutionContext av = Autodesk.Navisworks.Api.Interop.LcUCIPExecutionContext.eTOOLBAR;
            try
            {               
                Autodesk.Navisworks.Api.Interop.LcRmFrameworkInterface.ExecuteCommand(commandId2, av);
            }
            catch
            {
                System.Windows.Forms.MessageBox.Show("This tool does not appear to be supported");
            }
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 28 Jun 2023 12:16:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/12066279#M1232</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2023-06-28T12:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Navisworks Commands using Command ID</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/12069755#M1233</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5661631"&gt;@naveen.kumar.t&lt;/a&gt;&amp;nbsp; Excellent, Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 16:43:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/12069755#M1233</guid>
      <dc:creator>alexisDVJML</dc:creator>
      <dc:date>2023-06-29T16:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Navisworks Commands using Command ID</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/12070578#M1234</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5661631"&gt;@naveen.kumar.t&lt;/a&gt;&amp;nbsp;Tested, working, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 00:58:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/12070578#M1234</guid>
      <dc:creator>alexisDVJML</dc:creator>
      <dc:date>2023-06-30T00:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Navisworks Commands using Command ID</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/13791607#M8240</link>
      <description>&lt;P&gt;Hi, there is a problem I got. I want to post the parameter to the commond. However I have no idea how to post.&lt;/P&gt;&lt;P&gt;Below is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string commandId2 = "RoamerGUI_OM_MEASURE_PT_TO_PT";
Autodesk.Navisworks.Api.Interop.LcUCIPExecutionContext av = Autodesk.Navisworks.Api.Interop.LcUCIPExecutionContext.eTOOLBAR;
try
{
    Autodesk.Navisworks.Api.Interop.LcRmFrameworkInterface.ExecuteCommand(commandId2, av);
}
catch
{
    System.Windows.Forms.MessageBox.Show("This tool does not appear to be supported");
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Sep 2025 15:45:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/13791607#M8240</guid>
      <dc:creator>BIM-ZhagnXuetao</dc:creator>
      <dc:date>2025-09-01T15:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Navisworks Commands using Command ID</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/13791614#M8241</link>
      <description>&lt;LI-CODE lang="csharp"&gt;string commandId2 = "RoamerGUI_OM_MEASURE_PT_TO_PT";
Autodesk.Navisworks.Api.Interop.LcUCIPExecutionContext av = Autodesk.Navisworks.Api.Interop.LcUCIPExecutionContext.eTOOLBAR;
try
{
    Autodesk.Navisworks.Api.Interop.LcRmFrameworkInterface.ExecuteCommand(commandId2, av);
}
catch
{
    System.Windows.Forms.MessageBox.Show("This tool does not appear to be supported");
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Sep 2025 15:45:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/13791614#M8241</guid>
      <dc:creator>BIM-ZhagnXuetao</dc:creator>
      <dc:date>2025-09-01T15:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Navisworks Commands using Command ID</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/13791625#M8242</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14197893"&gt;@BIM-ZhagnXuetao&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Please follow the steps outlined &lt;STRONG&gt;&lt;A href="https://twentytwo.space/2020/04/08/creating-navisworks-add-ins/" target="_blank"&gt;in this link&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;public class MainClass : AddInPlugin
    {
        public override int Execute(params string[] parameters)
        {
            //Place the code here
            return 0;
        }
    }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 15:51:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/calling-navisworks-commands-using-command-id/m-p/13791625#M8242</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2025-09-01T15:51:27Z</dc:date>
    </item>
  </channel>
</rss>

