<?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: VBA Display part appearance color in MsgBox in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195392#M36583</link>
    <description>&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Can You answer how You find needed method or property -needed code? Is there vba book or something or secret here?&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2022 16:47:08 GMT</pubDate>
    <dc:creator>bionorica2015</dc:creator>
    <dc:date>2022-05-26T16:47:08Z</dc:date>
    <item>
      <title>VBA Display part appearance color in MsgBox</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195227#M36580</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;How can I get in vba name of current Appearance (library) and display in MsgBox?&lt;/P&gt;&lt;P&gt;An example color is Copper.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 15:47:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195227#M36580</guid>
      <dc:creator>bionorica2015</dc:creator>
      <dc:date>2022-05-26T15:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Display part appearance color in MsgBox</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195302#M36581</link>
      <description>&lt;P&gt;If you are in the part workspace you can access it like this. If you are in the assembly workspace you will have to specify a component occurrence first.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim oDoc = ActiveDocument&lt;BR /&gt;MsgBox(oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveAppearance&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Make sure you use&amp;nbsp; Active&lt;SPAN&gt;Appearance&lt;/SPAN&gt;.DisplayName and not Active&lt;SPAN&gt;Appearance&lt;/SPAN&gt;.Name because Name spits out its asset ID not its user readable name.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 16:16:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195302#M36581</guid>
      <dc:creator>MTheDesigner</dc:creator>
      <dc:date>2022-05-26T16:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Display part appearance color in MsgBox</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195357#M36582</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8020986"&gt;@bionorica2015&lt;/a&gt;.&amp;nbsp; &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11920109"&gt;@MTheDesigner&lt;/a&gt; 's response will likely work in iLogic, but since you've got VBA right in your topic name, here is a VBA macro code for doing that same thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub DisplayAppearanceInMsg()
    If ThisApplication.ActiveDocumentType &amp;lt;&amp;gt; kPartDocumentObject Then
        Call MsgBox("This VBA macro only works if a Part document is active.", vbCritical, "")
        Exit Sub
    End If
    Dim oPDoc As PartDocument
    Set oPDoc = ThisApplication.ActiveDocument
    Call MsgBox(oPDoc.ActiveAppearance.DisplayName, vbInformation, "Active Appearance DisplayName")
    Call MsgBox(ThisApplication.ActiveAppearanceLibrary.DisplayName, vbInformation, "Active Appearance Library DisplayName")
End Sub
&lt;/LI-CODE&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&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;.&lt;/P&gt;
&lt;P&gt;If you want and have time, I would appreciate your Vote(s) for &lt;A href="https://forums.autodesk.com/t5/forums/recentpostspage/post-type/message/interaction-style/idea/user-id/7812054/" target="_blank" rel="noopener"&gt;My IDEAS &lt;/A&gt; :bulb: or you can Explore &lt;A href="https://knowledge.autodesk.com/profile/LTSUSR7HXMSAE/articles" target="_blank" rel="noopener"&gt;My CONTRIBUTIONS &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 16:34:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195357#M36582</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-05-26T16:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Display part appearance color in MsgBox</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195392#M36583</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Can You answer how You find needed method or property -needed code? Is there vba book or something or secret here?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 16:47:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195392#M36583</guid>
      <dc:creator>bionorica2015</dc:creator>
      <dc:date>2022-05-26T16:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Display part appearance color in MsgBox</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195394#M36584</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Can You answer how You find needed method or property -needed code? Is there vba book or something or secret there?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 16:48:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195394#M36584</guid>
      <dc:creator>bionorica2015</dc:creator>
      <dc:date>2022-05-26T16:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Display part appearance color in MsgBox</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195409#M36585</link>
      <description>I find this really helpful. &lt;A href="https://help.autodesk.com/view/INVNTOR/2019/ENU/" target="_blank"&gt;https://help.autodesk.com/view/INVNTOR/2019/ENU/&lt;/A&gt;&lt;BR /&gt;This is for inventor 2019 which is what I am using but generally I just look through object trees one here or in the editor until I find what I need. Don't be afraid to make a test assembly or part and just mess around. It help a lot.</description>
      <pubDate>Thu, 26 May 2022 16:56:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195409#M36585</guid>
      <dc:creator>MTheDesigner</dc:creator>
      <dc:date>2022-05-26T16:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: VBA Display part appearance color in MsgBox</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195436#M36586</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8020986"&gt;@bionorica2015&lt;/a&gt;.&amp;nbsp; I don't think there is a one stop place to learn all you would need to know super easy or fast.&amp;nbsp; Since Microsoft developed that programming language for their Microsoft Office products, they are probably the best source (&lt;A href="https://docs.microsoft.com/en-us/office/vba/api/overview/" target="_blank" rel="noopener"&gt;Link1&lt;/A&gt;, &lt;A href="https://docs.microsoft.com/en-us/office/vba/library-reference/concepts/getting-started-with-vba-in-office" target="_blank" rel="noopener"&gt;Link2&lt;/A&gt;, &lt;A href="https://docs.microsoft.com/en-us/office/vba/language/concepts/getting-started/64-bit-visual-basic-for-applications-overview" target="_blank" rel="noopener"&gt;Link3&lt;/A&gt;) for learning the core functionality, but they are often super technical in their language explaining stuff, so it can be hard to follow at first.&amp;nbsp; But down within Inventor's online help page (like the link provided by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11920109"&gt;@MTheDesigner&lt;/a&gt;), there is a folder full of 'sample programs' (&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-DE98632B-3DC0-422B-A1C6-8A5A15C99E11" target="_blank" rel="noopener"&gt;Link4&lt;/A&gt;), and most of those examples are in VBA, so that is a fairly good place to peruse through.&amp;nbsp; I just picked up most of this type of stuff over time by looking at working examples, and doing my own trial and error testing while trying to customize existing stuff or create my own stuff.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 17:09:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/vba-display-part-appearance-color-in-msgbox/m-p/11195436#M36586</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-05-26T17:09:13Z</dc:date>
    </item>
  </channel>
</rss>

