<?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 Named Geometry Appearance in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9759259#M116160</link>
    <description>&lt;P&gt;I am trying to follow the steps from&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-80AD0392-0B8C-4A27-A9B3-7466D53999BF" target="_blank"&gt;https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-80AD0392-0B8C-4A27-A9B3-7466D53999BF&lt;/A&gt;&amp;nbsp;in the section "Use Assign Name to Identify Geometry for Constraints" to assign names to faces and then change the appearance of those faces with iLogic. I am able to create the named geometry and have set the option "Labels Visibility" to checked but I am unable to find a list of my named geometry in iLogic to interact with these faces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached screenshot is from the help page but I am not able to see the lightbulbs or "show/hide labels" and i am also not able to see the named geometry in the models tab of the rule editor.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Sep 2020 15:33:25 GMT</pubDate>
    <dc:creator>btomosonEYBLL</dc:creator>
    <dc:date>2020-09-21T15:33:25Z</dc:date>
    <item>
      <title>iLogic Named Geometry Appearance</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9759259#M116160</link>
      <description>&lt;P&gt;I am trying to follow the steps from&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-80AD0392-0B8C-4A27-A9B3-7466D53999BF" target="_blank"&gt;https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-80AD0392-0B8C-4A27-A9B3-7466D53999BF&lt;/A&gt;&amp;nbsp;in the section "Use Assign Name to Identify Geometry for Constraints" to assign names to faces and then change the appearance of those faces with iLogic. I am able to create the named geometry and have set the option "Labels Visibility" to checked but I am unable to find a list of my named geometry in iLogic to interact with these faces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached screenshot is from the help page but I am not able to see the lightbulbs or "show/hide labels" and i am also not able to see the named geometry in the models tab of the rule editor.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 15:33:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9759259#M116160</guid>
      <dc:creator>btomosonEYBLL</dc:creator>
      <dc:date>2020-09-21T15:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Named Geometry Appearance</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9759592#M116166</link>
      <description>&lt;P&gt;Which version &amp;amp; release year of Inventor are you using?&lt;/P&gt;&lt;P&gt;Can you see your iLogic browser?&lt;/P&gt;&lt;P&gt;If it is not showing up next to your Model Browser, you may need to either:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;go to your Manage tab &amp;gt; iLogic panel &amp;gt; and click on "iLogic Browser".&lt;/LI&gt;&lt;LI&gt;or click the little plus sign (+) next to the Model tab and choose "iLogic".&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Are you expanding the iLogic Tab (Dockable Window)?&lt;/P&gt;&lt;P&gt;Named Entities became available in Inventor 2019, I believe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 18:35:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9759592#M116166</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-09-21T18:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Named Geometry Appearance</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9759634#M116169</link>
      <description>&lt;P&gt;Which version &amp;amp; release year of Inventor are you using?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;Inventor 2021.1.1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you see your iLogic browser?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;Yes&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is not showing up next to your Model Browser, you may need to either:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;go to your Manage tab &amp;gt; iLogic panel &amp;gt; and click on "iLogic Browser".&lt;/LI&gt;&lt;LI&gt;or click the little plus sign (+) next to the Model tab and choose "iLogic".&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;It is showing&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you expanding the iLogic Tab (Dockable Window)?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;Attached is my iLogic dock showing what I can see for named geometry. It gives a "label visibility" option&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Named Entities became available in Inventor 2019, I believe.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;I can name entities, my problem is that I can not see these entities in the iLogic rule screen to be able to interact with them.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;Attached is a picture from the tutorial showing the named items in the model browser on the rule screen.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993366"&gt;Also attached is what I can see on my rule screen.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 18:57:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9759634#M116169</guid>
      <dc:creator>btomosonEYBLL</dc:creator>
      <dc:date>2020-09-21T18:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Named Geometry Appearance</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9759646#M116171</link>
      <description>&lt;P&gt;I don't think they have incorporated that into the iLogic rule editor dialog yet.&lt;/P&gt;&lt;P&gt;You can get the named entities by&lt;/P&gt;&lt;P&gt;iLogicVb.Automation.GetNamedEntities&lt;/P&gt;&lt;P&gt;or similar (I'm about to leave my office for the day.)&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 19:06:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9759646#M116171</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-09-21T19:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Named Geometry Appearance</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9759891#M116175</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8382810"&gt;@btomosonEYBLL&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how you could access a list of the named geometry for API use:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;'Access named entities
