<?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: iLogic to Change Read Only state of file(s) in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-read-only-state-of-file-s/m-p/9381133#M107288</link>
    <description>&lt;P&gt;Maybe explaining why you want this functionality would be helpful/wise,etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VB/system.io has the functionality you want though..&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2020 20:09:03 GMT</pubDate>
    <dc:creator>mcgyvr</dc:creator>
    <dc:date>2020-03-16T20:09:03Z</dc:date>
    <item>
      <title>iLogic to Change Read Only state of file(s)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-read-only-state-of-file-s/m-p/9381021#M107287</link>
      <description>&lt;P&gt;Exhausted my searched and didn't find anything so just posting a quick question.&amp;nbsp; Can you change the read only state of a file (or files) with iLogic (or something else) from inside Inventor?&amp;nbsp; Looking for a quick and dirty (non-Vault) way to change the state of files.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 18:58:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-read-only-state-of-file-s/m-p/9381021#M107287</guid>
      <dc:creator>phlyx</dc:creator>
      <dc:date>2020-03-16T18:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to Change Read Only state of file(s)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-read-only-state-of-file-s/m-p/9381133#M107288</link>
      <description>&lt;P&gt;Maybe explaining why you want this functionality would be helpful/wise,etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VB/system.io has the functionality you want though..&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 20:09:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-read-only-state-of-file-s/m-p/9381133#M107288</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2020-03-16T20:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to Change Read Only state of file(s)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-read-only-state-of-file-s/m-p/9381253#M107289</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/678344"&gt;@phlyx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This question would have been better placed on the&amp;nbsp;&amp;nbsp;Inventor Customization forum so I've asked the moderators to move it to there, please keep that in mind for the future&lt;BR /&gt;&lt;A href="http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120" target="_blank"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as for your question though, here is an example I had on hand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;strPath&lt;/SPAN&gt; =  &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Directory&lt;/SPAN&gt;.&lt;SPAN&gt;GetParent&lt;/SPAN&gt;(&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;FullFileName&lt;/SPAN&gt;).&lt;SPAN&gt;FullName&lt;/SPAN&gt;


&lt;SPAN&gt;'set read only off for each file in the folder&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;dir&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;DirectoryInfo&lt;/SPAN&gt;(&lt;SPAN&gt;strPath&lt;/SPAN&gt;)
 &lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;File&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;FileInfo&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;dir&lt;/SPAN&gt;.&lt;SPAN&gt;GetFiles&lt;/SPAN&gt;(&lt;SPAN&gt;"*"&lt;/SPAN&gt;, &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;SearchOption&lt;/SPAN&gt;.&lt;SPAN&gt;AllDirectories&lt;/SPAN&gt;)
     &lt;SPAN&gt;' Set flag.&lt;/SPAN&gt;
     &lt;SPAN&gt;File&lt;/SPAN&gt;.&lt;SPAN&gt;IsReadOnly&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
 &lt;SPAN&gt;Next&lt;/SPAN&gt;
	 
&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Read Only turned off for all files in: "&lt;/SPAN&gt;  &amp;amp;&lt;SPAN&gt;vbLf&lt;/SPAN&gt; &amp;amp;&lt;SPAN&gt;vbLf&lt;/SPAN&gt; &amp;amp; _
&lt;SPAN&gt;strPath&lt;/SPAN&gt;, &lt;SPAN&gt;"iLogic"&lt;/SPAN&gt;, &lt;SPAN&gt;MessageBoxButtons&lt;/SPAN&gt;.&lt;SPAN&gt;OK&lt;/SPAN&gt;, &lt;SPAN&gt;MessageBoxIcon&lt;/SPAN&gt;.&lt;SPAN&gt;Information&lt;/SPAN&gt;)

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 21:02:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-read-only-state-of-file-s/m-p/9381253#M107289</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2020-03-16T21:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to Change Read Only state of file(s)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-read-only-state-of-file-s/m-p/9382570#M107290</link>
      <description>&lt;P&gt;That's close but that handles all files in a folder.&amp;nbsp; We're really just looking to have something we can click on to toggle read only on and off for the active document we're in.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why we're looking to do this is that we are nowhere close to being at a position to even consider Vault so we're trying to do some minor file editing control using the file properties to protect completed designs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 14:16:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-read-only-state-of-file-s/m-p/9382570#M107290</guid>
      <dc:creator>phlyx</dc:creator>
      <dc:date>2020-03-17T14:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to Change Read Only state of file(s)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-read-only-state-of-file-s/m-p/9382626#M107291</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/678344"&gt;@phlyx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see this example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;sFileName&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveEditDocument&lt;/SPAN&gt;.&lt;SPAN&gt;fullfilename&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFile&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;FileInfo&lt;/SPAN&gt; 
&lt;SPAN&gt;oFile&lt;/SPAN&gt; = &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;FileInfo&lt;/SPAN&gt;(&lt;SPAN&gt;sFileName&lt;/SPAN&gt;)
&lt;SPAN&gt;oFile&lt;/SPAN&gt;.&lt;SPAN&gt;IsReadOnly&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 14:43:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-read-only-state-of-file-s/m-p/9382626#M107291</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2020-03-17T14:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic to Change Read Only state of file(s)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-read-only-state-of-file-s/m-p/9382680#M107292</link>
      <description>&lt;P&gt;All I can say is PERFECT!&amp;nbsp; &amp;nbsp;Created a quick form that you can access while in a part or assembly and change the read-only state on or off.&amp;nbsp; That is exactly what we needed!&amp;nbsp; &amp;nbsp;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 15:02:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-change-read-only-state-of-file-s/m-p/9382680#M107292</guid>
      <dc:creator>phlyx</dc:creator>
      <dc:date>2020-03-17T15:02:44Z</dc:date>
    </item>
  </channel>
</rss>

