<?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: i-Logic , stop updating model if DIMS are wrong or not allowed. in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/i-logic-stop-updating-model-if-dims-are-wrong-or-not-allowed/m-p/9070302#M166475</link>
    <description>&lt;P&gt;Hi, thank you for the reply and next time i will post these kind of questions at the correct forum.&lt;/P&gt;&lt;P&gt;This solution is not what I am actually after. I have my model designed in a way that steps are generated&amp;nbsp; by a pattern- i don't use i-logic for that-&amp;nbsp; and steps have only a minimum height that changes accordingly with the ladder's height. There is no other code everything else is at the parameters table. I was after a "stop" command like the exit loop that you wrote, but to prevent model to update when the user enters a "wrong" or too "big" dimension.&lt;/P&gt;&lt;P&gt;I will try definitely use the loop command in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Oct 2019 07:32:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-07T07:32:41Z</dc:date>
    <item>
      <title>i-Logic , stop updating model if DIMS are wrong or not allowed.</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/i-logic-stop-updating-model-if-dims-are-wrong-or-not-allowed/m-p/9066914#M166473</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am designing a ladder and I want the maximum number of steps to be 16.&lt;/P&gt;&lt;P&gt;User only provides the height, and the parameters create the number of steps.&lt;/P&gt;&lt;P&gt;So if the user provides a height that needs more than 16 steps there is a pop up message that informs the user that needs to give sorter height and at that point I want my model not to update and have the last working dimensions.&lt;/P&gt;&lt;P&gt;I was thinking maybe something like the break command (C++)?&lt;/P&gt;&lt;P&gt;I have also tried to loop the height so I can provide the closest dim to 16 steps but software seems to stop working.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; step&lt;SPAN&gt;_final&lt;/SPAN&gt; &amp;gt; 17 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Steps must be less than 16, Please place a landing"&lt;/SPAN&gt;, &lt;SPAN&gt;"TECHNICAL SPECIFICATIONS"&lt;/SPAN&gt;)
	&lt;SPAN&gt;Do&lt;/SPAN&gt; 
		&lt;SPAN&gt;Heigth&lt;/SPAN&gt;  = &lt;SPAN&gt;Heigth&lt;/SPAN&gt; - 100
	&lt;SPAN&gt;Loop&lt;/SPAN&gt; &lt;SPAN&gt;Until&lt;/SPAN&gt; &lt;SPAN&gt;n_final&lt;/SPAN&gt; &amp;lt; 17

&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;	&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 10:52:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/i-logic-stop-updating-model-if-dims-are-wrong-or-not-allowed/m-p/9066914#M166473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-04T10:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: i-Logic , stop updating model if DIMS are wrong or not allowed.</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/i-logic-stop-updating-model-if-dims-are-wrong-or-not-allowed/m-p/9067524#M166474</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Programming questions of this type are better asked on the I&lt;STRONG&gt;nventor Customization forum&lt;/STRONG&gt;&amp;nbsp;:&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;With that in mind for the future, I don't think the program stops working, but you are sending it into an endless loop. Without seeing your complete code , I think maybe something like the example below would work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;reference link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dotnetperls.com/for-vbnet" target="_blank"&gt;https://www.dotnetperls.com/for-vbnet&lt;/A&gt;&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;oHeight = InputBox("Enter Ladder Height", "iLogic", 1500)
oLadderStep = InputBox("Enter Height of each step in the ladder", "iLogic", 100)

' This loop uses -Step to go down oLadderStep each iteration.
i = 0
For Actual_Height As Integer = oHeight To 0 Step - oLadderStep		
	
	If i = 16 Then
		MessageBox.Show("Max number of steps is 16, Please place a landing", "TECHNICAL SPECIFICATIONS")
		Exit For 'exit loop
	Else 
		i = i + 1
		'code to add step to model goes here

	End if    
Next

MessageBox.Show("Number of Steps = " &amp;amp; i &amp;amp; vbLf &amp;amp; _
	"Actual total height is " &amp;amp; i * oLadderStep, "ilogic")&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Oct 2019 15:36:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/i-logic-stop-updating-model-if-dims-are-wrong-or-not-allowed/m-p/9067524#M166474</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2019-10-04T15:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: i-Logic , stop updating model if DIMS are wrong or not allowed.</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/i-logic-stop-updating-model-if-dims-are-wrong-or-not-allowed/m-p/9070302#M166475</link>
      <description>&lt;P&gt;Hi, thank you for the reply and next time i will post these kind of questions at the correct forum.&lt;/P&gt;&lt;P&gt;This solution is not what I am actually after. I have my model designed in a way that steps are generated&amp;nbsp; by a pattern- i don't use i-logic for that-&amp;nbsp; and steps have only a minimum height that changes accordingly with the ladder's height. There is no other code everything else is at the parameters table. I was after a "stop" command like the exit loop that you wrote, but to prevent model to update when the user enters a "wrong" or too "big" dimension.&lt;/P&gt;&lt;P&gt;I will try definitely use the loop command in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 07:32:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/i-logic-stop-updating-model-if-dims-are-wrong-or-not-allowed/m-p/9070302#M166475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-07T07:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: i-Logic , stop updating model if DIMS are wrong or not allowed.</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/i-logic-stop-updating-model-if-dims-are-wrong-or-not-allowed/m-p/9071122#M166476</link>
      <description>&lt;P&gt;After some time I manage to find a solution.&lt;/P&gt;&lt;P&gt;for future reference if anyone has a similar problem with me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'maximum number of steps is 16&lt;BR /&gt;&lt;BR /&gt;If&lt;/SPAN&gt;  &lt;SPAN&gt;n_final&lt;/SPAN&gt; &amp;gt; 16 &lt;SPAN&gt;Then&lt;/SPAN&gt;
 
 &lt;SPAN&gt;Heigth&lt;/SPAN&gt; = 3000 mm

  &lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"The maximum noumber of steps is: "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"16"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;vbCr&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"Ladder will automatically use the maximum height."&lt;/SPAN&gt;, &lt;SPAN&gt;"Maximum Value Rule"&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;Error&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 14:34:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/i-logic-stop-updating-model-if-dims-are-wrong-or-not-allowed/m-p/9071122#M166476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-07T14:34:14Z</dc:date>
    </item>
  </channel>
</rss>

