<?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: Where is New Feature Face Name in Inventor 2019 API located in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8775878#M97219</link>
    <description>&lt;P&gt;Limin,&lt;BR /&gt;&amp;nbsp;Yes, you can access this and other iLogic API from VB.NET. Where is your code running?&lt;BR /&gt;1) add-in&lt;BR /&gt;2) external EXE&lt;BR /&gt;3) DLL loaded by iLogic&lt;BR /&gt;The best way to access it is different for each.&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2019 14:28:09 GMT</pubDate>
    <dc:creator>MjDeck</dc:creator>
    <dc:date>2019-05-07T14:28:09Z</dc:date>
    <item>
      <title>Where is New Feature Face Name in Inventor 2019 API located</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8379029#M90985</link>
      <description>&lt;P&gt;I could not find the new Feature Property Face Name in the API.&lt;/P&gt;
&lt;P&gt;Is anyone knowing where i could find it and how the property is named in the API?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FaceName.jpg" style="width: 627px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/565429i13F7F27D5BA2CBC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="FaceName.jpg" alt="FaceName.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Nov 2018 17:55:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8379029#M90985</guid>
      <dc:creator>martin_winkler</dc:creator>
      <dc:date>2018-11-04T17:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Where is New Feature Face Name in Inventor 2019 API located</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8379688#M90992</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2181124"&gt;@martin_winkler&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hoping that below suggestions in forum discussion may be helpful to read face name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/geometry-labels-inventor-2019/m-p/8350452#M90402" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/geometry-labels-inventor-2019/m-p/8350452#M90402&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 07:11:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8379688#M90992</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2018-11-05T07:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Where is New Feature Face Name in Inventor 2019 API located</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8380509#M91013</link>
      <description>&lt;P&gt;From what I can tell the feature property face name isn't new to the API it's the same stuff that's been there for years. The "new" part is simply that they added a user interface to make it easier to get to. The face names are stored using attributes and attributeSets.&lt;/P&gt;&lt;P&gt;Here's a rough idea how to get to them.&lt;/P&gt;&lt;PRE&gt;Dim part1Def As PartComponentDefinition = part1.Definition 'my part1 came from an assembly component occurrence
Dim oFaces As Faces = part1Def.SurfaceBodies(1).Faces
Dim tempFace As Face

For Each oFace In oFaces
	AttSets = oFace.AttributeSets
	If AttSets.NameIsUsed("iLogicEntityNameSet") Then
		AttSet = AttSets.Item("iLogicEntityNameSet")
		For Each Att In AttSet
			If Att.Value() = "yourNamedFeature" Then 'change name here
				tempFace = oFace
				Logger.Debug("tempFaceID Set" &amp;amp; tempFace.InternalName)
			End If
		Next
	End If
Next&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:13:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8380509#M91013</guid>
      <dc:creator>clutsa</dc:creator>
      <dc:date>2018-11-05T14:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where is New Feature Face Name in Inventor 2019 API located</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8380784#M91020</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5352440"&gt;@clutsa&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Thanks, that was the hint I needed.&lt;/SPAN&gt; I have written two examples in VBA how to get the names of all surfaces and how to get the names of selected surfaces. I need this in order to name a sketch according to the area from which it is originated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Get_AllNames_from_Faces()
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument

Dim oCompDef As ComponentDefinition
Set oCompDef = oDoc.ComponentDefinition
Dim oFaces As Faces
Set oFaces = oCompDef.SurfaceBodies(1).Faces
Dim AttSets As AttributeSets
Dim AttSet As AttributeSet

For Each oface In oFaces
 Set AttSets = oface.AttributeSets
 If AttSets.NameIsUsed("iLogicEntityNameSet") Then
  Set AttSet = AttSets.item("iLogicEntityNameSet")
  For Each Att In AttSet
    Debug.Print ("Face Value: " &amp;amp; Att.Value)
  Next
 End If
Next
End Sub

Sub Get_SelectedNames_from_Faces()
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument

Dim CompDef As ComponentDefinition
Set CompDef = oDoc.ComponentDefinition
Dim oSelect As SelectSet
Set oSelect = oDoc.SelectSet
Dim oFaces As Faces
Set oFaces = CompDef.SurfaceBodies(1).Faces
Dim AttSets As AttributeSets
Dim AttSet As AttributeSet

For Each item In oSelect
 Set AttSets = item.AttributeSets
 If AttSets.NameIsUsed("iLogicEntityNameSet") Then
  Set AttSet = AttSets.item("iLogicEntityNameSet")
  For Each Att In AttSet
   If Att.Name = "iLogicEntityName" Then
    'Get only the displayed Name of the Face
    Debug.Print ("Face Value: " &amp;amp; Att.Value)
   End If
  Next
 End If
