<?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 two condition in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879403#M74272</link>
    <description>&lt;P&gt;Can you please try this code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim oDoc As AssemblyDocument
oDoc = ThisDoc.ModelDocument
Dim oCompDef As Inventor.ComponentDefinition
oCompDef = oDoc.ComponentDefinition
Dim oOccs As Inventor.ComponentOccurrences
oOccs = oCompDef.Occurrences
Dim oOcc As Inventor.ComponentOccurrence
Dim oSubOccs As Inventor.ComponentOccurrences
Dim oSubOcc As Inventor.ComponentOccurrence
Dim oSubOccCompDef As Inventor.ComponentDefinition
Dim oParameters As Inventor.Parameters
Dim oParameter As Inventor.Parameter

Dim AssemblyExists As Boolean = False
Dim oOccName As String

For Each oOcc In oOccs
	If oOcc.Name.Contains("&lt;SPAN&gt;ZRĘBNICA PROSTA SPAW&lt;/SPAN&gt;") Then
		AssemblyExists = True
		oOccName = oOcc.Name
		Exit For
	End If
Next

If Typ_zrębnicy = "PROSTA" And AssemblyExist = True Then
	Zrębnica = False
	For Each oOcc In oOccs
		If oOcc.Name.Contains(oOccName) = True Then
			oSubOccs = oOcc.Definition.Occurrences
			For Each oSubOcc In oSubOccs
				If oSubOcc.Name = "Czolo zrębnicy:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d4" Then
							oParameter.Value = Zrębnica_wysokość
						ElseIf oParameter.Name = "Średnica" Then
							oParameter.Value = Średnica_Dnom
						End If
					Next
				ElseIf oSubOcc.Name = "Bok zrębnicy:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d0" Then
							oParameter.Value = Zrębnica_długość
						End If
					Next
				ElseIf oSubOcc.Name = "Czolo zrębnicy:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "d2" Then
							oParameter.Value = Zrębnica_szerokość - 2 * Zrębnica_grubość
						End If
					Next
				End If
			Next
		End If
	Next
ElseIf Typ_zrębnicy = "PROSTA" And AssemblyExist = False Then
	Zrębnica = False
	Component.Replace("ZRĘBNICA PODCIETA SPAW:1", "ZRĘBNICA PROSTA SPAW.iam", True)
	For Each oOcc In oOccs
		If oOcc.Name.Contains(oOccName) = True Then
			oSubOccs = oOcc.Definition.Occurrences
			For Each oSubOcc In oSubOccs
				If oSubOcc.Name = "Czolo zrębnicy:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d4" Then
							oParameter.Value = Zrębnica_wysokość
						ElseIf oParameter.Name = "Średnica" Then
							oParameter.Value = Średnica_Dnom
						End If
					Next
				ElseIf oSubOcc.Name = "Bok zrębnicy:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d0" Then
							oParameter.Value = Zrębnica_długość
						End If
					Next
				ElseIf oSubOcc.Name = "Czolo zrębnicy:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "d2" Then
							oParameter.Value = Zrębnica_szerokość - 2 * Zrębnica_grubość
						End If
					Next
				End If
			Next
		End If
	Next
ElseIf Typ_zrębnicy = "GIĘTA" And AssemblyExist = False Then
	Zrębnica = True
	Component.Replace("ZRĘBNICA PROSTA SPAW:1", "ZRĘBNICA PODCIETA SPAW.iam", True)
	For Each oOcc In oOccs
		If oOcc.Name.Contains(oOccName) = True Then
			oSubOccs = oOcc.Definition.Occurrences
			For Each oSubOcc In oSubOccs
				If oSubOcc.Name = "Czolo zrębnicy podcięte:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d2" Then
							oParameter.Value = Zrębnica_szerokość - 2 * Zrębnica_grubość
						ElseIf oParameter.Name = "d4" Then
							oParameter.Value = Zrębnica_wysokość
						ElseIf oParameter.Name = "Średnica" Then
							oParameter.Value = Średnica_Dnom
						ElseIf oParameter.Name = "Dlugość_prostej" Then
							oParameter.Value = Zrębnica_prosta
						ElseIf oParameter.Name = "Rozstaw_dół" Then
							oParameter.Value = Zrębnica_rozstaw
						End If
					Next
				ElseIf oSubOcc.Name = "Bok zrębnicy zagięty:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d8" Then
							oParameter.Value = Zrębnica_długość
						End If
					Next
				End If
			Next
		End If
	Next
ElseIf Typ_zrębnicy = "GIĘTA" And AssemblyExist = True Then
	Zrębnica = True
	For Each oOcc In oOccs
		If oOcc.Name.Contains(oOccName) = True Then
			oSubOccs = oOcc.Definition.Occurrences
			For Each oSubOcc In oSubOccs
				If oSubOcc.Name = "Czolo zrębnicy podcięte:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d2" Then
							oParameter.Value = Zrębnica_szerokość - 2 * Zrębnica_grubość
						ElseIf oParameter.Name = "d4" Then
							oParameter.Value = Zrębnica_wysokość
						ElseIf oParameter.Name = "Średnica" Then
							oParameter.Value = Średnica_Dnom
						ElseIf oParameter.Name = "Dlugość_prostej" Then
							oParameter.Value = Zrębnica_prosta
						ElseIf oParameter.Name = "Rozstaw_dół" Then
							oParameter.Value = Zrębnica_rozstaw
						End If
					Next
				ElseIf oSubOcc.Name = "Bok zrębnicy zagięty:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d8" Then
							oParameter.Value = Zrębnica_długość
						End If
					Next
				End If
			Next
		End If
	Next
