<?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: Work Around To Get Assemblies In Content Center Using &amp;quot;Flags&amp;quot; and Replace With iLogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10836557#M42876</link>
    <description>&lt;P&gt;a&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 19:32:40 GMT</pubDate>
    <dc:creator>Aubrey_Campbell</dc:creator>
    <dc:date>2021-12-21T19:32:40Z</dc:date>
    <item>
      <title>Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10796274#M42814</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to writing code in iLogic (in fact this is my first attempt).&amp;nbsp; As such I apologize in advance for my complete ignorance on the subject.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have searched the forum and found similar topics on the bits and pieces I need.&amp;nbsp; Unfortunately, I don't understand the syntax well enough to modify them to suite my needs, hence this post asking for help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to create an external rule that will look at all .ipt files in an assembly (don't look at .iam files) and read a custom property ("CC Assy?" is the custom property.&amp;nbsp; This custom property will serve as my "Flag".).&amp;nbsp; This property will either be set to "yes" or "no" within the .ipt file iProperties.&amp;nbsp;&amp;nbsp;&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="Acampbell95BZ4_0-1638394030138.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/996037i2E7884636B82554E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Acampbell95BZ4_0-1638394030138.png" alt="Acampbell95BZ4_0-1638394030138.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the rule reads an .ipt file with "CC Assy?" set to "no", do nothing.&amp;nbsp; If the rule reads an .ipt file with "CC Assy?" set to "yes", then I need the code to read the "Part Name" from the iProperties&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="Acampbell95BZ4_1-1638394117442.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/996038i3002C4A82C13E5CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Acampbell95BZ4_1-1638394117442.png" alt="Acampbell95BZ4_1-1638394117442.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now that we have a part number (probably stored as a variable) the code needs to do a Replace component on that .ipt.&amp;nbsp; The code needs to look in all these (below) folders (they are all sub folders of a single directory) and find the .iam with file name = Part Name read earlier in the code.&amp;nbsp; Preferably, only look in these folders one level deep (don't look in subfolders of the folders shown below).&amp;nbsp;&amp;nbsp;&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="Acampbell95BZ4_2-1638394427257.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/996041iB2217B7A47137FA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Acampbell95BZ4_2-1638394427257.png" alt="Acampbell95BZ4_2-1638394427257.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the .iam file is found, do a Replace component and replace the .ipt with the .iam found in one of the folders above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure you can tell what I'm trying to do at this point (based on the title of the post).&amp;nbsp; The purpose is to allow me to put commonly used assemblies in the content center so they can be quickly and easily accessed.&amp;nbsp; Because CC does not allow .iam files, I will simply place a representative .ipt file in the CC and manually trigger the iLogic code I'm trying to write to automatically replace the representative .ipt file with the correct .iam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code will need perform the replace on all instances of the representative .ipt file placed from the CC.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any help anyone is able to offer!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 13:49:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10796274#M42814</guid>
      <dc:creator>Aubrey_Campbell</dc:creator>
      <dc:date>2021-12-02T13:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10796299#M42815</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10973428"&gt;@Aubrey_Campbell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wouldnt it be quicker and a lot less work to just place the .iam in your designs right away, from wherever they reside?&amp;nbsp; Maybe I'm not understanding your workflow?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 13:58:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10796299#M42815</guid>
      <dc:creator>CGBenner</dc:creator>
      <dc:date>2021-12-02T13:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10796347#M42816</link>
      <description>&lt;P&gt;Not necessarily. Some commonly used assemblies work/go together and are stored in different folders. Also, each folder has a larger number of files in it with file names that are simply a letter and an 8 digit number making it sometimes time consuming (to a small degree, granted) to track them down. Also, it will help to error proof engineers placing components that don't go together. Furthermore, I have all our commonly used parts nicely organized in a quick and easy to find manner in the content center. It would be great to do the same for commonly used assemblies that never get edited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand the CC is not meant to be used this way (hence the 'work around').&amp;nbsp; The CC is meant to 'build' a part based on parameters in the family table.&amp;nbsp; However, the 'dumbed down' application of the CC I am attempting would be very useful in allowing me to access commonly used parts and assemblies all in one place, nicely organized and that organization doesn't have to follow my company's file storing (or naming) scheme.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 14:28:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10796347#M42816</guid>
      <dc:creator>Aubrey_Campbell</dc:creator>
      <dc:date>2021-12-02T14:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10796481#M42817</link>
      <description>&lt;P&gt;I'm wondering how you organize your data today. If you use Vault workgroup or professional you are in control of your data. You can work work with shortcuts to frequently used assemblies. Or used the search capabilities to quickly find data that need to be reused. I don't think automation will speed up your process, using a data management system will.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 14:55:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10796481#M42817</guid>
      <dc:creator>theo.bot</dc:creator>
      <dc:date>2021-12-02T14:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10796499#M42818</link>
      <description>You are correct, Vault would help with this issue. However, we do not yet have Vault and a lot of our assemblies are not 'clean' enough to go into Vault. Seeing as how I only have Inventor to work with (no Vault or data management system) I need to make use of the CC for this purpose. ... of course it is always easier to spend more money and purchase more products (minus the pains and large undertaking of migration and training) but is not currently an option.&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Dec 2021 15:03:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10796499#M42818</guid>
      <dc:creator>Aubrey_Campbell</dc:creator>
      <dc:date>2021-12-02T15:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10798117#M42819</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10973428"&gt;@Aubrey_Campbell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's fine :-). off course we're not here to sell products, but at least have a discussion that helps you in finding your solution.&lt;/P&gt;&lt;P&gt;Before you start with automation, did you you manually tried this workflow in your models. The reason why I ask this is because you want to replace a part with a assembly. In most cases components are constraint with other components, when you replace a part with an assembly these constrains might fail or result in an error. So you might need to include this in your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would advise go in baby steps, if this is your first time to create a code. Here are some good guides for your workflow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;understand the assembly structure and how to loop thru the data.&lt;BR /&gt;&lt;A href="https://modthemachine.typepad.com/my_weblog/2009/03/accessing-assembly-components.html" target="_blank"&gt;Mod the Machine: Accessing Assembly Components (typepad.com)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;understand iproperties&lt;BR /&gt;&lt;A href="https://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html" target="_blank"&gt;Mod the Machine: Accessing iProperties (typepad.com)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;replace component&lt;BR /&gt;&lt;A href="https://adndevblog.typepad.com/manufacturing/2012/08/replace-a-component-in-an-assembly-and-maintain-constraints-using-the-api.html" target="_blank"&gt;Replace a Component in an Assembly and Maintain Constraints Using the API - Manufacturing DevBlog (typepad.com)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Find documents in folder&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/visual-basic/developing-apps/programming/drives-directories-files/how-to-find-files-with-a-specific-pattern" target="_blank"&gt;How to: Find Files with a Specific Pattern - Visual Basic | Microsoft Docs&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 03 Dec 2021 06:45:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10798117#M42819</guid>
      <dc:creator>theo.bot</dc:creator>
      <dc:date>2021-12-03T06:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10799080#M42820</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4152283"&gt;@theo.bot&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the information!!&amp;nbsp; This looks like the track I need to be on.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your question, Yes, I have tested this process manually and it works well.&amp;nbsp; I have not had any issues with constraints or joints breaking.&amp;nbsp; ... We are talking about simple assemblies here; actuators, door switches, hinges and so on.&amp;nbsp; Most assemblies only have 2 parts in them.&amp;nbsp; Some of these assemblies don't even have constraints or joints (like door safety switch, which is just a magnet and a sensor in a flexible assembly).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just so everyone is clear, here are more specifics on my situation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My company uses a numbering system that consists of a specific letter (A, M, P, or Z) and 8 digits.&amp;nbsp; An example of a purchased part would be "P10006521".&amp;nbsp; If an engineer creates a new purchased part (downloads model from the vendor and adds to our system) they pull a new "P-Number" and that P-Number will be the next number in the sequence.&amp;nbsp; All of these P-Numbers are stored in sorted folders (see image below).&amp;nbsp;&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="Acampbell95BZ4_0-1638539609700.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/996873i5375FB09652098BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Acampbell95BZ4_0-1638539609700.png" alt="Acampbell95BZ4_0-1638539609700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the P-Number is pulled by the engineer it is written to a spreadsheet we use as our parts library (all parts are in this spreadsheet with descriptions, manufacturer, manufacturer's part number and so on).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now imagine it's 6 months after you created a P-Number and put it in the appropriate folder.&amp;nbsp; Let's say it's a particular door switch and you need to use it again on your current project.&amp;nbsp; You are not going to remember what that number was, therefore, you will not know which folder it is in.&amp;nbsp; So, we search the spreadsheet, however, this relies on you having some information about the part.&amp;nbsp; If you don't remember any details about the part, hopefully you remember what project you used it on and you can open that project to find it.&amp;nbsp; Short of that, you would have to drill through folders on a blind hunt.&amp;nbsp; Another problem with the spreadsheet (and searching in Vault, for that matter) is that key words need to be consistent which is very hard to get a group of people to do, particularly as new key words are needed; it becomes a task just keeping track of what you should call what.&amp;nbsp; For example, I might call it a door safety switch whereas the guy at the desk behind me might call it a magnetic interlock.&amp;nbsp; Also, key words could be spelled incorrectly by mistake.&amp;nbsp; There is a lot of room for error when we rely on a group to all do the same exact thing at all times.&amp;nbsp; These issues have led to some of us creating duplicate parts with different part numbers because we weren't able to find in the spreadsheet or folders a particular part we needed, when it actually did already exist somewhere.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My content center does have traditional CC parts that operate as CC parts are meant to operate (fasteners, for example).&amp;nbsp; However, I also have commonly used parts in the CC for convenience and organization.&amp;nbsp; These parts only have one row in their family tables and are not dynamic the way bolts are.&amp;nbsp;&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="Acampbell95BZ4_2-1638541069327.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/996883i2B186E5841C4E4AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Acampbell95BZ4_2-1638541069327.png" alt="Acampbell95BZ4_2-1638541069327.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At home, I keep all my tools in as few tool boxes as possible and I keep those tool boxes together so all my tools are right at my fingertips and I know where to find anything I need to do the job at hand.&amp;nbsp; Why would anyone not want the same for all commonly used parts and assemblies (assemblies that do not get edited, so they will always be the same from one project to the next, like purchased parts; actuators or door switches, for example)?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the CC I can neatly organize all of our commonly used parts and assemblies in a manner that makes sense and is not tied to the part number (our folder system).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, If I need an actuator (.iam file), I can just open the CC, expand the pneumatics category and look at all the actuators we currently use.&amp;nbsp; This will also help to greatly reduce the risk of repeated parts with different part numbers.&amp;nbsp;&amp;nbsp;&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="Acampbell95BZ4_3-1638541496522.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/996884i568CEAF550645B1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Acampbell95BZ4_3-1638541496522.png" alt="Acampbell95BZ4_3-1638541496522.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wouldn't it be great if you could open one tool box and in it are all your fasteners, gussets, extrusions, actuators, robots, and so on?&amp;nbsp; Who wouldn't want that??&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This system also helps with constancy; I want all my machines to be uniform looking (same hinges and doors where possible, for example) and I want all my engineers to do the same so our machines are uniform and constant looking from factory to factory.&amp;nbsp; Also, If a customer buys a machine, then another years later, I don't want to have to worry about what I gave them last time to make sure they match when the new one gets there.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... And I know someone will probably suggest we change the way we store our parts, or something to that effect.&amp;nbsp; However, this is not an option!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do understand this is not how CC was meant to be used, and to that I say, "why not?"&amp;nbsp; Just because the developers didn't see the application, doesn't mean there isn't one!&amp;nbsp; Isn't that what iLogic is for anyways; to do ANYTHING we need to that is not already a function of Inventor?&amp;nbsp; It is certainly robust enough to get the job done!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this makes sense and paints a more clear picture for anyone willing to help.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really do appreciate any and all help from anyone and, specifically, thank you to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4152283"&gt;@theo.bot&lt;/a&gt;&amp;nbsp;for pointing me in a direction to get me started!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Searching the forums, I see others have attempted something similar to this in the past.&amp;nbsp; For the benefit of those and others in the future, I will post my code if/when I have something working.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 15:12:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10799080#M42820</guid>
      <dc:creator>Aubrey_Campbell</dc:creator>
      <dc:date>2021-12-03T15:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10800077#M42821</link>
      <description>&lt;P&gt;A nice and clear explanation of the workflow. Of course there is more than one way to carry out these tasks and for sure having a nice assembly library with the functionality of the CC is something that should have been created all ready.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am happy to lend a hand. Do you prefer to start writing the rule yourself based on&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4152283"&gt;@theo.bot&lt;/a&gt;&amp;nbsp; links or would you prefer assistants at this stage? Either way I will work on this in the background as it is an interesting challenge and will post my version if you require assistance. From experience the more you read and do and get wrong the more knowledge goes in. Sure copying and pasting a rule from the forum is great but understanding what it does before you press the button really helps to learn and avoid error after error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 22:46:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10800077#M42821</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-12-03T22:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10803616#M42822</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;!!&amp;nbsp; Help is much appreciated!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree, the best way to learn is to stumble a little.&amp;nbsp; So, let me take a crack at it based on the info&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4152283"&gt;@theo.bot&lt;/a&gt;&amp;nbsp;has provided.&amp;nbsp; I'm sure I will get stuck and it will be great to compare notes/code when I get a little more done with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for the offer of help!&amp;nbsp; ... I will post what I have when I have something.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 13:46:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10803616#M42822</guid>
      <dc:creator>Aubrey_Campbell</dc:creator>
      <dc:date>2021-12-06T13:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10804071#M42823</link>
      <description>&lt;P&gt;Reading through the documents&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4152283"&gt;@theo.bot&lt;/a&gt;&amp;nbsp; provided, I am trying to run the sample code in the documents to better understand.&amp;nbsp; However, I am having a little trouble with the first sample.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the sample code I am trying to run and here is the link:&amp;nbsp;&amp;nbsp;&lt;A href="https://modthemachine.typepad.com/my_weblog/2009/03/accessing-assembly-components.html" target="_blank" rel="noopener"&gt;https://modthemachine.typepad.com/my_weblog/2009/03/accessing-assembly-components.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Public Sub TraverseAssemblySample()
    ' Get the active assembly.
    Dim oAsmDoc As AssemblyDocument
    Set oAsmDoc = ThisApplication.ActiveDocument
    Debug.Print oAsmDoc.DisplayName

    ' Call the function that does the recursion.
    Call TraverseAssembly(oAsmDoc.ComponentDefinition.Occurrences, 1)
