<?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: Creating a Ilogic Rule to export custom property from BOM into part Property in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-ilogic-rule-to-export-custom-property-from-bom-into/m-p/9106931#M109765</link>
    <description>&lt;P&gt;Here is a quick example, (welcome to the forum, btw)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Try
	oFinish = iProperties.Value("Custom", "Finish")
Catch
	'property not found
	Return' exit rule
End Try

Dim oAssyDoc As AssemblyDocument
oAssyDoc = ThisApplication.ActiveDocument
Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = oAssyDoc.ComponentDefinition

If oAsmCompDef.Type = ObjectTypeEnum.kWeldmentComponentDefinitionObject Then
	Return 'exit rule
End If

Dim oOcc As ComponentOccurrence
Dim oDoc As Document
For Each oOcc In oAsmCompDef.Occurrences.AllLeafOccurrences
    oDoc = oOcc.Definition.Document
	oPropSet = oDoc.PropertySets.Item("User Defined Properties")
    Try
		oProp = oPropSet.Add("", "Finish")
	Catch
		oProp = oPropSet.Item("Finish")
	End Try
	
	oProp.value = oFinish	
Next&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Oct 2019 18:22:36 GMT</pubDate>
    <dc:creator>Curtis_Waguespack</dc:creator>
    <dc:date>2019-10-24T18:22:36Z</dc:date>
    <item>
      <title>Creating a Ilogic Rule to export custom property from BOM into part Property</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-ilogic-rule-to-export-custom-property-from-bom-into/m-p/9106899#M109763</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am fairly new to I Logic and am looking to export a custom I Property column from the BOM menu in an assembly (labeled Finish) into each part, and create a custom property there Labeled finish. I have found one similar that does quantity so i was wondering of i can do that with finishes this way i can update any finish in the BOM instead of opening each part individually.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 18:04:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-ilogic-rule-to-export-custom-property-from-bom-into/m-p/9106899#M109763</guid>
      <dc:creator>kristianhric</dc:creator>
      <dc:date>2019-10-24T18:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Ilogic Rule to export custom property from BOM into part Property</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-ilogic-rule-to-export-custom-property-from-bom-into/m-p/9106906#M109764</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3963849"&gt;@kristianhric&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this can be done with an iLogic rule, but did you know that you can do this from the BOM editor?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you add the custom iproperty to the BOM you can then "fill" the value or copy/paste the value into each cell in the column, and the custom iproperty will be automatically created in the component files, and set the cell value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll post an ilogic example in a bit to do this too, but sometimes using the built in abilities is the better approach.... and of course it's just nice to know its there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 18:08:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-ilogic-rule-to-export-custom-property-from-bom-into/m-p/9106906#M109764</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2019-10-24T18:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Ilogic Rule to export custom property from BOM into part Property</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-ilogic-rule-to-export-custom-property-from-bom-into/m-p/9106931#M109765</link>
      <description>&lt;P&gt;Here is a quick example, (welcome to the forum, btw)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Try
	oFinish = iProperties.Value("Custom", "Finish")
Catch
	'property not found
	Return' exit rule
End Try

Dim oAssyDoc As AssemblyDocument
oAssyDoc = ThisApplication.ActiveDocument
Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = oAssyDoc.ComponentDefinition

If oAsmCompDef.Type = ObjectTypeEnum.kWeldmentComponentDefinitionObject Then
	Return 'exit rule
End If

Dim oOcc As ComponentOccurrence
Dim oDoc As Document
For Each oOcc In oAsmCompDef.Occurrences.AllLeafOccurrences
    oDoc = oOcc.Definition.Document
	oPropSet = oDoc.PropertySets.Item("User Defined Properties")
    Try
		oProp = oPropSet.Add("", "Finish")
	Catch
		oProp = oPropSet.Item("Finish")
	End Try
	
	oProp.value = oFinish	
Next&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Oct 2019 18:22:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-ilogic-rule-to-export-custom-property-from-bom-into/m-p/9106931#M109765</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2019-10-24T18:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Ilogic Rule to export custom property from BOM into part Property</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-ilogic-rule-to-export-custom-property-from-bom-into/m-p/9106947#M109766</link>
      <description>&lt;P&gt;oh wow i cant believe i missed that. thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 18:25:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-ilogic-rule-to-export-custom-property-from-bom-into/m-p/9106947#M109766</guid>
      <dc:creator>kristianhric</dc:creator>
      <dc:date>2019-10-24T18:25:44Z</dc:date>
    </item>
  </channel>
</rss>

