<?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: How can I use iLogic to change size of components? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7806596#M81011</link>
    <description>Why don't you make the part adaptive. Then you don't need any coding. Inventor out of the box solution..</description>
    <pubDate>Sun, 25 Feb 2018 06:50:14 GMT</pubDate>
    <dc:creator>bradeneuropeArthur</dc:creator>
    <dc:date>2018-02-25T06:50:14Z</dc:date>
    <item>
      <title>How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7806068#M81006</link>
      <description>&lt;P&gt;I have an assembly with 3 parts, 2 of which are content center files that never change. The third file must be custom as it needs a different length every time. I can use iLogic to point to the 2 content center files and have them update according to the input. How can I then use iLogic to change the size of the third part according to the input and match the other 2 parts? The third part is set up in content center and is always saved as a custom part to be used in each unique assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally I would go to each component and use the change size feature on each. When I get to the third I would also input the length I need.&lt;/P&gt;&lt;P&gt;I think being able to change size on each component would be easier too instead of using, if input = this then part = this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 19:17:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7806068#M81006</guid>
      <dc:creator>Brian.Price</dc:creator>
      <dc:date>2018-02-24T19:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7806596#M81011</link>
      <description>Why don't you make the part adaptive. Then you don't need any coding. Inventor out of the box solution..</description>
      <pubDate>Sun, 25 Feb 2018 06:50:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7806596#M81011</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-25T06:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7808943#M81050</link>
      <description>&lt;P&gt;The third part is a&amp;nbsp; piece of pipe that follows ASME standards and is already in the content center that regulates I.D. and O.D. I would have to remember or set up each piece to have that info along with the material separately.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 13:25:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7808943#M81050</guid>
      <dc:creator>Brian.Price</dc:creator>
      <dc:date>2018-02-26T13:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7808970#M81051</link>
      <description>can also be done with CC parts.</description>
      <pubDate>Mon, 26 Feb 2018 13:30:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7808970#M81051</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-26T13:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7809027#M81052</link>
      <description>&lt;P&gt;Not sure how I would be able to do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would need sizes from schedule 10 up to 160 on pipe sizes from 1/2" to 24". Plus the information is set up in the content center for the part number, description, material, and special customer only information.. Another reason is that I use the change size feature while changing numerous custom parts that could be automated using iLogic, such as structural shapes, angle, flat bar, I-Beams etc. I prefer to drive my assemblies from a form that incorporates most of the needed information, and I simply place the parts/sub assemblies in the correct location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should point out I am hesitant to use the adaptive feature due to it not acting correctly by not updating, losing reference, and sometimes just freaking out. If I were to make the parts adaptive I would have to set that up on each assembly if I am correct. If I use my iLogic rules to do this I simply have to have the same name and parameters already set up in the parts that I use in my library. I can then place them in my assembly and they are ready to go.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 13:46:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7809027#M81052</guid>
      <dc:creator>Brian.Price</dc:creator>
      <dc:date>2018-02-26T13:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7809122#M81053</link>
      <description>&lt;P&gt;I don't know why you think that is easier?&lt;BR /&gt;&lt;BR /&gt;I think without programming is the simples and easiest way, also regarding future updates.&lt;BR /&gt;But maybe i am misunderstanding your question.&lt;BR /&gt;&lt;BR /&gt;Programming is in that way an issue when you are not familiar with the code and only making programs or coding work without re-writing or repreduced it completely your selves.&lt;BR /&gt;Also for not programmers it is always easier to try to solve it with something out of the box ie with selve programming.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 14:15:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7809122#M81053</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-26T14:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7809184#M81056</link>
      <description>&lt;P&gt;I'm not necessarily looking for easier, I am looking for more consistence with fewer errors. If I only input the info once it is either correct everywhere or wrong everywhere, and easier to spot. I already have my assemblies set up with the pipe sizes that have to be cut in the sheet metal that these go. I design cylindrical containment tanks. I have 3 inputs. Size, Elevation, Orientation. It then cuts the holes in the correct places and aligns the axis to these holes so that I can place nozzles in the correct places. I have numerous other inputs as well, shell height, shell orientation, material, tank I.D., tank height, tank thickness. These inputs take my design time down from 3 days to 1 and increase my consistency phenomenally while decreasing my errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the inputs already there I can then further my code to change the nozzle to the correct size. These are not simple models and assemblies, so the complexity of adaptive features would be high. Also I would have to make each nozzle adaptive to the assembly on all tanks, instead of making one model that ties to the iLogic and always updates to the rules. By making my modelling time so short I can then dedicate more time to detailing drawings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While I appreciate your method of adaptivity, I don't believe it is the best method for my assemblies. If in the end I have to go to each nozzle and change the size manually I can, but automating that process would again lower errors and save time.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 14:29:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7809184#M81056</guid>
      <dc:creator>Brian.Price</dc:creator>
      <dc:date>2018-02-26T14:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7809782#M81063</link>
      <description>&lt;P&gt;Brian,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If I read this properly you are placing the parts from content center and you want to change the&amp;nbsp; length of a pipe based on the given parameters. I assume you have the logic worked out to determine the length.&lt;/P&gt;&lt;P&gt;If the pipes you are using have the come from the content center and have PL parameter then you should be able to use the parameter snippet to change the length of the pipe ala&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Parameter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;ISO 3633 Pipe with Single Socket for Elastomeric Sealing Ring Joints DN32 - 200:1&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;PL&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;10&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;This will change the length on your local copy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if this doesn't solve your problem&amp;nbsp;post the code/rule you have and I'll see if I can work out a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 16:21:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7809782#M81063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-26T16:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7809861#M81064</link>
      <description>&lt;P&gt;I don't think I'm explaining it well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I can program the iLogic to use if/then to get the parts I need using the filename. I would like to make template assembly that I can change size of the components. I can currently click on each part of the assembly and change it's size accordingling. However I would like to use only a few inputs to change the components.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The three components for the nozzles are:&lt;/P&gt;&lt;P&gt;1. the Flange - consistently uses the same part on all specific sized nozzle part is not custom and comes from the content center library.&lt;/P&gt;&lt;P&gt;2. the Stud Flange&lt;SPAN&gt;- consistently&amp;nbsp;uses the same part on all specific sized nozzle part is not custom and comes from the content center library.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3. the pipe - is a custom part and the length changes every time, the file is saved to the project folder. Also the schedule of the pipe can change as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I could use an input that says 6", 304 SS, Schedule 40, it would then change the size of each part according to what is provided in the content center.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have code in the master assembly for the size and material. This would be used in my tank template I use and each nozzle would start out as a generic size, the code would then modify each to what the new inputs tell them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My other thought is to assemble multiple nozzles with the correct sizes and variations and copy them to the project folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TLDR: Can you use the change size feature in Ilogic?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 16:43:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7809861#M81064</guid>
      <dc:creator>Brian.Price</dc:creator>
      <dc:date>2018-02-26T16:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7811672#M81092</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4996040"&gt;@Brian.Price&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seems that iAssembly would serve the purpose. Below YouTube link explains about iAssembly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=pN3mIZvQ24I" target="_blank"&gt;https://www.youtube.com/watch?v=pN3mIZvQ24I&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Meanwhile, Could you please provide sample assembly which contains Flange, Stud Flange and Pipe? Also mention some 3 to 5 variations to test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please make sure that files are non confidential.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 08:56:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7811672#M81092</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-02-27T08:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7812414#M81105</link>
      <description>&lt;P&gt;That is essentially what I want to do however these parts are already modeled in content center.&amp;nbsp; I believe for this to work I would have to remake the parts, not sure if I can copy the&amp;nbsp;content center family somehow and use that to make new Iparts?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 13:47:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7812414#M81105</guid>
      <dc:creator>Brian.Price</dc:creator>
      <dc:date>2018-02-27T13:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7814632#M81147</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4996040"&gt;@Brian.Price&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below iLogic code is to change the row of content center file in assembly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;'This iLogic demo replaces the given standard component