Next
End Sub&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Best Regards Martin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:48:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8380784#M91020</guid>
      <dc:creator>martin_winkler</dc:creator>
      <dc:date>2018-11-05T15:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Where is New Feature Face Name in Inventor 2019 API located</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8658797#M95598</link>
      <description>&lt;P&gt;Hi All -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to change the appearance (color) of a "named face" using iLogic.&lt;/P&gt;
&lt;P&gt;For instance: "Face" = (Autodesk Appearance Library) Bamboo, "Back" = (Autodesk Appearance Library) Cardboard&lt;/P&gt;
&lt;P&gt;Is this possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, I'd like to be able to change the color of the "named face" by assigning a material to it....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 14:20:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8658797#M95598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-14T14:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Where is New Feature Face Name in Inventor 2019 API located</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8660619#M95626</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try below iLogic code to change appearance of named face (In this code, "Top" is considered as named face).&lt;/P&gt;
&lt;PRE&gt;Sub Main()
	Dim oDoc As PartDocument
	oDoc = ThisApplication.ActiveDocument
	
	Dim oAsset As Asset 
	oAsset = ThisApplication.AssetLibraries.Item(2).AppearanceAssets.Item("Cardboard")
	
	Dim oDocAsset As Asset 
	Try 
		oDocAsset = oDoc.AppearanceAssets.Item("Cardboard")
	Catch
		oAsset.CopyTo(oDoc)
		oDocAsset = oDoc.AppearanceAssets.Item("Cardboard")
	End Try

	Dim oCompDef As ComponentDefinition
	oCompDef = oDoc.ComponentDefinition

	Dim oFaces As Faces
	oFaces = oCompDef.SurfaceBodies(1).Faces

	Dim AttSets As AttributeSets
	Dim AttSet As AttributeSet
	
	Dim oFace As Face 

	For Each oface In oFaces
		 AttSets = oface.AttributeSets
		 If AttSets.NameIsUsed("iLogicEntityNameSet") Then
		  	AttSet = AttSets.Item("iLogicEntityNameSet")
			  For Each Att In AttSet
			    If Att.value = "Top" Then
					oFace.Appearance = oDocAsset
				End If 
			  Next
		 End If
	Next
End Sub
 &lt;/PRE&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 05:41:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8660619#M95626</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2019-03-15T05:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Where is New Feature Face Name in Inventor 2019 API located</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8661613#M95646</link>
      <description>&lt;P&gt;That's brilliant, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say that instead of "Cardboard", I need to reference the Appearance from a selected material?&lt;/P&gt;
&lt;P&gt;I have a multi-level parameter (Top_Material) which is linked to the (Autodesk Material Library), where the user can select a material/appearance for the "Top".&lt;/P&gt;
&lt;P&gt;So if the user selects Plaster, then the appearance for Plaster would be assigned.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 14:58:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8661613#M95646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-15T14:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Where is New Feature Face Name in Inventor 2019 API located</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8664810#M95681</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try below iLogic code to select the material from the list.&lt;/P&gt;
&lt;PRE&gt; Sub Main()
	Dim oDoc As PartDocument
	oDoc = ThisApplication.ActiveDocument
	
	Dim oList As ArrayList = New ArrayList()
	Dim oMaterial As Asset 
	For Each oMaterial In ThisApplication.AssetLibraries.Item(2).AppearanceAssets 
		 
		oList.Add(oMaterial.DisplayName)
	Next
	
	If oDoc.DocumentType = kPartDocumentObject Then

		Dim oPartCompDef As PartComponentDefinition
		oPartCompDef = oDoc.ComponentDefinition
			
		Dim oParams As Parameters
		oParams=oPartCompDef.Parameters
					
		Dim oUserParams As UserParameters
		oUserParams=oParams.UserParameters       
		
		Dim oAwesomeParameter As Parameter                     
				
		Try
			otester = oUserParams.Item("material")
		Catch
			oInsulationType=oUserParams.AddByValue("material", oList.Item(1), kTextUnits) 
		End Try
    End If

	Parameter.Param("material").ExposedAsProperty = False
	Parameter.Param("material").IsKey = True
	MultiValue.List("material") = oList 
	
	selected_mat = InputListBox("Choose Part material", MultiValue.List("material"),oList.Item(1), Title := "Part material", ListName := "Available Standard materials")
	
	Dim oAsset As Asset 
	oAsset = ThisApplication.AssetLibraries.Item(2).AppearanceAssets.Item(selected_mat)
	
	Dim oDocAsset As Asset 
	Try 
		oDocAsset = oDoc.AppearanceAssets.Item(selected_mat)
	Catch
		oAsset.CopyTo(oDoc)
		oDocAsset = oDoc.AppearanceAssets.Item(selected_mat)
	End Try

	Dim oCompDef As ComponentDefinition
	oCompDef = oDoc.ComponentDefinition

	Dim oFaces As Faces
	oFaces = oCompDef.SurfaceBodies(1).Faces

	Dim AttSets As AttributeSets
	Dim AttSet As AttributeSet
	
	Dim oFace As Face 

	For Each oface In oFaces
		 AttSets = oface.AttributeSets
		 If AttSets.NameIsUsed("iLogicEntityNameSet") Then
		  	AttSet = AttSets.Item("iLogicEntityNameSet")
			  For Each Att In AttSet
			    If Att.value = "Top" Then
					oFace.Appearance = oDocAsset
				End If 
			  Next
		 End If
	Next