End Sub

Private Sub TraverseAssembly(Occurrences As ComponentOccurrences, _
                             Level As Integer)
    ' Iterate through all of the occurrence in this collection.  This
    ' represents the occurrences at the top level of an assembly.
    Dim oOcc As ComponentOccurrence
    For Each oOcc In Occurrences
        ' Print the name of the current occurrence.
        Debug.Print Space(Level * 3) &amp;amp; oOcc.Name

        ' Check to see if this occurrence represents a subassembly
        ' and recursively call this function to traverse through it.
        If oOcc.DefinitionDocumentType = kAssemblyDocumentObject Then
            Call TraverseAssembly(oOcc.SubOccurrences, Level + 1)
        End If
    Next
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;When I hit Save I get an error message that says "Error in rule program format: The rule must contain: Sub Main() ... End Sub"&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="Acampbell95BZ4_0-1638808586721.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/997783i1AAFA17345E445DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Acampbell95BZ4_0-1638808586721.png" alt="Acampbell95BZ4_0-1638808586721.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please explain?&amp;nbsp; I would think this code should work as it is a teaching sample.&amp;nbsp; What am I missing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--- It appears this code is VB.&amp;nbsp; I am pretty sure I got it to work in the VBA editor.&amp;nbsp; What would be the iLogic equivalent?&amp;nbsp; ... or is it not that simple?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 19:44:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10804071#M42823</guid>
      <dc:creator>Aubrey_Campbell</dc:creator>
      <dc:date>2021-12-06T19:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10804747#M42824</link>
      <description>&lt;P&gt;Ok, So I have a new piece of code I am working with and trying to understand.&amp;nbsp; Also, I think this code is close to what I need for part of what I am trying to do (reading through each part in the assembly).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I'm having with the code is that it does not look for the "flag" properly (see if custom iProperty "CC ASSY?" is set to "yes").&amp;nbsp; In addition, the code pulls the Part Name from the iProperties of the assembly and not each part in the assembly.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim AssyPN As String 