'with another member from same family.

' row number of the new family member .
Dim NewRow As Integer = 10

'active assembly s
Dim oMainAsm As AssemblyDocument = ThisDoc.Document
Dim oAsmDef As AssemblyComponentDefinition = oMainAsm.ComponentDefinition

' get the occurrence by its position in the occurrences collection
Dim oOcc As ComponentOccurrence = oAsmDef.Occurrences.Item(1)
Dim oDef As PartComponentDefinition = oOcc.Definition
Dim oDoc As PartDocument = oDef.Document

'reference to the CC properties - oProps
Dim oPropSets As PropertySets = oDoc.PropertySets
Dim oProps As PropertySet = oPropSets.Item("Content Library Component Properties")

' family id
Dim oProp As Inventor.Property = oProps.Item("FamilyId")
Dim FamilyId As String = oProp.Value
'MsgBox("FamilyId: " + FamilyId)

'reference to the ContentFamily
Dim oContentCenter As ContentCenter = ThisApplication.ContentCenter
Dim oFamily As ContentFamily = oContentCenter.GetContentObject("v3#" + FamilyId + "#")  
'MsgBox("Content Family DisplayName:  " + oFamily.DisplayName &amp;amp; vbNewLine &amp;amp; _
'	    "Rows in Family:  " &amp;amp; oFamily.TableRows.Count )

