<?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 Custom Size sheet for 1:1 in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-size-sheet-for-1-1/m-p/12971835#M6970</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if it possible on existing drawing, to change the sheet format with custom size, according to the views overall dimensions + a border (10/20mm or else).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 standards views, ALWAYS in 1:1 format. So sometime i have very large part who can't be in A0.&lt;/P&gt;&lt;P&gt;So i use blank template, with all views in 1:1 and i resize with custom size to be around views.&lt;/P&gt;&lt;P&gt;I would like to make this automatic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Have nice day.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2024 09:33:29 GMT</pubDate>
    <dc:creator>inventor4578</dc:creator>
    <dc:date>2024-08-21T09:33:29Z</dc:date>
    <item>
      <title>Custom Size sheet for 1:1</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-size-sheet-for-1-1/m-p/12971835#M6970</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if it possible on existing drawing, to change the sheet format with custom size, according to the views overall dimensions + a border (10/20mm or else).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 standards views, ALWAYS in 1:1 format. So sometime i have very large part who can't be in A0.&lt;/P&gt;&lt;P&gt;So i use blank template, with all views in 1:1 and i resize with custom size to be around views.&lt;/P&gt;&lt;P&gt;I would like to make this automatic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Have nice day.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 09:33:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-size-sheet-for-1-1/m-p/12971835#M6970</guid>
      <dc:creator>inventor4578</dc:creator>
      <dc:date>2024-08-21T09:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Size sheet for 1:1</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-size-sheet-for-1-1/m-p/12972490#M6971</link>
      <description>&lt;P&gt;This simple code can be used for it. It expects that the drawing views are in the first quadrant of the sheet (above the bottom end of paper and right to the left side of the paper).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub Main()
    Dim oversizeX = 2.0
    Dim oversizeY = 2.0

    Dim drw As DrawingDocument = ThisDoc.Document
    Dim viewBox As Box2d = ThisApplication.TransientGeometry.CreateBox2d()
    Dim drawingViews As DrawingViews = drw.ActiveSheet.DrawingViews
    For Each drawingView As DrawingView In drawingViews

        Dim topRightViewX = drawingView.Position.X + drawingView.Width / 2
        Dim topRoightViewY = drawingView.Position.Y + drawingView.Height / 2
        Dim topRightCorner As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(topRightViewX, topRoightViewY)
        viewBox.Extend(topRightCorner)
    Next

    Dim minSheetWidth = viewBox.MaxPoint.X - viewBox.MinPoint.X
    Dim minSheetHeight = viewBox.MaxPoint.Y - viewBox.MinPoint.Y

    drw.ActiveSheet.Size = DrawingSheetSizeEnum.kCustomDrawingSheetSize
    drw.ActiveSheet.Width = minSheetWidth + oversizeX
    drw.ActiveSheet.Height = minSheetHeight + oversizeY
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-08-21_16-40-13.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1400404i48163D700EBF2EE5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2024-08-21_16-40-13.png" alt="2024-08-21_16-40-13.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 14:45:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-size-sheet-for-1-1/m-p/12972490#M6971</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2024-08-21T14:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Size sheet for 1:1</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/custom-size-sheet-for-1-1/m-p/13142717#M6972</link>
      <description>&lt;P&gt;Hi, it's working good, but is it possible to add more margin ? Thank you very much again&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 06:44:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/custom-size-sheet-for-1-1/m-p/13142717#M6972</guid>
      <dc:creator>inventor4578</dc:creator>
      <dc:date>2024-11-11T06:44:18Z</dc:date>
    </item>
  </channel>
</rss>

