<?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: Drawing Sheet - BaseView Creation VB in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7738615#M79737</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Yes i have tried that before but its not exactly the best method. for one, i cant access the prompted entries by code and another is i still cant access the choice of sheets. but yes, your suggested version will simply add a sheet based on the currently active sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there not a method of just selecting the sheet number and adding a new version of it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2018 07:24:23 GMT</pubDate>
    <dc:creator>NachitoMax</dc:creator>
    <dc:date>2018-01-31T07:24:23Z</dc:date>
    <item>
      <title>Drawing Sheet - BaseView Creation VB</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7722162#M79544</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im sure i had this working before but i seem to have forgotten.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using code, i am adding a drawing sheet to a drawing then adding a baseview. I cant use a SheetFormat because we dont work that way. Instead, we just use the built in Create Sheet button method. This will create a new sheet based on the currently active sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can i do this in code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically, our template has 3 standard sheets&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Front&lt;/LI&gt;
&lt;LI&gt;Assy&lt;/LI&gt;
&lt;LI&gt;Part&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I need to be able to create a sheet using the built in sheets based on the type. I have the type code, i just cannot get the correct drawing sheet. currently, its just a blank sheet with no border or titleblock...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 08:35:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7722162#M79544</guid>
      <dc:creator>NachitoMax</dc:creator>
      <dc:date>2018-01-25T08:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Sheet - BaseView Creation VB</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7722527#M79549</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This Code is working, but need to investigate the titleblock add function.&lt;/P&gt;&lt;P&gt;This seems to be a bug in inventor.&lt;/P&gt;&lt;PRE&gt;        Dim a As Inventor.Application
        a = _InvApp

        Dim b As DrawingDocument
        b = a.ActiveDocument

        Dim sh As Sheet
        sh = b.ActiveSheet

        Dim shts As Sheets
        shts = b.Sheets

        Dim newsh As Sheet
        newsh = shts.Add

        Dim bo As BorderDefinition
        bo = b.BorderDefinitions.Item(2)' REPLACE WITH THE NAME OF THE BORDER YOU NEED

        Dim He As TitleBlockDefinition
        He = b.TitleBlockDefinitions.Item(1)&lt;SPAN&gt;' REPLACE WITH THE NAME OF THE TITLEBLOC YOU NEED&lt;/SPAN&gt;


        newsh.Activate()
        Call newsh.AddBorder(bo)
 
        newsh.Activate()
        Dim titlebl As Inventor.TitleBlock

        titlebl = newsh.AddTitleBlock(He)


    End Sub&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Jan 2018 11:20:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7722527#M79549</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-01-25T11:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Sheet - BaseView Creation VB</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7724841#M79571</link>
      <description>Does your titleblock have prompted entries?&lt;BR /&gt;&lt;BR /&gt;If this is the case I believe you have to pass in an array of the values for the entries when the titleblock is added. Will check my code and reply, but worth a search on this.</description>
      <pubDate>Thu, 25 Jan 2018 22:10:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7724841#M79571</guid>
      <dc:creator>woodstylee3</dc:creator>
      <dc:date>2018-01-25T22:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Sheet - BaseView Creation VB</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7724858#M79572</link>
      <description>I read thst this is a known issue for Autodesk.&lt;BR /&gt;I gave already searched for that.&lt;BR /&gt;Do you have a solution for this line of code than?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jan 2018 22:19:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7724858#M79572</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-01-25T22:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Sheet - BaseView Creation VB</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7725143#M79575</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are not any prompted entries at the moment but i cant rule that out for the future. I wrote some code a while ago that adds the titleblock and border definition and handles prompted entries but i was hoping for a more simple solution like the built in Inventor one. When i click that, it literally adds the sheet with everything on it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose i could just get the definitions from the existing sheets and use the same settings. the sheet positions are always the same&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i will do some coding tomorrow and see what i can come up with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 01:05:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7725143#M79575</guid>
      <dc:creator>NachitoMax</dc:creator>
      <dc:date>2018-01-26T01:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Sheet - BaseView Creation VB</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7725502#M79583</link>
      <description>&lt;P&gt;This code adds the sheet in the current format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Public Sub AddSheet()

Dim oCDef As ControlDefinition
Set oCDef = ThisApplication.CommandManager.ControlDefinitions.Item("DrawingNewSheetCtxCmd")

oCDef.Execute

End Sub&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jan 2018 07:02:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7725502#M79583</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-01-26T07:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Sheet - BaseView Creation VB</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7738615#M79737</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Yes i have tried that before but its not exactly the best method. for one, i cant access the prompted entries by code and another is i still cant access the choice of sheets. but yes, your suggested version will simply add a sheet based on the currently active sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there not a method of just selecting the sheet number and adding a new version of it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 07:24:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7738615#M79737</guid>
      <dc:creator>NachitoMax</dc:creator>
      <dc:date>2018-01-31T07:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Sheet - BaseView Creation VB</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7738639#M79740</link>
      <description>&lt;P&gt;Yes i have tried that before but its not exactly the best method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for one, i cant access the prompted entries by code and another is i still cant access the choice of sheets.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;'YOU CAN ACCES THAT AFTERWARDS VIA CODING&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;but yes, your suggested version will simply add a sheet based on the currently active sheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there not a method of just selecting the sheet number and adding a new version of it?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 07:37:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawing-sheet-baseview-creation-vb/m-p/7738639#M79740</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-01-31T07:37:02Z</dc:date>
    </item>
  </channel>
</rss>