'create new member file
Dim ErrorType As MemberManagerErrorsEnum
Dim strContentPartFileName As String
Dim strErrorMessage As String
strContentPartFileName = oFamily.CreateMember(NewRow, ErrorType, strErrorMessage)

'replace the existing component with the new one
oOcc.Replace(strContentPartFileName, False)&lt;/PRE&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 05:37:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/7814632#M81147</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-02-28T05:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/9551140#M111523</link>
      <description>&lt;P&gt;This changes the diameter of the pipe. &lt;STRONG&gt;But how to change the pipe length&lt;/STRONG&gt; ("PN" parameter) or "G_L" parameter of any &lt;STRONG&gt;STANDARD&lt;/STRONG&gt; &lt;STRONG&gt;content center part?&lt;/STRONG&gt; If it was a part from content center inserted as "custom" it would be easy, since it is not write protected. The code has to be equivalent to right click on part-&amp;gt;"Change size..." command -&amp;gt; user input to "PN" or "Length" column,&amp;nbsp; and not to selecting a new row in family members.&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2020 11:26:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/9551140#M111523</guid>
      <dc:creator>duncpol</dc:creator>
      <dc:date>2020-05-31T11:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use iLogic to change size of components?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/9551344#M111525</link>
      <description>&lt;P&gt;For Content center parts inserted as "standard", I would do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #808080;"&gt;'This iLogic demo replaces the given standard component&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'with another member from same family.&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' row number of the new family member .&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;NewRow&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Integer&lt;/SPAN&gt; = 10

&lt;SPAN style="color: #808080;"&gt;'active assembly s&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMainAsm&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;oAsmDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oMainAsm&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;' get the occurrence by its position in the occurrences collection&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oOcc&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: #800000;"&gt;oAsmDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Occurrences&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1)
&lt;SPAN style="color: #808080;"&gt;'MsgBox (oOcc.Name)&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartComponentDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Definition&lt;/SPAN&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;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;'reference to the CC properties - oProps&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPropSets&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PropertySets&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;PropertySets&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oProps&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PropertySet&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPropSets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"Content Library Component Properties"&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' family id&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oProp&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Property&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oProps&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"FamilyId"&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;FamilyId&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oProp&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'MsgBox("FamilyId: " + FamilyId)&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;'reference to the ContentFamily&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oContentCenter&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ContentCenter&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ContentCenter&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oFamily&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ContentFamily&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oContentCenter&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;GetContentObject&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"v3#"&lt;/SPAN&gt; + &lt;SPAN style="color: #800000;"&gt;FamilyId&lt;/SPAN&gt; + &lt;SPAN style="color: #008080;"&gt;"#"&lt;/SPAN&gt;)  
&lt;SPAN style="color: #808080;"&gt;'MsgBox("Content Family DisplayName:  " + oFamily.DisplayName &amp;amp; vbNewLine &amp;amp; _&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'	    "Rows in Family:  " &amp;amp; oFamily.TableRows.Count ) '"v3#" + FamilyId + "#"&lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;'create new member file&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ErrorType&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;MemberManagerErrorsEnum&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;strContentPartFileName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;strErrorMessage&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCustomInput&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;NameValueMap&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateNameValueMap&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'Set the pipe length&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oCustomInput&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"PL"&lt;/SPAN&gt;)=600


&lt;SPAN style="color: #800000;"&gt;strContentPartFileName&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oFamily&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateMember&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;NewRow&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;ErrorType&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;strErrorMessage&lt;/SPAN&gt;, , , ,&lt;SPAN style="color: #800000;"&gt;oCustomInput&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;'replace the existing component with the new one&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Replace&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;strContentPartFileName&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2020 15:48:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-can-i-use-ilogic-to-change-size-of-components/m-p/9551344#M111525</guid>
      <dc:creator>duncpol</dc:creator>
      <dc:date>2020-05-31T15:48:46Z</dc:date>
    </item>
  </channel>
</rss>