Dim AssyNum As String

' Get the active assembly document.
Dim oAsmDoc As AssemblyDocument = ThisApplication.ActiveDocument

' Iterate through all of the documents referenced by the assembly.
Dim oDoc As Document

For Each oDoc In oAsmDoc.AllReferencedDocuments

' Verify that the document is a part.
    If oDoc.DocumentType = kPartDocumentObject Then    
        Dim oPartDoc As PartDocument = oDoc

'Manipulate part    
        Dim model As String = oPartDoc.DisplayName
        'model = model &amp;amp; ".ipt"
        Try
            If iProperties.Value("Custom", "CC Assy?") = Yes Then
                AssyNum = iProperties.Value("Summary", "Title")
				MessageBox.Show("Assy Part NUmber is: " &amp;amp; AssyNum, "Assy Number To Find")
                Else
            End If
        Catch
        MessageBox.Show("Must manually change " &amp;amp; model)
        End Try
    End If
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my education:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;'Dim':&amp;nbsp; it looks like this is a command used to declare a variable.&amp;nbsp; Is that accurate?&amp;nbsp; Is there any more nuance to it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I noticed in a lot of code I see posted it looks as though most people put an 'o' in front of their variable names (for example, 'oDoc' in the code above).&amp;nbsp; Is there a reason for this convention?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not used to object based programming and this seems to be a major source of my troubles.&amp;nbsp; I thought I would need a loop (and a counter of some sort, like 'i=i+1') to iterate through each element in the assembly.&amp;nbsp; .... or do I, and that is why my code is not working?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 21:49:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10804747#M42824</guid>
      <dc:creator>Aubrey_Campbell</dc:creator>
      <dc:date>2021-12-06T21:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10805111#M42825</link>
      <description>&lt;P&gt;Yes you are correct this is VBA sample. And this will work out of the box in VBA. This sample is actually from the API help documentation that comes with Inventor. The online help can be found &lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-5901102A-F148-4CD4-AF50-26E2AFDEE6A7" target="_blank" rel="noopener"&gt;&lt;U&gt;Here&lt;/U&gt;,&amp;nbsp;&lt;/A&gt;although it can be tricky to navigate as samples and non API descriptions come up in your search. The built &amp;nbsp;in API help documentation can be found &lt;A href="http://inventortrenches.blogspot.com/2013/10/ilogic-how-to-learn-inventors.html?m=1" target="_blank" rel="noopener"&gt;here&lt;/A&gt; and is more direct but you have to be a little more precise with the key words, less is more. &amp;nbsp; The majority of the Help is written in VBA.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;In the ilogic rule editor you would need to run this as VB.NET so you need the following changes.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Sub Main and End Sub always. The sub routines calls then go in between and the sub routine code outside of this.&lt;/LI&gt;&lt;LI&gt;Delete the word Set from all the rule.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;“Debug.Print” can be replaced by Logger.Info () link &lt;A href="https://knowledge.autodesk.com/support/inventor/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/Inventor-iLogic/files/GUID-BE996AA3-DE49-4765-86A7-129DD7B42A4A-htm.html" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Optional: Call in-front of sub routine name and arguments can be dropped. The &amp;nbsp;documentation says to drop it however I haven’t seen any errors if left in. It can be easier to spot the sub routine line.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Sub Main()

