<?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 and Custom iProperties in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5603774#M118808</link>
    <description>DO you have the code set to run on an event trigger that is running the code?</description>
    <pubDate>Wed, 22 Apr 2015 20:21:15 GMT</pubDate>
    <dc:creator>MechMachineMan</dc:creator>
    <dc:date>2015-04-22T20:21:15Z</dc:date>
    <item>
      <title>iLogic and Custom iProperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5603695#M118806</link>
      <description>&lt;P&gt;Inventor 2014&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm just starting to learn iLogic so I'm going to ask some stupid questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to add some custom iproperties to our files. Some files already has these iproperties and they're filled in; others do not. What I want is to have iLogic enter the missing iproperties and ignore the ones that are there and filled in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I've tried so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oCustProp As Inventor.Property&lt;/P&gt;&lt;P&gt;iProperties.Value("Custom","Critical") = False&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if iProperties.Value("Custom","Critical") = True Then&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;iProperties.Value("Custom","Critical") = False&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that every time I save it changes the Critical iproperty back to False. What am I doing wrong? I've attached the reset of my codes to this threads. These work.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 19:49:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5603695#M118806</guid>
      <dc:creator>douthett</dc:creator>
      <dc:date>2015-04-22T19:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Custom iProperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5603699#M118807</link>
      <description>&lt;P&gt;I really hate how sometime Autodesk screws up my text.&amp;nbsp;&amp;nbsp; When I wrote this I did have paragraghs so it would be easier to read&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 19:47:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5603699#M118807</guid>
      <dc:creator>douthett</dc:creator>
      <dc:date>2015-04-22T19:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Custom iProperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5603774#M118808</link>
      <description>DO you have the code set to run on an event trigger that is running the code?</description>
      <pubDate>Wed, 22 Apr 2015 20:21:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5603774#M118808</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-04-22T20:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Custom iProperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5604164#M118809</link>
      <description>&lt;P&gt;I'm using the iLogic code inside of Design Checker.&amp;nbsp; It's triggered when I save the part/assembly&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 22:37:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5604164#M118809</guid>
      <dc:creator>douthett</dc:creator>
      <dc:date>2015-04-22T22:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Custom iProperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5604230#M118810</link>
      <description>So have your code written is telling it to write it as false every time.&lt;BR /&gt;It should be inside of an if statement if you want it to be conditional.</description>
      <pubDate>Wed, 22 Apr 2015 22:49:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5604230#M118810</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-04-22T22:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Custom iProperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5604296#M118811</link>
      <description>&lt;P&gt;ok so how do I do that?&amp;nbsp; I've rather clueless.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 23:42:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5604296#M118811</guid>
      <dc:creator>douthett</dc:creator>
      <dc:date>2015-04-22T23:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Custom iProperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5604951#M118812</link>
      <description>Dim oCustProp As Inventor.Property&lt;BR /&gt;iProperties.Value("Custom","Critical") = False ' THIS LINE IS NOT CONDTIONAL AND WILL THUS SET THE iPROP TO FALSE EVERY TIME.&lt;BR /&gt;&lt;BR /&gt;if iProperties.Value("Custom","Critical") = True Then ' THIS WILL NEVER RUN AS IT IS ALWAYS SET TO FALSE ABOVE&lt;BR /&gt;Else&lt;BR /&gt;iProperties.Value("Custom","Critical") = False ' THIS WILL ALWAYS BE TRUE BECAUSE IT IS SET TO FALSE ABOVE&lt;BR /&gt;End if&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Apr 2015 13:08:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5604951#M118812</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-04-23T13:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Custom iProperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5605016#M118813</link>
      <description>&lt;P&gt;So you're saying that there is no way to get a code to put in the custom iproperties if it's missing and to have it never change the&amp;nbsp;value if it's different than the default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pleae remember I'm just leanring this.&amp;nbsp; It's been almost 25 yrs sicne I last programed&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 13:28:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5605016#M118813</guid>
      <dc:creator>douthett</dc:creator>
      <dc:date>2015-04-23T13:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Custom iProperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5605060#M118814</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If iProperties.Value("Custom","Critical") = &amp;lt;&amp;gt; "" 'If Critical Is Not Empty&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Do Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Else &amp;nbsp; &amp;nbsp;'Otherwise&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;iProperties.Value("Custom","Critical") = False &amp;nbsp; &amp;nbsp; 'It is obviously not critical and will thus be false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Something like that might work for you. It might throw an error if the Critical Doesn't exist'; i'm not completely sure. But in that case, you would just need:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If iProperties.Value("Custom","Critical") = &amp;lt;&amp;gt; "" 'If Critical Is Not Empty&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Do Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Else &amp;nbsp; &amp;nbsp;'Otherwise&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;iProperties.Value("Custom","Critical") = False &amp;nbsp; &amp;nbsp; 'It is obviously not critical and will thus be false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Catch&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iProperties.Value("Custom","Critical") = False &amp;nbsp; &amp;nbsp; 'It is obviously not critical and will thus be false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;End Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2015 13:35:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5605060#M118814</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-04-23T13:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Custom iProperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5605234#M118815</link>
      <description>&lt;P&gt;Hi douthett,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an iLogic rule similar to what &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2511355"&gt;@MechMachineMan&lt;/a&gt; posted (his rule gave me an error, but the idea was&amp;nbsp;directionally correct).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This rule is looking for a custom &lt;STRONG&gt;Text&lt;/STRONG&gt; iproperty called Critical.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Try 'try to read the custom iproperty&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;If iProperties.Value("Custom","Critical") = "" Then 'If Critical Is Empty&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;'get user input&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;oAnswer = MessageBox.Show("Is this critical?", "iLogic", _&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;MessageBoxButtons.YesNoCancel)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;If oAnswer = vbCancel Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Return 'exit the rule&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Else If oAnswer = vbYes&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;iProperties.Value("Custom","Critical") = "Critical"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Else&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;iProperties.Value("Custom","Critical") = "Not Critical"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Else 'If Critical Is NOT Empty&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;'Do Nothing&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;End if&lt;BR /&gt;Catch 'catch the error is the property doesn't exist&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;MessageBox.Show("No custom iproperty named Critical found.", "iLogic")&lt;BR /&gt;End Try
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;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;</description>
      <pubDate>Thu, 23 Apr 2015 14:53:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5605234#M118815</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2015-04-23T14:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Custom iProperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5614213#M118816</link>
      <description>&lt;P&gt;Sorry I haven't replied until now.&amp;nbsp; Was on a HOT project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was looking at your code and the only problem I can see is that Critical needs to be in Yes/No type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="yes-no.png" title="yes-no.png" height="154" src="https://forums.autodesk.com/t5/image/serverpage/image-id/166370i1B70FFE336249B6F/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" width="261" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the field is never empty... i don't think this would work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some of my early code would put in teh custom iproperties critical if it was missing but the problem was that if I changed it to say Yes (true)&amp;nbsp;the code would change it back to No (false)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 14:29:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5614213#M118816</guid>
      <dc:creator>douthett</dc:creator>
      <dc:date>2015-04-30T14:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Custom iProperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5614694#M118817</link>
      <description>&lt;P&gt;Hi Amy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a slight twist on the code Curtis has to match what you've written in your reply:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;    for yes/no, you must define it as a boolean data type&lt;/SPAN&gt;
    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;bAnswer&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Boolean&lt;/SPAN&gt;
    &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;This will ask the user for input via a yes/no radio input box with default&lt;/SPAN&gt;
    &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;set to "no"&lt;/SPAN&gt;
    &lt;SPAN&gt;bAnswer&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;InputRadioBox&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Is this Critical?&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Yes&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;No&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;iLogic&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
        &lt;SPAN&gt;iProperties&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Custom&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Critical&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;bAnswer&lt;/SPAN&gt;
