<?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 Ilogic Script for Highlight Defind A-Side  and set the appearance ? in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-script-for-highlight-defind-a-side-and-set-the-appearance/m-p/8579326#M195806</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HLASIDE.png" style="width: 373px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/600299iA4CA629B8F4CD767/image-dimensions/373x211?v=v2" width="373" height="211" role="button" title="HLASIDE.png" alt="HLASIDE.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hello, I need some help using Ilogic the select&amp;nbsp;Defind A-Side and the set a&amp;nbsp;appearance&amp;nbsp; to it&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to use this for setting up Diamant/tear Plate type of materiaals&amp;nbsp; and have the other sides blank&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any one any ideas how to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Feb 2019 10:28:20 GMT</pubDate>
    <dc:creator>willemTHLQC</dc:creator>
    <dc:date>2019-02-07T10:28:20Z</dc:date>
    <item>
      <title>Ilogic Script for Highlight Defind A-Side  and set the appearance ?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-script-for-highlight-defind-a-side-and-set-the-appearance/m-p/8579326#M195806</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HLASIDE.png" style="width: 373px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/600299iA4CA629B8F4CD767/image-dimensions/373x211?v=v2" width="373" height="211" role="button" title="HLASIDE.png" alt="HLASIDE.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hello, I need some help using Ilogic the select&amp;nbsp;Defind A-Side and the set a&amp;nbsp;appearance&amp;nbsp; to it&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to use this for setting up Diamant/tear Plate type of materiaals&amp;nbsp; and have the other sides blank&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any one any ideas how to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 10:28:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-script-for-highlight-defind-a-side-and-set-the-appearance/m-p/8579326#M195806</guid>
      <dc:creator>willemTHLQC</dc:creator>
      <dc:date>2019-02-07T10:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic Script for Highlight Defind A-Side  and set the appearance ?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-script-for-highlight-defind-a-side-and-set-the-appearance/m-p/8581800#M195807</link>
      <description>&lt;P&gt;Here's a sample:&lt;/P&gt;
&lt;PRE&gt;Sub Main
	Dim partDoc As PartDocument = ThisDoc.Document
	Dim compDef As SheetMetalComponentDefinition = partDoc.ComponentDefinition

	If (compDef.HasFlatPattern) Then
		Dim flat = compDef.FlatPattern
		Dim foldedFace = flat.ASideFace.ASideFace
		If (foldedFace IsNot Nothing) Then
			For Each faceX As Face In flat.ASideFace.Faces
				'partDoc.SelectSet.Select(foldedFace)
				SetFaceColor(faceX, "Orange", partDoc)
			Next
		End If
	End If
End Sub

Sub SetFaceColor(face As Face, appearanceName As String, partDoc As PartDocument)
	Dim asset As Asset = Nothing
	Try
		asset = partDoc.Assets.Item(appearanceName)
	Catch
		Dim assetLib = ThisApplication.AssetLibraries.Item("314DE259-5443-4621-BFBD-1730C6CC9AE9")  '("Autodesk Appearance Library")
		asset = assetLib.AppearanceAssets.Item(appearanceName)
		asset = asset.CopyTo(partDoc)
	End Try
	'Logger.Info("Asset name = {0}", asset.DisplayName)
	face.Appearance = asset
End Sub&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Feb 2019 04:00:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-script-for-highlight-defind-a-side-and-set-the-appearance/m-p/8581800#M195807</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-02-08T04:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic Script for Highlight Defind A-Side  and set the appearance ?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/ilogic-script-for-highlight-defind-a-side-and-set-the-appearance/m-p/8582012#M195808</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534" target="_blank"&gt;MjDeck&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;this works great for me&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 07:28:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/ilogic-script-for-highlight-defind-a-side-and-set-the-appearance/m-p/8582012#M195808</guid>
      <dc:creator>willemTHLQC</dc:creator>
      <dc:date>2019-02-08T07:28:41Z</dc:date>
    </item>
  </channel>
</rss>