TraverseAssemblySample()

End Sub

Public Sub TraverseAssemblySample()
    ' Get the active assembly.
    Dim oAsmDoc As AssemblyDocument
    oAsmDoc = ThisApplication.ActiveDocument
   Logger.Info(oAsmDoc.DisplayName)

    ' Call the function that does the recursion.
    TraverseAssembly(oAsmDoc.ComponentDefinition.Occurrences, 1)
End Sub

Private Sub TraverseAssembly(Occurrences As ComponentOccurrences, _
                             Level As Integer)
    ' Iterate through all of the occurrence in this collection.  This
    ' represents the occurrences at the top level of an assembly.
    Dim oOcc As ComponentOccurrence
    For Each oOcc In Occurrences
        ' Print the name of the current occurrence.
     Logger.Info( Space(Level * 3) &amp;amp; oOcc.Name

        ' Check to see if this occurrence represents a subassembly
        ' and recursively call this function to traverse through it.
        If oOcc.DefinitionDocumentType = kAssemblyDocumentObject Then
            TraverseAssembly(oOcc.SubOccurrences, Level + 1)
        End If
    Next
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 01:43:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10805111#M42825</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-12-07T01:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10805112#M42826</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 01:41:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10805112#M42826</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-12-07T01:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10805351#M42827</link>
      <description>&lt;P&gt;You are correct, you are&amp;nbsp; currently using the ilogic snippet which is a shorten version of the API method to get and set iproperties and there values.&amp;nbsp; As it is set up below the the document reference is omitted so it will only look at the document the rule is called from in this case the assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;iProperties.Value("Custom", "CC Assy?")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is missing is the document reference. The above can also be written as below using the display name which is the occurrence name also. This ties the document to the iproperty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;iProperties.Value(oAsmDoc.DisplayName,"Custom", "CC Assy?")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sample you have below will work to get the document references but you will still have to get a hold of the occurrences to carry out any change in the assembly. I would stick with the occurrence looping. But this is a good a start and useful for iproperty work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a working version of your code.&amp;nbsp; Note the API access vs the ilogic snippet access. The ilogic snippets can be a bit troublesome at times and does not always give error messages. Using the API is more robust for adding iproperties.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;' Get the active assembly document.
Dim oAsmDoc As AssemblyDocument = ThisApplication.ActiveDocument

' Iterate through all of the documents referenced by the assembly.
Dim oDoc As Document

For Each oDoc In oAsmDoc.AllReferencedDocuments

' Verify that the document is a part.
    If oDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject Then    
        Dim oPartDoc As PartDocument = oDoc
'[API Property Access
Try
'	' Get the User Defined property set.
'	Dim UserDefinedPropSet As PropertySet
'	UserDefinedPropSet = oPartDoc.PropertySets.Item("Inventor User Defined Properties")

'	' Get the Size property.
'	Dim AssyCheck As Inventor.Property
'	AssyCheck = UserDefinedPropSet.Item("CC Assy")
'	Dim Ans As Boolean
'	Ans = AssyCheck.Value
'	If Ans = True Then
'		 Logger.Info("Yes:" &amp;amp; oPartDoc.DisplayName)
'	 ElseIf Ans = False Then
'		  Logger.Info("No:" &amp;amp; oPartDoc.DisplayName)
'	 End If
Catch
End Try
	']
	
	
	'[iLogic Snippets
	
	Try
	Dim Ans As Boolean
	Ans = iProperties.Value(oPartDoc.DisplayName,"Custom", "CC Assy")
	If Ans = True Then
		 Logger.Info("Yes:" &amp;amp; oPartDoc.DisplayName)
		 	Dim AssyNum As String
                AssyNum = iProperties.Value(oPartDoc.DisplayName,"Summary", "Title")
				Logger.Info("Part Name: "&amp;amp; AssyNum, oPartDoc.DisplayName)
	 ElseIf Ans = False Then
		  Logger.Info("No:" &amp;amp; oPartDoc.DisplayName)
	 End If	
	Catch
	End Try

	']
	
    End If
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Dim remark sounds about right, o is really just an easy way to identify a variable, there is no hard and fast rule on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 05:08:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10805351#M42827</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-12-07T05:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10808625#M42828</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10973428"&gt;@Aubrey_Campbell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;great to see you already made some progress with the support of&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to add a great 50 minute session from AU that will get you up to speed in learning programming in I logic.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://www.autodesk.com/autodesk-university/class/ilogic-Best-Practices-and-Fundamentals-Success-2021#video" target="_blank"&gt;ilogic Best Practices and Fundamentals for Success | Autodesk University&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 11:36:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10808625#M42828</guid>
      <dc:creator>theo.bot</dc:creator>
      <dc:date>2021-12-08T11:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10809026#M42829</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4152283"&gt;@theo.bot&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will watch the video you have provided.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it definitely feels like I am starting to get somewhere with my code, (special thanks to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;&amp;nbsp;for that!!).&amp;nbsp; I can finally see the code running through all the parts in my assembly but is no accurately capturing my 'Flag' for each part.&amp;nbsp; I will work on it today and hopefully get posted what I have and what I think is going wrong later today.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, again!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---- Update ----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have watched the video and it was definitely worth a look as it helped to fill in some blanks for me regarding the basics.&amp;nbsp; Thank you, again!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 15:57:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10809026#M42829</guid>
      <dc:creator>Aubrey_Campbell</dc:creator>
      <dc:date>2021-12-08T15:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10810130#M42830</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the information and explanations.&amp;nbsp; To avoid confusion (on my part) I will try to steer clear of the VBA code.&amp;nbsp; ... If I understand correctly that this is an option.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As such, I have been working with the second set of code you posted.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first bit of this code is all commented out (the bit that starts with&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;'[API Property Access&lt;/LI-CODE&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like the second bit of code does the same thing (the bit that starts with&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;	'[iLogic Snippets&lt;/LI-CODE&gt;&lt;P&gt;), therefore, the API property access part of the code that is all commented out is not needed.&amp;nbsp;&amp;nbsp;Is that accurate?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a snap shot of my browser tree:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Does the code read this list from top to bottom, or bottom to top?&amp;nbsp; I would think it would be top to bottom, but it seems to be reading from bottom to top.&amp;nbsp;&amp;nbsp;&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="Acampbell95BZ4_0-1638996576722.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/999007i6B6BAEB1842D9579/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Acampbell95BZ4_0-1638996576722.png" alt="Acampbell95BZ4_0-1638996576722.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, I have 2 content center parts (.ipt), 2 regular parts (.ipt) and 1 assembly (.iam)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My idea for debugging and testing is to have 2 CC parts (one with Custom iProperty "CC Assy?" set to 'yes' and the other set to 'no'), 2 standard (or regular) parts&amp;nbsp;(one with Custom iProperty "CC Assy?" set to 'yes' and the other set to 'no') and one assembly.&amp;nbsp; The code should identify the one standard part and one CC part the has&amp;nbsp;Custom iProperty "CC Assy?" set to 'yes' and pull the values from the iProperties 'Part Name' field of each of those parts (later, the code will need to look for those part names in the folder locations to perform replace on them).&amp;nbsp; The code should ignore the assembly and the other standard part and CC part that have&amp;nbsp;Custom iProperty "CC Assy?" set to 'no'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some of the issues I have noticed with the code:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; It seems to be looking at parts that make up the sub assembly (P10001446).&amp;nbsp; The code is supposed to do nothing if the file type is an assembly.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; The code does not seem to be identifying all parts that have the custom iProperty "CC Assy?" set to "yes".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; The code seems to be treating the 2 parts from the CC in a different manner than the 2 standard parts.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; Only one of the parts with&amp;nbsp;custom iProperty "CC Assy?" set to "yes" is getting its part name pulled.&amp;nbsp; The code should pull part name from both parts with&amp;nbsp;custom iProperty "CC Assy?" set to "yes".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have heavily commented the code (my comments/questions have "*****" in front).&amp;nbsp; I created these comments to confirm I know what each line of the code is doing.&amp;nbsp; There are also specific questions peppered in there.&amp;nbsp; Please let me know if any of my comments or assumptions as to what each line is doing is correct or not.&amp;nbsp; I really need to make sure I understand the meaning of all the code to help me get it doing what I need.&amp;nbsp; I may be wrong about what some of the code is doing and if this is the case, it is definitely contributing to my difficulties.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here is the code:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;' Get the active assembly document.


'***** oAsmDoc is a variable and has been type cast as an 
'***** Assembly Document And Is Set equal To the current active document
Dim oAsmDoc As AssemblyDocument = ThisApplication.ActiveDocument

' Iterate through all of the documents referenced by the assembly.


'***** oDoc is a variable and has been type cast as a document.  
'***** So, oDoc represents a document
Dim oDoc As Document


'***** 'For Each' looks at each oDoc (which was earlier set to the active document).  
'***** So, essentially, this looks at Each document that is refenced by the assembly.  
For Each oDoc In oAsmDoc.AllReferencedDocuments

' Verify that the document is a part.


'***** This line looks at the type of document the variable oDoc holds and checks to see if it is part document
'***** Line 25 is below this line
    If oDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject Then    
		
'***** If the variable oDoc contains a part ducument, then a message box that says "Doc is a Part" is displayed		
		MessageBox.Show("Doc is a Part", "Title")

'***** If variable oDoc contains a part ducument, declare a new variable called oPartDoc and type cast it to be
'***** a part document and set oPartDoc equal to oDoc
'***** Why is this line needed?  Are we creating a superfluous variable?  At this point, hasn't it already been 
'***** established that the variable oDoc contains a part Document?
        Dim oPartDoc As PartDocument = oDoc
		

	'[iLogic Snippets
	
	
'***** Declare a new variable called Ans and it is boolean type.  
'***** Can Boolean Type be any Of these: "yes/no", 	"true/false", or "0/1"? Or, are only one of those three sets valid?
	Dim Ans As Boolean
Try	
	
'***** write to the log the display name (from the browser tree, I assume.  Is that accurate?)
	Logger.Info("oPartDoc Name: " &amp;amp; oPartDoc.DisplayName)
	
'***** Set variable Ans = to the custom iProperty called CC_Assy?
	Ans = iProperties.Value(oPartDoc.DisplayName, "Custom", "CC_Assy?")
	
'***** write to the log the value Ans has stored in it
	Logger.Info("Ans: " &amp;amp; Ans)

'***** Check to see if Ans is true (value in custom iProperty for 'CC Assy?' is 'yes')
	If Ans = True Then
		
'***** write to the log the display name of the part that has custom iProperty for 'CC Assy?' set to 'yes'
		Logger.Info("True: " &amp;amp; oPartDoc.DisplayName)
		
'***** Declare a new variable called 'AssyNum' and its type is a string of characters
		 	Dim AssyNum As String
			
'***** Set the variable 'AssyNum' equal to the 'Title' of the part from the iPorperties.
'***** This part of the code now holds the part number I will need future code (yet to 
'***** be written) To find In my folders And perform a Replace On
                AssyNum = iProperties.Value(oPartDoc.DisplayName, "Summary", "Title")
				
'***** Write to the log the value stored in 'AssyNum'.  I am not sure about the 'oPartDoc.DisplayName' 
'***** after the comma.  What is it doeing in this context?
				Logger.Info("Part Name: " &amp;amp; AssyNum, oPartDoc.DisplayName)
				
'***** If Ans is false (set to 'no' in the iProperties under the Custom field 'CC Assy?'), 
'***** Write to the log the part name With the word False In front Of it.
	 ElseIf Ans = False Then
		 
'***** Write to the log 		 
		  Logger.Info("False: " &amp;amp; oPartDoc.DisplayName)
	 End If	

'***** If the Try does not work, display a text message saying "Failed"
Catch
		MessageBox.Show("Failed", "Title")

End Try

	']
'***** If the If Statment on line 26 is not satisfied, do nothing.  In other words, if the document is not a part, 
'***** do nothing. 
	Else
		
'***** End of If Statement on line 26		
    End If
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached are my part files (and the one assembly) you see in the browser tree image above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for all the help!&amp;nbsp; It is greatly appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 21:33:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10810130#M42830</guid>
      <dc:creator>Aubrey_Campbell</dc:creator>
      <dc:date>2021-12-08T21:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10810441#M42831</link>
      <description>&lt;P&gt;The issues I have found are related read only status of Content center files, ilogic iProperty snippet and the lack of a boolean parameter in the ipart table in content center.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the CC file I couldn't export a boolean parameter as custom iProperty so I had to use a string of "Yes" or "No"&lt;/P&gt;&lt;P&gt;The ilogic iproperty snippet will not work as it is trying to write to the read only CC file and not just read the value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution is to use the API property method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason your are seeing the parts contained in the sub assemblies is that the loop is working through every document in the main assembly shown by "AllReferencedDocuments". It is filtering on parts only.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;For Each oDoc In oAsmDoc.AllReferencedDocuments&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Working flag identifier code testing using 2020 files.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;'[&lt;/SPAN&gt;
&lt;SPAN&gt;' Get the active assembly document.&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN&gt;' Iterate through all of the documents referenced by the assembly.&lt;/SPAN&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;Document&lt;/SPAN&gt;

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt;.&lt;SPAN&gt;AllReferencedDocuments&lt;/SPAN&gt;

&lt;SPAN&gt;' Verify that the document is a part.&lt;/SPAN&gt;
    &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPartDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;    
        &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;
	
	&lt;SPAN&gt;'[API Property Access&lt;/SPAN&gt;
	&lt;SPAN&gt;Try&lt;/SPAN&gt;
		&lt;SPAN&gt;' Get the User Defined property set.&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;UserDefinedPropSet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PropertySet&lt;/SPAN&gt;
		&lt;SPAN&gt;UserDefinedPropSet&lt;/SPAN&gt; = &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Inventor User Defined Properties"&lt;/SPAN&gt;)

		&lt;SPAN&gt;' Get the Size property.&lt;/SPAN&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;AssyCheck&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;Property&lt;/SPAN&gt;
		&lt;SPAN&gt;AssyCheck&lt;/SPAN&gt; = &lt;SPAN&gt;UserDefinedPropSet&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"CC_Assy?"&lt;/SPAN&gt;)
		
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Ans&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
		&lt;SPAN&gt;Ans&lt;/SPAN&gt; = &lt;SPAN&gt;AssyCheck&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;
		
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Ans&lt;/SPAN&gt; = &lt;SPAN&gt;"Yes"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			 &lt;SPAN&gt;Logger&lt;/SPAN&gt;.&lt;SPAN&gt;Info&lt;/SPAN&gt;(&lt;SPAN&gt;"UserDefinedPropSet-Yes:"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt;)
		&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;Ans&lt;/SPAN&gt; = &lt;SPAN&gt;"No"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			  &lt;SPAN&gt;Logger&lt;/SPAN&gt;.&lt;SPAN&gt;Info&lt;/SPAN&gt;(&lt;SPAN&gt;"UserDefinedPropSet-No:"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt;)
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	&lt;SPAN&gt;Catch&lt;/SPAN&gt;
		&lt;SPAN&gt;Logger&lt;/SPAN&gt;.&lt;SPAN&gt;Info&lt;/SPAN&gt;(&lt;SPAN&gt;"UserDefinedPropSet-error:"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
		&lt;SPAN&gt;']&lt;/SPAN&gt;
		
	
	&lt;SPAN&gt;'[iLogic Snippets used for testing, does not work on read only files from cc files, trying to write instead of read. &lt;/SPAN&gt;
	
&lt;SPAN&gt;'	Try	&lt;/SPAN&gt;
&lt;SPAN&gt;'	Dim Ans As String&lt;/SPAN&gt;
&lt;SPAN&gt;'	Ans = iProperties.Value(oPartDoc.DisplayName, "Custom", "CC_Assy?")&lt;/SPAN&gt;
	
&lt;SPAN&gt;'	If Ans = "Yes" Then&lt;/SPAN&gt;
&lt;SPAN&gt;'		 Logger.Info("Yes:" &amp;amp; oPartDoc.DisplayName)&lt;/SPAN&gt;
&lt;SPAN&gt;'	ElseIf Ans = "No" Then&lt;/SPAN&gt;
&lt;SPAN&gt;'		  Logger.Info("No:" &amp;amp; oPartDoc.DisplayName)&lt;/SPAN&gt;
&lt;SPAN&gt;'	End If&lt;/SPAN&gt;
	
&lt;SPAN&gt;'	Catch&lt;/SPAN&gt;
&lt;SPAN&gt;'		Logger.Info("ilogic iproperty error:" &amp;amp; oPartDoc.DisplayName)&lt;/SPAN&gt;
&lt;SPAN&gt;'	End Try&lt;/SPAN&gt;
	&lt;SPAN&gt;']&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;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 00:05:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10810441#M42831</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-12-09T00:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10810940#M42832</link>
      <description>&lt;P&gt;And the answer to some of those questions.&amp;nbsp;&lt;BR /&gt;For Each oDoc In oAsmDoc.AllReferencedDocuments&lt;/P&gt;&lt;P&gt;' Verify that the document is a part.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;ODoc here could be either an assembly document or part document&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;If oDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject Then&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;ODoc here is now a still a regular Document but you will not have access to the part specific objects, functions and collections such as sketch, etc in the drop down lists.&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***** Why is this line needed? Are we creating a superfluous variable? At this point, hasn't it already been&lt;BR /&gt;'***** established that the variable oDoc contains a part Document?&lt;BR /&gt;Dim oPartDoc As PartDocument = oDoc&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;Passing the object to the new variable oPartDoc allows this to happen.&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;'***** Can Boolean Type be any Of these: "yes/no", "true/false", or "0/1"? Or, are only one of those three sets valid?&lt;BR /&gt;Dim Ans As Boolean&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;True/False were the only values that could be used in the editor to check if a yes/ no value was used in custom iproperty, I didn't check 0/1. As explained above CC files did not allow boolean to be used.&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 07:31:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10810940#M42832</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-12-09T07:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Work Around To Get Assemblies In Content Center Using "Flags" and Replace With iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10811948#M42833</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I find it odd that you can't write to these CC files.&amp;nbsp; Custom CC libraries are read/write.&amp;nbsp; These parts are all from a custom CC library I created.&amp;nbsp; Also, as you can see from the image below, my custom read/write CC library is the only one active in my test project.&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="Acampbell95BZ4_0-1639059771836.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/999321i95CB2CE18A795D23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Acampbell95BZ4_0-1639059771836.png" alt="Acampbell95BZ4_0-1639059771836.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I can manually write info to the iProperties on these CC files.&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="Acampbell95BZ4_1-1639059855725.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/999323i6DEBA279B0B52BF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Acampbell95BZ4_1-1639059855725.png" alt="Acampbell95BZ4_1-1639059855725.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Acampbell95BZ4_2-1639059906858.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/999324i1E6496F9A4A62ACB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Acampbell95BZ4_2-1639059906858.png" alt="Acampbell95BZ4_2-1639059906858.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The grayed out buttons show the input has been accepted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will not be a problem if we have to put the flag in the family table, or iPart table.&amp;nbsp; Maybe this is preferable as it keeps the flag a little 'deeper' in the system so the value cannot be accidently changed by another engineer editing iProperties.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 15:06:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/work-around-to-get-assemblies-in-content-center-using-quot-flags/m-p/10811948#M42833</guid>
      <dc:creator>Aubrey_Campbell</dc:creator>
      <dc:date>2021-12-09T15:06:36Z</dc:date>
    </item>
  </channel>
</rss>