&lt;SPAN&gt;'''&lt;/SPAN&gt;&lt;SPAN&gt;        You can add this to the Try/End Try code Curtis has given
&lt;/SPAN&gt;&lt;SPAN&gt;'''&lt;/SPAN&gt;&lt;SPAN&gt;         But if you're positive it's always going to be there, you can 
&lt;/SPAN&gt;&lt;SPAN&gt;'''&lt;/SPAN&gt;&lt;SPAN&gt;         also just use these few lines AS your iLogic code. I'd say that's
&lt;/SPAN&gt;&lt;SPAN&gt;'''&lt;/SPAN&gt;&lt;SPAN&gt;         a little dangerous though to be honest.&lt;BR /&gt;&lt;BR /&gt;Daren&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Apr 2015 18:48:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5614694#M118817</guid>
      <dc:creator>Daren.Lawrence</dc:creator>
      <dc:date>2015-04-30T18:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic and Custom iProperties</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5615434#M118818</link>
      <description>&lt;P&gt;&lt;EM&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; For yes/no, you must define it as a boolean data type&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dim&lt;/STRONG&gt; bAnswer &lt;STRONG&gt;As&lt;/STRONG&gt; &lt;STRONG&gt;Boolean&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; False &lt;EM&gt;'default it to "No" or set to True for "Yes"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Try&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dim&lt;/STRONG&gt; bExists &lt;STRONG&gt;As&lt;/STRONG&gt; &lt;STRONG&gt;String&lt;/STRONG&gt; &lt;EM&gt;' If the custom property exists, we'll look at it as a string&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'Report on current custom property value with a message box&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;bExists &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;iProperties&lt;/STRONG&gt;.&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"Custom","Critical"&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;MessageBox&lt;/STRONG&gt;.&lt;STRONG&gt;Show&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;bExists, "'Critical' Value?"&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'Return&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '**Or uncomment this "Return" and comment the line directly above if the&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'dialog box gets annoying&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Catch&lt;/STRONG&gt; &lt;EM&gt;'the Catch just says, "if there's an error" meaning, we'll write the&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;'property if it errors out and can't find the iProperty existing&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;'This next part will ask the user for input via a yes/no radio input box &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;'with default set to "no"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bAnswer &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;InputRadioBox&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"Is this Critical?", "Yes", "No", False, "Critical?"&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;iProperties&lt;/STRONG&gt;.&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;"Custom", "Critical"&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; bAnswer&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;End&lt;/STRONG&gt; &lt;STRONG&gt;Try&lt;/STRONG&gt; &lt;EM&gt;'3 elements needed: Try, Catch and End Try&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;' This is a way to&amp;nbsp;do it from scratch by the sounds of what you want.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Daren&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 13:08:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-and-custom-iproperties/m-p/5615434#M118818</guid>
      <dc:creator>Daren.Lawrence</dc:creator>
      <dc:date>2015-05-01T13:08:14Z</dc:date>
    </item>
  </channel>
</rss>