End If&lt;/PRE&gt;</description>
    <pubDate>Fri, 28 Jun 2019 14:20:26 GMT</pubDate>
    <dc:creator>KKizildemir</dc:creator>
    <dc:date>2019-06-28T14:20:26Z</dc:date>
    <item>
      <title>Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879000#M74260</link>
      <description>&lt;P&gt;I am having an issue with my iLogic code. In assembly could exist two subassemblies. One or the other. In ilogic I'am trying to choose between this two. If one exist it should change to other, and also change dimensions of some parts that are included in the subassembly. But when I'm trying to switch in the created form one subassembly to another Inventor give me message saying there are no components with this name. Any help will be appreciate &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oComps&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrences&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyExists&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Boolean&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oComp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ComponentOccurrence&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oComps&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oComp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Contains&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"ZRĘBNICA PROSTA SPAW.iam"&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;AssemblyExists&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Typ_zrębnicy&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"PROSTA"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyExist&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
	
	&lt;SPAN style="color: #0000ff;"&gt;Zrębnica&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Bok zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"d2"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_szerokość&lt;/SPAN&gt; - 2 * &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Bok zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"d0"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_długość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"d4"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_wysokość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Średnica"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Średnica_Dnom&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Typ_zrębnicy&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"PROSTA"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyExist&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;

	&lt;SPAN style="color: #0000ff;"&gt;Zrębnica&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Component&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Replace&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"ZRĘBNICA PODCIETA SPAW:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"ZRĘBNICA PROSTA SPAW.iam"&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Bok zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"d2"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_szerokość&lt;/SPAN&gt; - 2 * &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Bok zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"d0"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_długość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"d4"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_wysokość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Średnica"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Średnica_Dnom&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Typ_zrębnicy&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"GIĘTA"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyExist&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
	
	&lt;SPAN style="color: #0000ff;"&gt;Zrębnica&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Component&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Replace&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"ZRĘBNICA PROSTA SPAW:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"ZRĘBNICA PODCIETA SPAW.iam"&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Bok zrębnicy zagięty:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"d2"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_szerokość&lt;/SPAN&gt; - 2 * &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Bok zrębnicy zagięty:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"d8"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_długość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"d4"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_wysokość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Średnica"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Średnica_Dnom&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Dlugość_prostej"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_prosta&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Rozstaw_dół"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_rozstaw&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;Typ_zrębnicy&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"GIĘTA"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyExist&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
	
	&lt;SPAN style="color: #0000ff;"&gt;Zrębnica&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Bok zrębnicy zagięty:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"d2"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_szerokość&lt;/SPAN&gt; - 2 * &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Bok zrębnicy zagięty:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"d8"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_długość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"d4"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_wysokość&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Średnica"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Średnica_Dnom&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Dlugość_prostej"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_prosta&lt;/SPAN&gt;
	&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"Rozstaw_dół"&lt;/SPAN&gt;) = &lt;SPAN style="color: #0000ff;"&gt;Zrębnica_rozstaw&lt;/SPAN&gt;
	
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jun 2019 11:20:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879000#M74260</guid>
      <dc:creator>gi</dc:creator>
      <dc:date>2019-06-28T11:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879016#M74261</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try this:&lt;/P&gt;&lt;PRE&gt;Dim oDoc As AssemblyDocument = ThisDoc.Document

Dim oComps As ComponentOccurrences = oDoc.ComponentDefinition.Occurrences

Dim AssemblyExists As Boolean = True
For Each oComp As ComponentOccurrence In oComps
	If oComp.Name.Contains("ZRĘBNICA PROSTA SPAW") Then
		AssemblyExists = True
		Exit For
	End If
Next

If Typ_zrębnicy = "PROSTA" And AssemblyExist = True Then
	
	Zrębnica = False
	Parameter("Czolo zrębnicy:1", "Grubość") = Zrębnica_grubość
	Parameter("Bok zrębnicy:1", "Grubość") = Zrębnica_grubość
	Parameter("Czolo zrębnicy:1", "d2") = Zrębnica_szerokość - 2 * Zrębnica_grubość
	Parameter("Bok zrębnicy:1", "d0") = Zrębnica_długość
	Parameter("Czolo zrębnicy:1", "d4") = Zrębnica_wysokość
	Parameter("Czolo zrębnicy:1", "Średnica") = Średnica_Dnom

