<?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 [IV 2014] - First view Scale got by VBA different from export to DWG in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/iv-2014-first-view-scale-got-by-vba-different-from-export-to-dwg/m-p/8515333#M93100</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I have a strange behavior&lt;/P&gt;
&lt;P&gt;As many users we have vba macro (a basic for each on the DrawingViews taking into consideration the first one) that get the first view scale to populate the titleblocks of drawings.&lt;/P&gt;
&lt;P&gt;But I have an issue&lt;/P&gt;
&lt;P&gt;On few sheets of a drawing the scale got from the macro is not the first one, but another one. Strangely when I export to DWG with "scale of the first view" for the object space, that is the good one.&lt;/P&gt;
&lt;P&gt;Strangely, the scale of the view got by the macro is from a section view, wich cannot be the first one of a page as it depends on another view that has to be inserted before...&lt;/P&gt;
&lt;P&gt;So question is : what could be the issue there ?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jan 2019 07:31:29 GMT</pubDate>
    <dc:creator>gmassart</dc:creator>
    <dc:date>2019-01-11T07:31:29Z</dc:date>
    <item>
      <title>[IV 2014] - First view Scale got by VBA different from export to DWG</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/iv-2014-first-view-scale-got-by-vba-different-from-export-to-dwg/m-p/8515333#M93100</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I have a strange behavior&lt;/P&gt;
&lt;P&gt;As many users we have vba macro (a basic for each on the DrawingViews taking into consideration the first one) that get the first view scale to populate the titleblocks of drawings.&lt;/P&gt;
&lt;P&gt;But I have an issue&lt;/P&gt;
&lt;P&gt;On few sheets of a drawing the scale got from the macro is not the first one, but another one. Strangely when I export to DWG with "scale of the first view" for the object space, that is the good one.&lt;/P&gt;
&lt;P&gt;Strangely, the scale of the view got by the macro is from a section view, wich cannot be the first one of a page as it depends on another view that has to be inserted before...&lt;/P&gt;
&lt;P&gt;So question is : what could be the issue there ?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 07:31:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/iv-2014-first-view-scale-got-by-vba-different-from-export-to-dwg/m-p/8515333#M93100</guid>
      <dc:creator>gmassart</dc:creator>
      <dc:date>2019-01-11T07:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: [IV 2014] - First view Scale got by VBA different from export to DWG</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/iv-2014-first-view-scale-got-by-vba-different-from-export-to-dwg/m-p/8515723#M93104</link>
      <description>I would suggest you share the code you have (if you can) it'll make it easier to help you rather than clutching at straws.</description>
      <pubDate>Fri, 11 Jan 2019 11:04:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/iv-2014-first-view-scale-got-by-vba-different-from-export-to-dwg/m-p/8515723#M93104</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2019-01-11T11:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: [IV 2014] - First view Scale got by VBA different from export to DWG</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/iv-2014-first-view-scale-got-by-vba-different-from-export-to-dwg/m-p/8515758#M93106</link>
      <description>&lt;P&gt;Here is it :&lt;/P&gt;
&lt;PRE&gt;Public Sub Title_block_scale_insertion(sProperty As String, oSheet As Sheet)
    'insert the scale of the first view of a sheet
    Dim oTextBox As Inventor.TextBox
    If oSheet.DrawingViews.Count &amp;gt; 0 Then
        For Each oTextBox In oSheet.TitleBlock.Definition.Sketch.TextBoxes
            If oTextBox.FormattedText = sProperty Then
                Call oSheet.TitleBlock.SetPromptResultText(oTextBox, Replace(Replace(oSheet.DrawingViews(1).ScaleString, ":", "/"), " ", ""))
            End If
        Next oTextBox
    End If
End Sub&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jan 2019 11:23:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/iv-2014-first-view-scale-got-by-vba-different-from-export-to-dwg/m-p/8515758#M93106</guid>
      <dc:creator>gmassart</dc:creator>
      <dc:date>2019-01-11T11:23:48Z</dc:date>
    </item>
  </channel>
</rss>

