<?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: Using ilogic in content center parts in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/9739380#M93796</link>
    <description>&lt;P&gt;1. CC part placed in Assembly as standard , no errors description is correct.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ccpart_assembly.JPG" style="width: 304px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/817493iF43E3604DC94E7EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="ccpart_assembly.JPG" alt="ccpart_assembly.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. Open part from CC as Custom, opens correctly renames the file via Vault&amp;nbsp; naming scheme, description is correct and ilogic rule is available in new part. Part can be used to update family template if necessary changes are required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing to mention, the part number is configured such: &amp;lt;part number&amp;gt;=&amp;lt;member name&amp;gt;-&amp;lt;user entered value&amp;gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rule is triggered upon iproperty change and any parameter change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any input would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 07:51:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-09-10T07:51:32Z</dc:date>
    <item>
      <title>Using ilogic in content center parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7704024#M93786</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a customer I am creating content center families and so far I have done that by using only 'basic' part functionality to ensure its working.&lt;/P&gt;
&lt;P&gt;However, now I sort of see myself forced to embed some iLogic into it to handle the suppression of features in rather complicated situations.&lt;/P&gt;
&lt;P&gt;As I figured it is some sort of iPart, I didn't really dare to use iLogic so far.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have experience using iLogic in CC families? Does it work well? Any limitations?&lt;/P&gt;
&lt;P&gt;I did some preliminary checks and it seems to work fine, but I can't afford finding out during the final tests that the two don't work together...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 15:02:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7704024#M93786</guid>
      <dc:creator>asiteur</dc:creator>
      <dc:date>2018-01-19T15:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using ilogic in content center parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7704206#M93787</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4053208"&gt;@asiteur&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend that you don't do that..&amp;nbsp; Content center information was developed so many years ago before even iLogic came to the market.&amp;nbsp; I don't have any experience in it because I would never suggest doing it due to how true content center parts work.&amp;nbsp; Anyhow my 2 cents..&amp;nbsp; &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 15:59:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7704206#M93787</guid>
      <dc:creator>Mark.Lancaster</dc:creator>
      <dc:date>2018-01-19T15:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using ilogic in content center parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7704423#M93788</link>
      <description>&lt;P&gt;I do it without any real problems, but the iLogic code in mine doesn't control the model in any way.&amp;nbsp; It is a rule in our structural steel parts that replaces Frame Generator's built-in member length tracking with a measured extents of the final part.&amp;nbsp; It's far more reliable than FG, and gives the same resulting final length regardless of how the part was actually created (trim/notch order, etc.).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We did have some difficulties with the way the code was originally written - it would work on test parts that had already been placed, but would break when the code was actually placed in the CC family template.&amp;nbsp; This was several years ago, so I don't remember the details of exactly what was wrong with it.&amp;nbsp; The fix was either a minor rewrite in code, changing the Event Triggers to not use the "New Document" trigger, or both.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In short, there may be some quirks to it here and there, but it's definitely possible to use at least some iLogic in Content Center parts.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 16:59:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7704423#M93788</guid>
      <dc:creator>jtylerbc</dc:creator>
      <dc:date>2018-01-19T16:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using ilogic in content center parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7705715#M93789</link>
      <description>As already said, also my opinion is to don't do it.&lt;BR /&gt;I logic is not meant for that.&lt;BR /&gt;And content center is also not meant for that.&lt;BR /&gt;&lt;BR /&gt;Before you run into bigger problems later, over think it again.&lt;BR /&gt;&lt;BR /&gt;The better way is to use external coding like an add in to achieve what you need.</description>
      <pubDate>Sat, 20 Jan 2018 06:18:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7705715#M93789</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-01-20T06:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using ilogic in content center parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7708598#M93790</link>
      <description>&lt;P&gt;Thank you all for your advise.&lt;/P&gt;
&lt;P&gt;I've been trying to find a solution without iLogic and I think I found one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nevertheless if I have some spare time I will try to see what iLogic does to CC parts in the long term.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 10:02:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7708598#M93790</guid>
      <dc:creator>asiteur</dc:creator>
      <dc:date>2018-01-22T10:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using ilogic in content center parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7709364#M93791</link>
      <description>&lt;P&gt;My assumption would be that it would start throwing errors very quick seeing as STANDARD content center parts are always put in a protected location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only 2 ways I could see it working are:&lt;/P&gt;
&lt;P&gt;1. The parts are only ever placed as custom content.&lt;/P&gt;
&lt;P&gt;2. The iLogic rule actually initializes and works in a new instance of inventor, then moves files into the library location over existing files before closing the new working copy of inventor. Although, with the _ApplicationModifiable call, it might be possible to do this inside the same instance of inventor.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 14:33:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7709364#M93791</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-01-22T14:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using ilogic in content center parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7709505#M93792</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2511355"&gt;@MechMachineMan&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. The parts are only ever placed as custom content.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would add to this the fact that my example of successfully using iLogic in Content Center is based entirely on structural steel parts, which place as custom by default.&amp;nbsp; I agree completely that placing parts that contain iLogic as "Standard" will result in a ton of errors and probably will not give you the results you're looking for.&amp;nbsp; Of course, as with my structural steel, if this is something that needs to be placed as custom anyway then the issue takes care of itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4053208"&gt;@asiteur&lt;/a&gt;, have you considered whether or not this really even needs to be done in Content Center?&amp;nbsp; Perhaps just a custom iPart would be a better solution?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 15:11:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/7709505#M93792</guid>
      <dc:creator>jtylerbc</dc:creator>
      <dc:date>2018-01-22T15:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using ilogic in content center parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/9739225#M93793</link>
      <description>&lt;P&gt;I did it recently and I think it works. As mentioned earlier the way the code is written has a lot to say and the way the triggers are set up also is important. Could you provide an example of what would you like to achive?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 06:41:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/9739225#M93793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-10T06:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using ilogic in content center parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/9739281#M93794</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still my advice is to don't do it regarding the future of Inventor.&lt;/P&gt;