Else If Typ_zrębnicy = "PROSTA" And AssemblyExist = False Then

	Zrębnica = False
	Component.Replace("ZRĘBNICA PODCIETA SPAW:1", "ZRĘBNICA PROSTA SPAW.iam", True)
	Parameter("Czolo zrębnicy:1", "Grubość") = Zrębnica_grubość
	Parameter("Bok zrębnicy:1", "Grubość") = Zrębnica_grubość
	Parameter("Czolo zrębnicy:1", "d2") = Zrębnica_szerokość - 2 * Zrębnica_grubość
	Parameter("Bok zrębnicy:1", "d0") = Zrębnica_długość
	Parameter("Czolo zrębnicy:1", "d4") = Zrębnica_wysokość
	Parameter("Czolo zrębnicy:1", "Średnica") = Średnica_Dnom

Else If Typ_zrębnicy = "GIĘTA" And AssemblyExist = True Then
	
	Zrębnica = True
	Component.Replace("ZRĘBNICA PROSTA SPAW:1", "ZRĘBNICA PODCIETA SPAW.iam", True)
	Parameter("Czolo zrębnicy podcięte:1", "Grubość") = Zrębnica_grubość
	Parameter("Bok zrębnicy zagięty:1", "Grubość") = Zrębnica_grubość
	Parameter("Czolo zrębnicy podcięte:1", "d2") = Zrębnica_szerokość - 2 * Zrębnica_grubość
	Parameter("Bok zrębnicy zagięty:1", "d8") = Zrębnica_długość
	Parameter("Czolo zrębnicy podcięte:1", "d4") = Zrębnica_wysokość
	Parameter("Czolo zrębnicy podcięte:1", "Średnica") = Średnica_Dnom
	Parameter("Czolo zrębnicy podcięte:1", "Dlugość_prostej") = Zrębnica_prosta
	Parameter("Czolo zrębnicy podcięte:1", "Rozstaw_dół") = Zrębnica_rozstaw

Else If Typ_zrębnicy = "GIĘTA" And AssemblyExist = False Then
	
	Zrębnica = True
	Parameter("Czolo zrębnicy podcięte:1", "Grubość") = Zrębnica_grubość
	Parameter("Bok zrębnicy zagięty:1", "Grubość") = Zrębnica_grubość
	Parameter("Czolo zrębnicy podcięte:1", "d2") = Zrębnica_szerokość - 2 * Zrębnica_grubość
	Parameter("Bok zrębnicy zagięty:1", "d8") = Zrębnica_długość
	Parameter("Czolo zrębnicy podcięte:1", "d4") = Zrębnica_wysokość
	Parameter("Czolo zrębnicy podcięte:1", "Średnica") = Średnica_Dnom
	Parameter("Czolo zrębnicy podcięte:1", "Dlugość_prostej") = Zrębnica_prosta
	Parameter("Czolo zrębnicy podcięte:1", "Rozstaw_dół") = Zrębnica_rozstaw
	
End If&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jun 2019 11:26:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879016#M74261</guid>
      <dc:creator>KKizildemir</dc:creator>
      <dc:date>2019-06-28T11:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879045#M74262</link>
      <description>&lt;P&gt;I still have the same message.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 11:38:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879045#M74262</guid>
      <dc:creator>gi</dc:creator>
      <dc:date>2019-06-28T11:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879070#M74263</link>
      <description>&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;PRE&gt;Dim oDoc As AssemblyDocument = ThisDoc.Document
Dim oComps As ComponentOccurrences = oDoc.ComponentDefinition.Occurrences

Dim AssemblyExists As Boolean = False
For Each oComp As ComponentOccurrence In oComps
	If oComp.Name.Contains("ZRĘBNICA PROSTA SPAW") Then
		AssemblyExists = True
		Exit For
	End If
Next

If Typ_zrębnicy = "PROSTA" And AssemblyExist = True Then
	
	Zrębnica = False
	Parameter("Czolo zrębnicy:1", "Grubość") = Zrębnica_grubość
	Parameter("Bok zrębnicy:1", "Grubość") = Zrębnica_grubość
	Parameter("Czolo zrębnicy:1", "d2") = Zrębnica_szerokość - 2 * Zrębnica_grubość
	Parameter("Bok zrębnicy:1", "d0") = Zrębnica_długość
	Parameter("Czolo zrębnicy:1", "d4") = Zrębnica_wysokość
	Parameter("Czolo zrębnicy:1", "Średnica") = Średnica_Dnom

Else If Typ_zrębnicy = "PROSTA" And AssemblyExist = False Then

	Zrębnica = False
	Component.Replace("ZRĘBNICA PODCIETA SPAW:1", "ZRĘBNICA PROSTA SPAW.iam", True)
	Parameter("Czolo zrębnicy:1", "Grubość") = Zrębnica_grubość
	Parameter("Bok zrębnicy:1", "Grubość") = Zrębnica_grubość
	Parameter("Czolo zrębnicy:1", "d2") = Zrębnica_szerokość - 2 * Zrębnica_grubość
	Parameter("Bok zrębnicy:1", "d0") = Zrębnica_długość
	Parameter("Czolo zrębnicy:1", "d4") = Zrębnica_wysokość
	Parameter("Czolo zrębnicy:1", "Średnica") = Średnica_Dnom