End Sub
 &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 07:05:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8664810#M95681</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2019-03-18T07:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Where is New Feature Face Name in Inventor 2019 API located</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8771402#M97154</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2181124"&gt;@martin_winkler&lt;/a&gt;&amp;nbsp;,&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5352440"&gt;@clutsa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Instead of going to the AttributeSets, you can use the &lt;A href="http://help.autodesk.com/cloudhelp/2019/ENU/Inventor-iLogic/iLogic_API/html/6852069e-b8c4-e9d3-77e2-1e3d84cbbdde.htm" target="_blank" rel="noopener"&gt;NamedEntities&lt;/A&gt; iLogic API.&lt;/P&gt;
&lt;PRE&gt;Dim namedEntities = iLogicVb.Automation.GetNamedEntities(ThisDoc.Document)&lt;/PRE&gt;</description>
      <pubDate>Sun, 05 May 2019 01:37:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8771402#M97154</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-05-05T01:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Where is New Feature Face Name in Inventor 2019 API located</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8775497#M97206</link>
      <description>&lt;P&gt;Hi, Mike,&lt;/P&gt;
&lt;P&gt;Can I use this iLogic API in VB.NET in any way?&lt;/P&gt;
&lt;PRE&gt;Dim namedEntities = iLogicVb.Automation.GetNamedEntities(ThisDoc.Document)&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 12:38:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8775497#M97206</guid>
      <dc:creator>liminma8458</dc:creator>
      <dc:date>2019-05-07T12:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Where is New Feature Face Name in Inventor 2019 API located</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8775878#M97219</link>
      <description>&lt;P&gt;Limin,&lt;BR /&gt;&amp;nbsp;Yes, you can access this and other iLogic API from VB.NET. Where is your code running?&lt;BR /&gt;1) add-in&lt;BR /&gt;2) external EXE&lt;BR /&gt;3) DLL loaded by iLogic&lt;BR /&gt;The best way to access it is different for each.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 14:28:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8775878#M97219</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-05-07T14:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Where is New Feature Face Name in Inventor 2019 API located</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8777035#M97239</link>
      <description>&lt;P&gt;Mike,&lt;/P&gt;
&lt;P&gt;I want to use this iLogic API function directly from an Add-in of VB.NET (of course, I need to put the API as a reference somewhere in the add-in). So I don't need to put this function in an iLogic rule then call the rule first.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 00:06:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8777035#M97239</guid>
      <dc:creator>liminma8458</dc:creator>
      <dc:date>2019-05-08T00:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Where is New Feature Face Name in Inventor 2019 API located</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8777068#M97240</link>
      <description>&lt;P&gt;Add references to these DLLs (in %ProgramFiles\Autodesk\Inventor 2019\Bin)&lt;BR /&gt;Autodesk.iLogic.Core.dll&lt;BR /&gt;Autodesk.iLogic.References.dll&lt;BR /&gt;Set the reference properties:&lt;BR /&gt;Copy Local : False&lt;BR /&gt;Specific Version : False&lt;BR /&gt;Then in your code:&lt;/P&gt;
&lt;PRE&gt;Imports Autodesk.iLogic.Core
Imports Autodesk.iLogic.Interfaces
' ...
If (iLogicCentral.Instance IsNot Nothing) Then
	Dim iLogicAuto As IiLogicAutomation = iLogicCentral.Instance.ExternalApi
	'use iLogicAuto ...
End If&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;If the iLogic add-in is loaded, then iLogicCentral.Instance shoudl be available.&lt;BR /&gt;Here's the documentation for&amp;nbsp;&lt;A href="http://help.autodesk.com/cloudhelp/2019/ENU/Inventor-iLogic/iLogic_API/html/35742073-84a9-0e79-3e83-bfb79447da7b.htm" target="_blank" rel="noopener"&gt;IiLogicAutomation&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 00:44:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/where-is-new-feature-face-name-in-inventor-2019-api-located/m-p/8777068#M97240</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-05-08T00:44:13Z</dc:date>
    </item>
  </channel>
</rss>