Dim myNamedEntities As NameValueMap = iLogicVb.Automation.GetNamedEntities(ThisDoc.Document).Entities
'Loop through each entity:
For i = 1 To myNamedEntities.Count
	MessageBox.Show(myNamedEntities.Name(i) &amp;amp; vbCrLf &amp;amp; CType(myNamedEntities.Value(myNamedEntities.Name(i)).Type, ObjectTypeEnum).ToString, "Test")
Next&lt;/LI-CODE&gt;&lt;P&gt;As &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp; mentioned, you won't see this list in the iLogic browser when you are actively editing a rule, but they should be usable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you know the name of the object you want you can pull it without getting other entities:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim entityToGrab As Object = iLogicVb.Automation.GetNamedEntities(ThisDoc.Document).FindEntity("Entity Name")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 21:33:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9759891#M116175</guid>
      <dc:creator>J-Camper</dc:creator>
      <dc:date>2020-09-21T21:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Named Geometry Appearance</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9760824#M116189</link>
      <description>&lt;P&gt;Now that I'm back in my office, I see someone has already expanded on my suggestion of using the:&lt;/P&gt;&lt;P&gt;iLogicVb.Automation.GetNamedEntities&lt;/P&gt;&lt;P&gt;route to get the named entities you were after.&lt;/P&gt;&lt;P&gt;However, I would suggest a slightly different line to get a single item from the collection.&lt;/P&gt;&lt;P&gt;When you use the "FindEntity() function, it may cause an Exception (error), if it doesn't find what you're looking for, so therefore it usually would need to be enclosed within a Try...Catch...End Try statement, in order to avoid the possible Exception from abruptly stopping your rule somewhere in the middle.&lt;/P&gt;&lt;P&gt;Instead, I would suggest you use the "&lt;STRONG&gt;TryGetEntity()&lt;/STRONG&gt;" function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oNE As Object = iLogicVb.Automation.GetNamedEntities(ThisDoc.Document).TryGetEntity("Entity's Name")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will eliminate the need for the Try...Catch...End Try statement, because if it doesn't find the entity, it will simply return 'Nothing'.&amp;nbsp; Then all you need to do is check if the variable (the one who's value was to be the named entity) "IsNot Nothing".&amp;nbsp; If it passes this test you can use it as planned.&amp;nbsp; If it fails this test, you can use a MsgBox() or MessageBox.Show() to inform the user if you want and/or something like 'Return', or 'End Sub' to end the rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN style="background-color: green; color: white;"&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click 'LIKE" &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@7401B55A0A518861312A0F851CD29320/emoticons/1f44d.png" alt=":thumbs_up:" title=":thumbs_up:" /&gt;.&lt;/P&gt;&lt;P&gt;Also, when you have time, please review &amp;amp; vote for these 'Ideas' I'd like to get implemented.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add more capabilities to the 'Customize' dialog box (exe. Add Tab &amp;amp; Add Panel) &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/add-more-capabilities-to-the-customize-dialog-box-exe-add-tab/idi-p/9371747/" target="_blank" rel="noopener"&gt;Click Here &lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Constrain &amp;amp; Dimension Images In Assembly Sketches &amp;amp; Drawing Sketches (TitleBlocks &amp;amp; SketchedSymbols) &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/we-need-the-ability-to-fully-constrain-amp-dimension-images/idi-p/9299088/" target=" Blank"&gt;Click Here &lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Save Section View Status In DesignViewRepresentation (So It Can Be Used In The Drawing) &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/save-section-view-status-in-designviewrepresentation-so-is/idi-p/9270962/" target=" Blank"&gt;Click Here &lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Add SolidBodies Folder In iLogic Rule Editor Model Tab &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/ilogic-rule-editor-gt-model-tab-add-a-solid-bodies-folder-for/idi-p/9270898/" target=" Blank"&gt;Click Here &lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Convert All Views To Raster Before Autosave Stores To 'OldVersions' Folder &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/drawings-in-oldversions-set-all-views-to-raster-before-autosave/idi-p/9185521/" target=" Blank"&gt;Click Here &lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;SetDesignViewRepresentation - Fix limitations for DrawingView of a Part &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/setdesignviewrepresentation-fix-limitations-for-drawingview-of-a/idi-p/9369920/" target=" Blank"&gt;Click Here &lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Create DocumentSubTypeEnum &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/create-enum-for-documentsubtype-amp-or-document-subtype/idi-p/9402300/" target=" Blank"&gt;Click Here &lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Add kRevisionTag or kDrawingRevisionTag to ObjectTypeEnum &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/add-krevisiontag-or-kdrawingrevisiontag-to-objecttypeenum-ilogic/idi-p/9507606/" target=" Blank"&gt;Click Here &lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="http://help.autodesk.com/view/INVNTOR/2020/ENU/" target="_blank"&gt;Inventor 2020 Help &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-forum/bd-p/78/" target="_blank"&gt;Inventor Forum &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-customization/bd-p/120/" target="_blank"&gt;Inventor Customization Forum &lt;/A&gt;| &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232/" target="_blank"&gt;Inventor Ideas Forum &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 11:02:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9760824#M116189</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-09-22T11:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Named Geometry Appearance</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9761334#M116212</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp; After I get the face as an object, how do I set the appearance of it?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 14:12:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9761334#M116212</guid>
      <dc:creator>btomosonEYBLL</dc:creator>
      <dc:date>2020-09-22T14:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Named Geometry Appearance</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9761604#M116217</link>
      <description>&lt;P&gt;There is actually an older forum post, from 2019, for this exact question: &lt;A href="https://forums.autodesk.com/t5/inventor-forum/assigned-names-for-faces-change-color-using-ilogic-or-api/td-p/8748476" target="_blank" rel="noopener"&gt;Forum Post&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 16:13:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9761604#M116217</guid>
      <dc:creator>J-Camper</dc:creator>
      <dc:date>2020-09-22T16:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Named Geometry Appearance</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9761701#M116222</link>
      <description>&lt;P&gt;First of all, if you know what Type of object it is going to be you can create your variable as that type of object, instead of just Object.&amp;nbsp; That will make things easier.&amp;nbsp; If you are not sure which type of object you might be retrieving, you can check the .Type of the Object against some expected ObjectTypeEnum variances, after you've retrieved it.&amp;nbsp; You can retrieve the 'readable' name of the objects Type using this line:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oObj As Object = iLogicVb.Automation.GetNamedEntities(ThisDoc.Document).TryGetEntity("Entity's Name")
If oObj IsNot Nothing Then
	oTypeName = [Enum].GetName(GetType(ObjectTypeEnum), oObj.Type)
End If&lt;/LI-CODE&gt;&lt;P&gt;or you can use something like this to check if is one a few Types you're possibly expecting:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oObj As Object = iLogicVb.Automation.GetNamedEntities(ThisDoc.Document).TryGetEntity("Entity's Name")
Dim oType As String
If oObj IsNot Nothing Then
	Select Case oObj.Type
		Case ObjectTypeEnum.kFaceObject
			oType = "Face"
		Case ObjectTypeEnum.kEdgeObject
			oType = "Edge"
		Case ObjectTypeEnum.kVertexObject
			oType = "Vertex"
	End Select
End If
If oType = "Face" Then
'so on and so forth&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If it's a face object, you can do something similar to what that other post has done.&lt;/P&gt;&lt;P&gt;Or you can access the documents StylesManager, then its available styles to choose one to apply.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 17:01:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-named-geometry-appearance/m-p/9761701#M116222</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-09-22T17:01:13Z</dc:date>
    </item>
  </channel>
</rss>