Else If Typ_zrębnicy = "GIĘTA" And AssemblyExist = True Then
	
	Zrębnica = True
	Component.Replace("ZRĘBNICA PROSTA SPAW:1", "ZRĘBNICA PODCIETA SPAW.iam", True)
	Parameter("Czolo zrębnicy podcięte:1", "Grubość") = Zrębnica_grubość
	Parameter("Bok zrębnicy zagięty:1", "Grubość") = Zrębnica_grubość
	Parameter("Czolo zrębnicy podcięte:1", "d2") = Zrębnica_szerokość - 2 * Zrębnica_grubość
	Parameter("Bok zrębnicy zagięty:1", "d8") = Zrębnica_długość
	Parameter("Czolo zrębnicy podcięte:1", "d4") = Zrębnica_wysokość
	Parameter("Czolo zrębnicy podcięte:1", "Średnica") = Średnica_Dnom
	Parameter("Czolo zrębnicy podcięte:1", "Dlugość_prostej") = Zrębnica_prosta
	Parameter("Czolo zrębnicy podcięte:1", "Rozstaw_dół") = Zrębnica_rozstaw

Else If Typ_zrębnicy = "GIĘTA" And AssemblyExist = False Then
	
	Zrębnica = True
	Parameter("Czolo zrębnicy podcięte:1", "Grubość") = Zrębnica_grubość
	Parameter("Bok zrębnicy zagięty:1", "Grubość") = Zrębnica_grubość
	Parameter("Czolo zrębnicy podcięte:1", "d2") = Zrębnica_szerokość - 2 * Zrębnica_grubość
	Parameter("Bok zrębnicy zagięty:1", "d8") = Zrębnica_długość
	Parameter("Czolo zrębnicy podcięte:1", "d4") = Zrębnica_wysokość
	Parameter("Czolo zrębnicy podcięte:1", "Średnica") = Średnica_Dnom
	Parameter("Czolo zrębnicy podcięte:1", "Dlugość_prostej") = Zrębnica_prosta
	Parameter("Czolo zrębnicy podcięte:1", "Rozstaw_dół") = Zrębnica_rozstaw
	
End If&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jun 2019 11:50:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879070#M74263</guid>
      <dc:creator>KKizildemir</dc:creator>
      <dc:date>2019-06-28T11:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879107#M74264</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oComps&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrences&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyExists&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Boolean&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oComp&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oComps&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;RefDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;oComp&lt;/SPAN&gt;.&lt;SPAN&gt;Definition&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;InStr&lt;/SPAN&gt;( &lt;SPAN&gt;RefDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt;,&lt;SPAN&gt;"ZRĘBNICA PROSTA SPAW.iam"&lt;/SPAN&gt;) &amp;lt;&amp;gt; 0 &lt;SPAN&gt;Then&lt;/SPAN&gt; 
		&lt;SPAN&gt;AssemblyExists&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
		&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;For&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Typ_zrębnicy&lt;/SPAN&gt; = &lt;SPAN&gt;"PROSTA"&lt;/SPAN&gt; &lt;SPAN&gt;And&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyExist&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Zrębnica&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d2"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_szerokość&lt;/SPAN&gt; - 2 * &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d0"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_długość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d4"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_wysokość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Średnica"&lt;/SPAN&gt;) = &lt;SPAN&gt;Średnica_Dnom&lt;/SPAN&gt;

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Typ_zrębnicy&lt;/SPAN&gt; = &lt;SPAN&gt;"PROSTA"&lt;/SPAN&gt; &lt;SPAN&gt;And&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyExist&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;

	&lt;SPAN&gt;Zrębnica&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
	&lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;"ZRĘBNICA PODCIETA SPAW:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"ZRĘBNICA PROSTA SPAW.iam"&lt;/SPAN&gt;, &lt;SPAN&gt;True&lt;/SPAN&gt;)
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d2"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_szerokość&lt;/SPAN&gt; - 2 * &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d0"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_długość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d4"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_wysokość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Średnica"&lt;/SPAN&gt;) = &lt;SPAN&gt;Średnica_Dnom&lt;/SPAN&gt;

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Typ_zrębnicy&lt;/SPAN&gt; = &lt;SPAN&gt;"GIĘTA"&lt;/SPAN&gt; &lt;SPAN&gt;And&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyExist&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Zrębnica&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
	&lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;"ZRĘBNICA PROSTA SPAW:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"ZRĘBNICA PODCIETA SPAW.iam"&lt;/SPAN&gt;, &lt;SPAN&gt;True&lt;/SPAN&gt;)
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy zagięty:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d2"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_szerokość&lt;/SPAN&gt; - 2 * &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy zagięty:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d8"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_długość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d4"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_wysokość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Średnica"&lt;/SPAN&gt;) = &lt;SPAN&gt;Średnica_Dnom&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Dlugość_prostej"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_prosta&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Rozstaw_dół"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_rozstaw&lt;/SPAN&gt;

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Typ_zrębnicy&lt;/SPAN&gt; = &lt;SPAN&gt;"GIĘTA"&lt;/SPAN&gt; &lt;SPAN&gt;And&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyExist&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Zrębnica&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy zagięty:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d2"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_szerokość&lt;/SPAN&gt; - 2 * &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy zagięty:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d8"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_długość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d4"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_wysokość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Średnica"&lt;/SPAN&gt;) = &lt;SPAN&gt;Średnica_Dnom&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Dlugość_prostej"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_prosta&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Rozstaw_dół"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_rozstaw&lt;/SPAN&gt;
	
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Hi, here is another code that works with the name of the document of each occurrence.&lt;BR /&gt;I hope this helps. regards&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 12:03:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879107#M74264</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-06-28T12:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879135#M74265</link>
      <description>&lt;P&gt;Problem still exist. Maybe this give you some idea - switching beetwen subassembly error concers diffrent components. One subassembly, other one of the parts from subassembly. It depends from which I want to switch. In attachment there are pictures showing errors.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 12:11:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879135#M74265</guid>
      <dc:creator>gi</dc:creator>
      <dc:date>2019-06-28T12:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879137#M74266</link>
      <description>&lt;P&gt;Hi Sergio,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main problem is shown below:&lt;/P&gt;&lt;PRE&gt;Dim AssemblyExists As Boolean = True 'This line defines AssemblyExists as a boolean and turns is true