&lt;P&gt;When you need to migrate the CC families and parts from release to release than you may have a problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I am not sure about the mechanism you use.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Are you putting I-logic code into all the CC templates in the hidden files on C:\Progamdata... So this means you have build in code that will/can automatically be vanished with a migration.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Are you using code in the CC parts (Members) then you need to be aware that with the migration process these can directly be updated an remove the i-logic code.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Or is this a coding that is running only for the CC parts (Members) within Inventor.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would b e very very carefull with it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 07:06:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/9739281#M93794</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2020-09-10T07:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using ilogic in content center parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/9739339#M93795</link>
      <description>&lt;P&gt;I tend to agree for the sacke of as few headakes ass possible, keep ilogic away from CC.&amp;nbsp; As I am not fully aware of the challenges down the road, some of which were mentioned, I can try explain the method I used:&lt;/P&gt;&lt;P&gt;1. Create a part with user paramters carefully defined.&lt;/P&gt;&lt;P&gt;2. Create ipart with one row.&lt;/P&gt;&lt;P&gt;3. Create ilogic rule, that will go&amp;nbsp; through an array and select the appropriate standard length based on the users input.&lt;/P&gt;&lt;P&gt;feks the user enter a value A the ilogic calculates the total length B and picks the closest standard length C that is appropriate. The description of the part will be defined at the end besed on standard length.&lt;/P&gt;&lt;P&gt;4. Ipart gets published. The custom row is defined for user input.&lt;/P&gt;&lt;P&gt;5. Variants of the part are added as per standard, and&amp;nbsp; columns, as designation and file name adjusted as needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. User picks the family, then member, then the user is propted to enter a value. Value entered, the ilogic code picks the closest standard length and adds am appropriate description.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The trouble is, upon placing part into assembly everything seams to work fine. Opening the part from content center returns a bunch of errors regarding null reference. Once the errors is are cleared the part loads correctly. Something is fishy thats for sure. If this would be done outside CC it would be no problem.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;iLogicVb.UpdateWhenDone = True
ThisApplication.ActiveView.Update()
ThisApplication.[_LibraryDocumentModifiable] = True

MultiValue.SetList("THR_L", 10, 12, 14, 16, 18, 20, 22, 25, 28, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 95, 100, 110, 120, 130, 140, 150)

Parameter("MTP") = 3
Parameter("L_") = PL_thk +(2*m_)+h_+ MTP

Select Case L_
	
Case &amp;lt;= 10
		THR_L = 10
	Case 10 To 12
		THR_L = 12
	Case 13 To 14
		THR_L = 14
	Case 15 To 16
		THR_L = 16
	Case 17 To 18
		THR_L = 18
	Case 19 To 20
		THR_L = 20
	Case 21 To 22
		THR_L = 22
	Case 23 To 25
		THR_L = 25
	Case 26 To 28
		THR_L = 28
	Case 27 To 30
		THR_L = 30
	Case 31 To 35
		THR_L = 35
	Case 36 To 40
		THR_L = 40
	Case 41 To 45
		THR_L = 45
	Case 46 To 50
		THR_L = 50
	Case 51 To 55
		THR_L = 55
	Case 56 To 60
		THR_L = 60
	Case 61 To 65
		THR_L = 65
	Case 66 To 70
		THR_L = 70
	Case 71 To 75
		THR_L = 75
	Case 76 To 80
		THR_L = 80
	Case 81 To 85
		THR_L = 85
	Case 86 To 90
		THR_L = 90
	Case 91 To 100
		THR_L = 100
	Case 101 To 110
		THR_L = 110
	Case 111 To 120
		THR_L = 120
	Case 121 To 130
		THR_L = 130
	Case 131 To 140
		THR_L = 140
	Case 141 To 150
		THR_L = 150

End Select
'' set description at part level
iProperties.Value("Project", "Description") = Parameter("DESCRIPTION_TXT") &amp;amp;"M"&amp;amp; Parameter("d1_") &amp;amp;"x"&amp;amp; Parameter("THR_L") &amp;amp;" "&amp;amp;"W/2xNUT, 1xWASHER"

iLogicVb.UpdateWhenDone = True
ThisApplication.ActiveView.Update() '' update&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 07:31:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/9739339#M93795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-10T07:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using ilogic in content center parts</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/9739380#M93796</link>
      <description>&lt;P&gt;1. CC part placed in Assembly as standard , no errors description is correct.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ccpart_assembly.JPG" style="width: 304px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/817493iF43E3604DC94E7EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="ccpart_assembly.JPG" alt="ccpart_assembly.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. Open part from CC as Custom, opens correctly renames the file via Vault&amp;nbsp; naming scheme, description is correct and ilogic rule is available in new part. Part can be used to update family template if necessary changes are required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing to mention, the part number is configured such: &amp;lt;part number&amp;gt;=&amp;lt;member name&amp;gt;-&amp;lt;user entered value&amp;gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rule is triggered upon iproperty change and any parameter change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any input would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 07:51:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-in-content-center-parts/m-p/9739380#M93796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-10T07:51:32Z</dc:date>
    </item>
  </channel>
</rss>

