<?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: Access View Label Defaults via Inventor API in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/access-view-label-defaults-via-inventor-api/m-p/5323877#M122252</link>
    <description>&lt;P&gt;Only the first argument is input argument which you need to specify which kind of drawing view to get its view label defaults, and the others are output arguments and you need to define proper variables to receive them and then you can query their values after calling this method. Below is VBA&amp;nbsp;sample:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub GetViewLabelDefaultsSample()
    Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim oStylesManager As DrawingStylesManager
    Set oStylesManager = oDoc.StylesManager
    
    Dim oStandard As DrawingStandardStyle
    Set oStandard = oStylesManager.ActiveStandardStyle
    
    ' Get the view label defaults for draft view
    Dim sPrefix As String, bVisible As Boolean, sFormattedText As String, bConstrainToBorder As Boolean, bPlaceBelowView As Boolean
    Call oStandard.GetViewLabelDefaults(kDraftDrawingViewType, sPrefix, bVisible, sFormattedText, bConstrainToBorder, bPlaceBelowView)
    
    Debug.Print "The prefix is: " &amp;amp; sPrefix
    Debug.Print "The formatted text is: " &amp;amp; sFormattedText
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Oct 2014 07:24:20 GMT</pubDate>
    <dc:creator>YuhanZhang</dc:creator>
    <dc:date>2014-10-08T07:24:20Z</dc:date>
    <item>
      <title>Access View Label Defaults via Inventor API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/access-view-label-defaults-via-inventor-api/m-p/5322803#M122251</link>
      <description>&lt;P&gt;I am trying to access the View Label Defaults that are set in the Styles Manager using the API. &amp;nbsp;I have looked through the Programming help and I found the following method that I believe is what I am looking for. &amp;nbsp;The problem is, I dont understand how to use it. &amp;nbsp;It wants me to pass it arguments which would make sense if I was trying to set the Defaults, but I am just trying to get the default FormattedText of the Labels.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DrawingStandardStyle.GetViewLabelDefaults Method DrawingStandardStyle.&lt;/SPAN&gt;&lt;STRONG&gt;GetViewLabelDefaults&lt;/STRONG&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;ViewType&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt; As &lt;/SPAN&gt;&lt;A target="_blank" href="https://forums.autodesk.com/HTML/DrawingViewTypeEnum.htm"&gt;DrawingViewTypeEnum&lt;/A&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Prefix&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt; As String, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Visible&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt; As Boolean, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;FormattedText&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt; As String,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;ConstrainToBorder&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt; As Boolean, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;PlaceBelowView&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt; As Boolean )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2014 18:48:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/access-view-label-defaults-via-inventor-api/m-p/5322803#M122251</guid>
      <dc:creator>bretrick30</dc:creator>
      <dc:date>2014-10-07T18:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Access View Label Defaults via Inventor API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/access-view-label-defaults-via-inventor-api/m-p/5323877#M122252</link>
      <description>&lt;P&gt;Only the first argument is input argument which you need to specify which kind of drawing view to get its view label defaults, and the others are output arguments and you need to define proper variables to receive them and then you can query their values after calling this method. Below is VBA&amp;nbsp;sample:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub GetViewLabelDefaultsSample()
    Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim oStylesManager As DrawingStylesManager
    Set oStylesManager = oDoc.StylesManager
    
    Dim oStandard As DrawingStandardStyle
    Set oStandard = oStylesManager.ActiveStandardStyle
    
    ' Get the view label defaults for draft view
    Dim sPrefix As String, bVisible As Boolean, sFormattedText As String, bConstrainToBorder As Boolean, bPlaceBelowView As Boolean
    Call oStandard.GetViewLabelDefaults(kDraftDrawingViewType, sPrefix, bVisible, sFormattedText, bConstrainToBorder, bPlaceBelowView)
    
    Debug.Print "The prefix is: " &amp;amp; sPrefix
    Debug.Print "The formatted text is: " &amp;amp; sFormattedText
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2014 07:24:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/access-view-label-defaults-via-inventor-api/m-p/5323877#M122252</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2014-10-08T07:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Access View Label Defaults via Inventor API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/access-view-label-defaults-via-inventor-api/m-p/5324743#M122253</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2014 13:49:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/access-view-label-defaults-via-inventor-api/m-p/5324743#M122253</guid>
      <dc:creator>bretrick30</dc:creator>
      <dc:date>2014-10-08T13:49:04Z</dc:date>
    </item>
  </channel>
</rss>