For Each oComp As ComponentOccurrence In oComps
	Dim RefDoc As Document = oComp.Definition.Document
	If InStr( RefDoc.DisplayName,"ZRĘBNICA PROSTA SPAW.iam") &amp;lt;&amp;gt; 0 Then 
		AssemblyExists = True 'This line turns it true again. If statement can not change it
		Exit For
	End If
Next&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 12:12:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879137#M74266</guid>
      <dc:creator>KKizildemir</dc:creator>
      <dc:date>2019-06-28T12:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879154#M74267</link>
      <description>&lt;P&gt;You're right, I had not seen it. Now I'm like this. regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oComps&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrences&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Occurrences&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyExists&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Boolean&lt;/SPAN&gt; = False
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oComp&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oComps&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;RefDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; = &lt;SPAN&gt;oComp&lt;/SPAN&gt;.&lt;SPAN&gt;Definition&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;InStr&lt;/SPAN&gt;( &lt;SPAN&gt;RefDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt;,&lt;SPAN&gt;"ZRĘBNICA PROSTA SPAW.iam"&lt;/SPAN&gt;) &amp;lt;&amp;gt; 0 &lt;SPAN&gt;Then&lt;/SPAN&gt; 
		&lt;SPAN&gt;AssemblyExists&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
		&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;For&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;
on error resume next
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Typ_zrębnicy&lt;/SPAN&gt; = &lt;SPAN&gt;"PROSTA"&lt;/SPAN&gt; &lt;SPAN&gt;And&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyExist&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Zrębnica&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d2"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_szerokość&lt;/SPAN&gt; - 2 * &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d0"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_długość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d4"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_wysokość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Średnica"&lt;/SPAN&gt;) = &lt;SPAN&gt;Średnica_Dnom&lt;/SPAN&gt;

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Typ_zrębnicy&lt;/SPAN&gt; = &lt;SPAN&gt;"PROSTA"&lt;/SPAN&gt; &lt;SPAN&gt;And&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyExist&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;

	&lt;SPAN&gt;Zrębnica&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
	&lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;"ZRĘBNICA PODCIETA SPAW:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"ZRĘBNICA PROSTA SPAW.iam"&lt;/SPAN&gt;, &lt;SPAN&gt;True&lt;/SPAN&gt;)
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d2"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_szerokość&lt;/SPAN&gt; - 2 * &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d0"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_długość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d4"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_wysokość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Średnica"&lt;/SPAN&gt;) = &lt;SPAN&gt;Średnica_Dnom&lt;/SPAN&gt;

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Typ_zrębnicy&lt;/SPAN&gt; = &lt;SPAN&gt;"GIĘTA"&lt;/SPAN&gt; &lt;SPAN&gt;And&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyExist&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Zrębnica&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
	&lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;Replace&lt;/SPAN&gt;(&lt;SPAN&gt;"ZRĘBNICA PROSTA SPAW:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"ZRĘBNICA PODCIETA SPAW.iam"&lt;/SPAN&gt;, &lt;SPAN&gt;True&lt;/SPAN&gt;)
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy zagięty:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d2"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_szerokość&lt;/SPAN&gt; - 2 * &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy zagięty:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d8"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_długość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d4"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_wysokość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Średnica"&lt;/SPAN&gt;) = &lt;SPAN&gt;Średnica_Dnom&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Dlugość_prostej"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_prosta&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Rozstaw_dół"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_rozstaw&lt;/SPAN&gt;

