<?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: place and replace content center parts using ilogic and forms in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/place-and-replace-content-center-parts-using-ilogic-and-forms/m-p/9765411#M57942</link>
    <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out this snippet :&amp;nbsp;&lt;STRONG&gt;Components.AddContentCenterPart&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is explicitly used for adding content center library parts using iLogic. See the snap shot, attached also, try to understand what inputs are required when you use this snippet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please accept this as solution, if this has answered your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dutt Thakar&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2020 09:33:36 GMT</pubDate>
    <dc:creator>dutt.thakar</dc:creator>
    <dc:date>2020-09-24T09:33:36Z</dc:date>
    <item>
      <title>place and replace content center parts using ilogic and forms</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/place-and-replace-content-center-parts-using-ilogic-and-forms/m-p/9760995#M57939</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am creating a support structure to mount pipes on.&lt;BR /&gt;This support consists of standart parts like I-beams and can be edited using a form. So pofile type, lengths and mounting can be chosen.&lt;BR /&gt;The support is an "L" shape.&lt;BR /&gt;So on the horizontal beam I want to place brackets&amp;nbsp; to mount those pipes in. these brackets exist as custom parts in our content center.&lt;BR /&gt;my question is.&lt;BR /&gt;Does a code exist to create a list in a form to chose a bracket from the contentlibrary or shout I recreate them as iParts?&lt;BR /&gt;&lt;BR /&gt;Feel free to ask for more information if the situation is not clear.&lt;BR /&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lennart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="This is the support structure." style="width: 561px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/822189i0BF9F332822912D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lsupport.png" alt="This is the support structure." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;This is the support structure.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="this is one of the brackets to choose from in our contentcenter." style="width: 497px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/822188iC0A7463CE3495A40/image-size/large?v=v2&amp;amp;px=999" role="button" title="pipesupport.png" alt="this is one of the brackets to choose from in our contentcenter." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;this is one of the brackets to choose from in our contentcenter.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 12:14:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/place-and-replace-content-center-parts-using-ilogic-and-forms/m-p/9760995#M57939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-22T12:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: place and replace content center parts using ilogic and forms</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/place-and-replace-content-center-parts-using-ilogic-and-forms/m-p/9761113#M57940</link>
      <description>&lt;P&gt;You could create a multivalue text parameter and set the different .ipt files to be imported.&lt;/P&gt;&lt;P&gt;Then on your form you could make a button to add / remove the bracket using:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800080;"&gt;Components&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"BracketName"&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;FileNameParameter&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #800080;"&gt;Components&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Delete&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"BracketName"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I whould procede this way..&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;&lt;P&gt;FINET L.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 12:45:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/place-and-replace-content-center-parts-using-ilogic-and-forms/m-p/9761113#M57940</guid>
      <dc:creator>FINET_Laurent</dc:creator>
      <dc:date>2020-09-22T12:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: place and replace content center parts using ilogic and forms</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/place-and-replace-content-center-parts-using-ilogic-and-forms/m-p/9761196#M57941</link>
      <description>&lt;P&gt;If they are all located in the same folder, you could use something like this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim fPath As String = ThisDoc.Path 'For testing puposes. Change to your folder location
Dim fNames() As String = System.IO.Directory.GetFiles(fPath, "*.ipt")
Dim fNameList As New List(Of String) 
For Each n As String In fNames
	fNameList.Add(n.Remove(0,n.LastIndexOf("\")+1))
Next
Dim Selection As String = InputListBox("Prompt", fNameList, fNameList.Item(1), Title := "Title", ListName := "File Name List")
Dim SelectedFilePath As String = fNames(fNameList.IndexOf(Selection))
MessageBox.Show(SelectedFilePath, "Selected File Path")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 13:14:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/place-and-replace-content-center-parts-using-ilogic-and-forms/m-p/9761196#M57941</guid>
      <dc:creator>J-Camper</dc:creator>
      <dc:date>2020-09-22T13:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: place and replace content center parts using ilogic and forms</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/place-and-replace-content-center-parts-using-ilogic-and-forms/m-p/9765411#M57942</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out this snippet :&amp;nbsp;&lt;STRONG&gt;Components.AddContentCenterPart&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is explicitly used for adding content center library parts using iLogic. See the snap shot, attached also, try to understand what inputs are required when you use this snippet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please accept this as solution, if this has answered your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dutt Thakar&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:33:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/place-and-replace-content-center-parts-using-ilogic-and-forms/m-p/9765411#M57942</guid>
      <dc:creator>dutt.thakar</dc:creator>
      <dc:date>2020-09-24T09:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: place and replace content center parts using ilogic and forms</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/place-and-replace-content-center-parts-using-ilogic-and-forms/m-p/9765527#M57943</link>
      <description>&lt;P&gt;it worked!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you and have a nice day!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 10:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/place-and-replace-content-center-parts-using-ilogic-and-forms/m-p/9765527#M57943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-24T10:48:20Z</dc:date>
    </item>
  </channel>
</rss>

