<?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 Opening A File With Inventor (Read Only) From the Command Line in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608434#M139302</link>
    <description>&lt;P&gt;I want to open an .ipt or .iam with InvRO.exe (Inventor Read Only) from the command line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can open Inventor from the command line. I can open the file from the command line but it defaults to the full version when it opens. I know I can change the file types to always open with the Read Only but I want to leave them as is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I launch InvRO.exe from the command line and have it open a specified app?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jun 2020 18:32:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-29T18:32:21Z</dc:date>
    <item>
      <title>Opening A File With Inventor (Read Only) From the Command Line</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608434#M139302</link>
      <description>&lt;P&gt;I want to open an .ipt or .iam with InvRO.exe (Inventor Read Only) from the command line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can open Inventor from the command line. I can open the file from the command line but it defaults to the full version when it opens. I know I can change the file types to always open with the Read Only but I want to leave them as is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I launch InvRO.exe from the command line and have it open a specified app?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 18:32:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608434#M139302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-29T18:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Opening A File With Inventor (Read Only) From the Command Line</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608469#M139303</link>
      <description>&lt;P&gt;Unfortunately it's not that easy.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like would need to have the Read Only open and pick it...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but if you're file type is set to the Inventor.exe and not the Read only it's going to default that&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 18:54:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608469#M139303</guid>
      <dc:creator>mdavis22569</dc:creator>
      <dc:date>2020-06-29T18:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Opening A File With Inventor (Read Only) From the Command Line</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608532#M139304</link>
      <description>&lt;P&gt;If the Read Only is open, can I attach to it?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 19:26:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608532#M139304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-29T19:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Opening A File With Inventor (Read Only) From the Command Line</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608539#M139305</link>
      <description>&lt;P&gt;You should be able to just open it from Read Only then ... not double clicking in Explorer&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 19:28:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608539#M139305</guid>
      <dc:creator>mdavis22569</dc:creator>
      <dc:date>2020-06-29T19:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Opening A File With Inventor (Read Only) From the Command Line</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608584#M139306</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get Inventor 2020 Read-only to launch from the command line using the path below in the CMD prompt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"C:\Program Files\Autodesk\Inventor 2020\Bin\InvRO.exe"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding a file path behind that will open the file in Inventor Read-only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"C:\Program Files\Autodesk\Inventor 2020\Bin\InvRO.exe" "C:\path to\some\File.ipt"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the full command a second time opens a second instance of Inventor Read-only. But it seems using just the file path will cause it to open the previously opened Inventor Read-only.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 19:54:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608584#M139306</guid>
      <dc:creator>pball</dc:creator>
      <dc:date>2020-06-29T19:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Opening A File With Inventor (Read Only) From the Command Line</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608666#M139307</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;How do I launch InvRO.exe from the command line and have it open a specified app?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you do not want to change file associations to invRO you need a little bit smarter code to achieve that: I have an idea in my mind, and I think it could work. Unfortunately it's too late on this side of the ocean, and tomorrow I have a very dense day, but on Wednesday I'll verify if my idea works and I will write you the code you need.&lt;/P&gt;&lt;P&gt;Give me a couple of days... (this post is actually useless &lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;, but if I didn't post I would risk to lose your question)&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 20:35:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608666#M139307</guid>
      <dc:creator>freesbee</dc:creator>
      <dc:date>2020-06-29T20:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Opening A File With Inventor (Read Only) From the Command Line</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608669#M139308</link>
      <description>&lt;P&gt;You are right, that is working from the Command Line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to replicate that with VB.Net Process&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Process.Start("C:\Program Files\Autodesk\Inventor\Bin\InvRO.exe", "C:\Some Path\Some File.ipt")&lt;/P&gt;&lt;P&gt;But it won't open the file...just the application.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 20:37:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9608669#M139308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-29T20:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Opening A File With Inventor (Read Only) From the Command Line</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9612739#M139309</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;...so this is the solution to the question you have originally stated:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;"opening a file with Inventor ReadOnly from the command line"&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Now you have changed your request a little bit, so if you mark my answer as solution I will be glad to support you in your new task of&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;EM&gt;"opening a file with Inventor ReadOnly from a VB.net executable"&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;(you know: my Autodesk mentor told me that I need "solutions"...).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Assumptions&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I will assume the followings:&lt;/FONT&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT color="#000000"&gt;Inventor is on the 2020 release, and installed in the default folder (as stated above in the other posts)&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#000000"&gt;Inventor ReadOnly is already initialized on your system and in the active userprofile&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#000000"&gt;your ipj file is correct and properly loaded&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I hope I didn't forget anything &lt;/FONT&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5" color="#0000FF"&gt;&lt;STRONG&gt;The logic&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;As you already realized if you call the invRO.exe passing a FQFN of an inventor file, that file will be opened in Inventor ReadOnly. The problem is that, if you do it again, another instance of Inventor ReadOnly will be opened, and you do not want this. The batch code I am giving you will first check if inventor ReadOnly is running, and then decide how to handle the argument you have passed: inventor ReadOnly will be launched if needed, or simply the file will be opened.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;How TO&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;You can easily achieve what you have asked if you place a properly crafted cmd file in your "C:\Windows\System32" folder, or in any other folder included in the path. If you do not want to place the file in a path folder, then the only difference will be that you will need to call the cmd file with full qualified file name.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Usage&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;In my computer I have created the C:\Windows\System32\InvRO.cmd&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Then I simply need to enter in the commandline the following&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;C:\&amp;gt; invro D:\CAD\myPart.ipt&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;and the inventor file myPart.ipt will be opened in Inventor ReadOnly without changing file associations.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Be aware to wrap the filename in quotes in case you have spaces inside, otherwise the interpreter could misinterpret the argument, assuming that 2 arguments are passed:&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;C:\&amp;gt; invro "D:\CAD\my Part.ipt"&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;will work, while&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;C:\&amp;gt; invro D:\CAD\my Part.ipt&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;will almost for sure fail&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;The InvRO.cmd file&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Leaving away bells and whistles, I have simply written the bare code you need to achieve what you have asked. You can freely adapt to your specific needs.&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;tasklist | find /I "InvRO.exe" &amp;gt;nul 2&amp;gt;&amp;amp;1 &amp;amp;&amp;amp; (
 "%~1"
) || (
 start "%ProgramFiles%\Autodesk\Inventor 2020\bin\InvRO.exe" "%~1"
)
:EOF&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Additional Considerations&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;With some additional effort it would be possible to control the active ipj from the batch file, but since you have already indicated that you need to realize a little bit different task, I think this can be considered a valid solution for your current question, and we'll see in the future how to handle the other task.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I hope this is a solution to your question.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 15:30:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9612739#M139309</guid>
      <dc:creator>freesbee</dc:creator>
      <dc:date>2020-07-01T15:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Opening A File With Inventor (Read Only) From the Command Line</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9612796#M139310</link>
      <description>&lt;P&gt;Awesome answer. Thanks for the information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since my question has evolved, should I start a new thread or continue in this one?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 15:49:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9612796#M139310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-01T15:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Opening A File With Inventor (Read Only) From the Command Line</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9612848#M139311</link>
      <description>&lt;P&gt;...start a new one with the proper title, but now I'm sorry: I have some guests for dinner and I need to prepare their dinner.&lt;/P&gt;&lt;P&gt;But I'll be here around again &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 16:12:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9612848#M139311</guid>
      <dc:creator>freesbee</dc:creator>
      <dc:date>2020-07-01T16:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Opening A File With Inventor (Read Only) From the Command Line</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9767512#M139312</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;...now we have an idea to vote to have an &lt;U&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/expose-an-inventor-readonly-api-invro-api/idc-p/9767504#M40353" target="_blank" rel="noopener"&gt;Inventor ReadOnly API exposed&lt;/A&gt;&lt;/U&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;If this idea is implemented, the limitations discussed up here will be addressed, so vote up!!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 05:04:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/opening-a-file-with-inventor-read-only-from-the-command-line/m-p/9767512#M139312</guid>
      <dc:creator>freesbee</dc:creator>
      <dc:date>2020-09-25T05:04:12Z</dc:date>
    </item>
  </channel>
</rss>