&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Typ_zrębnicy&lt;/SPAN&gt; = &lt;SPAN&gt;"GIĘTA"&lt;/SPAN&gt; &lt;SPAN&gt;And&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyExist&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Zrębnica&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy zagięty:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Grubość"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d2"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_szerokość&lt;/SPAN&gt; - 2 * &lt;SPAN&gt;Zrębnica_grubość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Bok zrębnicy zagięty:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d8"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_długość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"d4"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_wysokość&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Średnica"&lt;/SPAN&gt;) = &lt;SPAN&gt;Średnica_Dnom&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Dlugość_prostej"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_prosta&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"Czolo zrębnicy podcięte:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Rozstaw_dół"&lt;/SPAN&gt;) = &lt;SPAN&gt;Zrębnica_rozstaw&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;</description>
      <pubDate>Fri, 28 Jun 2019 12:18:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879154#M74267</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-06-28T12:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879181#M74268</link>
      <description>&lt;P&gt;Ok. I miss this also. But now there is another problem. If I switch subassembly nothing happen. Subassemblies doesn't change despite that files of other subassembly exist in folder.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 12:34:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879181#M74268</guid>
      <dc:creator>gi</dc:creator>
      <dc:date>2019-06-28T12:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879224#M74269</link>
      <description>&lt;P&gt;I think I'm gradually understanding. I think you have a master assembly. Then if a certain subassembly exists within the master assembly, you want to change parameters of this particular subassembly, or parameters of components of this subassembly.&lt;BR /&gt;You can not do it like this in this way.&lt;BR /&gt;Ilogic shortcuts to change component parameters work on first-level occurrences, not on higher-level components as subassembly components.&lt;BR /&gt;If this is the case, we must develop another way to access the parameters of the subassembly from the master assembly.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 12:49:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879224#M74269</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-06-28T12:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879230#M74270</link>
      <description>&lt;P&gt;Screenshots of the error popup make sense now.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You must use 'MakePath' syntax to look and find the parts within related subassembly. I think this code will work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim oDoc As AssemblyDocument = ThisDoc.Document
Dim oComps As ComponentOccurrences = oDoc.ComponentDefinition.Occurrences

Dim AssemblyExists As Boolean = False
Dim oOccName As String
For Each oComp As ComponentOccurrence In oComps
	If oComp.Name.Contains("ZRĘBNICA PROSTA SPAW") Then
		AssemblyExists = True
		oOccName= oComp.Name
		Exit For
	End If
Next

If Typ_zrębnicy = "PROSTA" And AssemblyExist = True Then
	
	Zrębnica = False
	Parameter(MakePath(oOccName, "Czolo zrębnicy:1", "Grubość")) = Zrębnica_grubość
	Parameter(MakePath(oOccName, "Bok zrębnicy:1", "Grubość")) = Zrębnica_grubość
	Parameter(MakePath(oOccName, "Czolo zrębnicy:1", "d2")) = Zrębnica_szerokość - 2 * Zrębnica_grubość
	Parameter(MakePath(oOccName, "Bok zrębnicy:1", "d0")) = Zrębnica_długość
	Parameter(MakePath(oOccName, "Czolo zrębnicy:1", "d4")) = Zrębnica_wysokość
	Parameter(MakePath(oOccName, "Czolo zrębnicy:1", "Średnica")) = Średnica_Dnom

Else If Typ_zrębnicy = "PROSTA" And AssemblyExist = False Then

	Zrębnica = False
	Component.Replace("ZRĘBNICA PODCIETA SPAW:1", "ZRĘBNICA PROSTA SPAW.iam", True)
	Parameter(MakePath(oOccName, "Czolo zrębnicy:1", "Grubość")) = Zrębnica_grubość
	Parameter(MakePath(oOccName, "Bok zrębnicy:1", "Grubość")) = Zrębnica_grubość
	Parameter(MakePath(oOccName, "Czolo zrębnicy:1", "d2")) = Zrębnica_szerokość - 2 * Zrębnica_grubość
	Parameter(MakePath(oOccName, "Bok zrębnicy:1", "d0")) = Zrębnica_długość
	Parameter(MakePath(oOccName, "Czolo zrębnicy:1", "d4")) = Zrębnica_wysokość
	Parameter(MakePath(oOccName, "Czolo zrębnicy:1", "Średnica")) = Średnica_Dnom

Else If Typ_zrębnicy = "GIĘTA" And AssemblyExist = True Then
	
	Zrębnica = True
	Component.Replace("ZRĘBNICA PROSTA SPAW:1", "ZRĘBNICA PODCIETA SPAW.iam", True)
	Parameter(MakePath(oOccName, "Czolo zrębnicy podcięte:1", "Grubość")) = Zrębnica_grubość
	Parameter(MakePath(oOccName, "Bok zrębnicy zagięty:1", "Grubość")) = Zrębnica_grubość
	Parameter(MakePath(oOccName, "Czolo zrębnicy podcięte:1", "d2")) = Zrębnica_szerokość - 2 * Zrębnica_grubość
	Parameter(MakePath(oOccName, "Bok zrębnicy zagięty:1", "d8")) = Zrębnica_długość
	Parameter(MakePath(oOccName, "Czolo zrębnicy podcięte:1", "d4")) = Zrębnica_wysokość
	Parameter(MakePath(oOccName, "Czolo zrębnicy podcięte:1", "Średnica")) = Średnica_Dnom
	Parameter(MakePath(oOccName, "Czolo zrębnicy podcięte:1", "Dlugość_prostej")) = Zrębnica_prosta
	Parameter(MakePath(oOccName, "Czolo zrębnicy podcięte:1", "Rozstaw_dół")) = Zrębnica_rozstaw

Else If Typ_zrębnicy = "GIĘTA" And AssemblyExist = False Then
	
	Zrębnica = True
	Parameter(MakePath(oOccName, "Czolo zrębnicy podcięte:1", "Grubość")) = Zrębnica_grubość
	Parameter(MakePath(oOccName, "Bok zrębnicy zagięty:1", "Grubość")) = Zrębnica_grubość
	Parameter(MakePath(oOccName, "Czolo zrębnicy podcięte:1", "d2")) = Zrębnica_szerokość - 2 * Zrębnica_grubość
	Parameter(MakePath(oOccName, "Bok zrębnicy zagięty:1", "d8")) = Zrębnica_długość
	Parameter(MakePath(oOccName, "Czolo zrębnicy podcięte:1", "d4")) = Zrębnica_wysokość
	Parameter(MakePath(oOccName, "Czolo zrębnicy podcięte:1", "Średnica")) = Średnica_Dnom
	Parameter(MakePath(oOccName, "Czolo zrębnicy podcięte:1", "Dlugość_prostej")) = Zrębnica_prosta
	Parameter(MakePath(oOccName, "Czolo zrębnicy podcięte:1", "Rozstaw_dół")) = Zrębnica_rozstaw
	
End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 12:51:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879230#M74270</guid>
      <dc:creator>KKizildemir</dc:creator>
      <dc:date>2019-06-28T12:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879248#M74271</link>
      <description>&lt;P&gt;Now there are another errors. See attachment.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 12:57:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879248#M74271</guid>
      <dc:creator>gi</dc:creator>
      <dc:date>2019-06-28T12:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879403#M74272</link>
      <description>&lt;P&gt;Can you please try this code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim oDoc As AssemblyDocument
oDoc = ThisDoc.ModelDocument
Dim oCompDef As Inventor.ComponentDefinition
oCompDef = oDoc.ComponentDefinition
Dim oOccs As Inventor.ComponentOccurrences
oOccs = oCompDef.Occurrences
Dim oOcc As Inventor.ComponentOccurrence
Dim oSubOccs As Inventor.ComponentOccurrences
Dim oSubOcc As Inventor.ComponentOccurrence
Dim oSubOccCompDef As Inventor.ComponentDefinition
Dim oParameters As Inventor.Parameters
Dim oParameter As Inventor.Parameter

Dim AssemblyExists As Boolean = False
Dim oOccName As String

For Each oOcc In oOccs
	If oOcc.Name.Contains("&lt;SPAN&gt;ZRĘBNICA PROSTA SPAW&lt;/SPAN&gt;") Then
		AssemblyExists = True
		oOccName = oOcc.Name
		Exit For
	End If
Next

If Typ_zrębnicy = "PROSTA" And AssemblyExist = True Then
	Zrębnica = False
	For Each oOcc In oOccs
		If oOcc.Name.Contains(oOccName) = True Then
			oSubOccs = oOcc.Definition.Occurrences
			For Each oSubOcc In oSubOccs
				If oSubOcc.Name = "Czolo zrębnicy:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d4" Then
							oParameter.Value = Zrębnica_wysokość
						ElseIf oParameter.Name = "Średnica" Then
							oParameter.Value = Średnica_Dnom
						End If
					Next
				ElseIf oSubOcc.Name = "Bok zrębnicy:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d0" Then
							oParameter.Value = Zrębnica_długość
						End If
					Next
				ElseIf oSubOcc.Name = "Czolo zrębnicy:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "d2" Then
							oParameter.Value = Zrębnica_szerokość - 2 * Zrębnica_grubość
						End If
					Next
				End If
			Next
		End If
	Next
ElseIf Typ_zrębnicy = "PROSTA" And AssemblyExist = False Then
	Zrębnica = False
	Component.Replace("ZRĘBNICA PODCIETA SPAW:1", "ZRĘBNICA PROSTA SPAW.iam", True)
	For Each oOcc In oOccs
		If oOcc.Name.Contains(oOccName) = True Then
			oSubOccs = oOcc.Definition.Occurrences
			For Each oSubOcc In oSubOccs
				If oSubOcc.Name = "Czolo zrębnicy:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d4" Then
							oParameter.Value = Zrębnica_wysokość
						ElseIf oParameter.Name = "Średnica" Then
							oParameter.Value = Średnica_Dnom
						End If
					Next
				ElseIf oSubOcc.Name = "Bok zrębnicy:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d0" Then
							oParameter.Value = Zrębnica_długość
						End If
					Next
				ElseIf oSubOcc.Name = "Czolo zrębnicy:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "d2" Then
							oParameter.Value = Zrębnica_szerokość - 2 * Zrębnica_grubość
						End If
					Next
				End If
			Next
		End If
	Next
ElseIf Typ_zrębnicy = "GIĘTA" And AssemblyExist = False Then
	Zrębnica = True
	Component.Replace("ZRĘBNICA PROSTA SPAW:1", "ZRĘBNICA PODCIETA SPAW.iam", True)
	For Each oOcc In oOccs
		If oOcc.Name.Contains(oOccName) = True Then
			oSubOccs = oOcc.Definition.Occurrences
			For Each oSubOcc In oSubOccs
				If oSubOcc.Name = "Czolo zrębnicy podcięte:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d2" Then
							oParameter.Value = Zrębnica_szerokość - 2 * Zrębnica_grubość
						ElseIf oParameter.Name = "d4" Then
							oParameter.Value = Zrębnica_wysokość
						ElseIf oParameter.Name = "Średnica" Then
							oParameter.Value = Średnica_Dnom
						ElseIf oParameter.Name = "Dlugość_prostej" Then
							oParameter.Value = Zrębnica_prosta
						ElseIf oParameter.Name = "Rozstaw_dół" Then
							oParameter.Value = Zrębnica_rozstaw
						End If
					Next
				ElseIf oSubOcc.Name = "Bok zrębnicy zagięty:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d8" Then
							oParameter.Value = Zrębnica_długość
						End If
					Next
				End If
			Next
		End If
	Next
ElseIf Typ_zrębnicy = "GIĘTA" And AssemblyExist = True Then
	Zrębnica = True
	For Each oOcc In oOccs
		If oOcc.Name.Contains(oOccName) = True Then
			oSubOccs = oOcc.Definition.Occurrences
			For Each oSubOcc In oSubOccs
				If oSubOcc.Name = "Czolo zrębnicy podcięte:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d2" Then
							oParameter.Value = Zrębnica_szerokość - 2 * Zrębnica_grubość
						ElseIf oParameter.Name = "d4" Then
							oParameter.Value = Zrębnica_wysokość
						ElseIf oParameter.Name = "Średnica" Then
							oParameter.Value = Średnica_Dnom
						ElseIf oParameter.Name = "Dlugość_prostej" Then
							oParameter.Value = Zrębnica_prosta
						ElseIf oParameter.Name = "Rozstaw_dół" Then
							oParameter.Value = Zrębnica_rozstaw
						End If
					Next
				ElseIf oSubOcc.Name = "Bok zrębnicy zagięty:1" Then
					oSubOccCompDef = oSubOcc.Definition
					oParameters = oSubOccCompDef.Parameters
					For Each oParameter In oParameters
						If oParameter.Name = "Grubość" Then
							oParameter.Value = Zrębnica_grubość
						ElseIf oParameter.Name = "d8" Then
							oParameter.Value = Zrębnica_długość
						End If
					Next
				End If
			Next
		End If
	Next
End If&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jun 2019 14:20:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8879403#M74272</guid>
      <dc:creator>KKizildemir</dc:creator>
      <dc:date>2019-06-28T14:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8881952#M74273</link>
      <description>&lt;P&gt;That doesn't work either. When I change from type PROSTA to GIĘTA everything is ok, but vice versa I have a message that&amp;nbsp;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;the value can not be zero&lt;/SPAN&gt;&lt;/SPAN&gt; and the name of the parameter is value.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 05:11:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8881952#M74273</guid>
      <dc:creator>gi</dc:creator>
      <dc:date>2019-07-01T05:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8881961#M74274</link>
      <description>&lt;P&gt;Besides there is another problem. When I try change geometry ZRĘBICA PODCIĘTA SPAW subassembly Inventor show a message that it can't find component ZRĘBNICA PROSTA SPAW. The same happen when changing&amp;nbsp;ZRĘBNICA PROSTA SPAW, but then it can't find ZRĘBICA PODCIĘTA SPAW.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 05:18:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8881961#M74274</guid>
      <dc:creator>gi</dc:creator>
      <dc:date>2019-07-01T05:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8882323#M74275</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried my best without having your design data. The code that I've sent is a good example of reaching occurrences and suboccurrences and their parameters.&amp;nbsp;Please check your design automation scenario and update the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 09:50:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/8882323#M74275</guid>
      <dc:creator>KKizildemir</dc:creator>
      <dc:date>2019-07-01T09:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/9005046#M74276</link>
      <description>&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;I'm trying do it myself but so far I still have errors. Below there is simplified version what I want achieve. Let's say that I have two diffrent verion of plates (of course in my real scenario I'm using assemblies). One is bended other is flat. I want to have to possibility of change one to another and vice versa. Quantity of that plates also change (from 1 to 4 max.). So first of all I want choose quantity of plates. Next check what kind of plates - flat or bended are in the assembly. After that to have possibility of changing one to another. Also when I change quantity of plates when there are less than four one or more should be excluded.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zrebnice.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/673812iEE88C548A0D76A18/image-size/large?v=v2&amp;amp;px=999" role="button" title="Zrebnice.jpg" alt="Zrebnice.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 08:45:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/9005046#M74276</guid>
      <dc:creator>gi</dc:creator>
      <dc:date>2019-09-04T08:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic two condition</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/9006028#M74277</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2277866"&gt;@gi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should add your files. It does not make sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 15:38:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-two-condition/m-p/9006028#M74277</guid>
      <dc:creator>KKizildemir</dc:creator>
      <dc:date>2019-09-04T15:38:48Z</dc:date>
    </item>
  </channel>
</rss>

