<?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: how to add new titleblock with vb.net in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/how-to-add-new-titleblock-with-vb-net/m-p/5919549#M352455</link>
    <description>&lt;P&gt;lzhif&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the community..&amp;nbsp; A question like this should be posted over in the Inventor Customization forum: &lt;A href="http://forums.autodesk.com/t5/inventor-customization/bd-p/120.&amp;nbsp;" target="_blank"&gt;http://forums.autodesk.com/t5/inventor-customization/bd-p/120.&amp;nbsp;&lt;/A&gt; ALso in the future when you post, always indicated the version of Inventor you are using&lt;/P&gt;</description>
    <pubDate>Sun, 22 Nov 2015 13:10:35 GMT</pubDate>
    <dc:creator>Mark.Lancaster</dc:creator>
    <dc:date>2015-11-22T13:10:35Z</dc:date>
    <item>
      <title>how to add new titleblock with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-to-add-new-titleblock-with-vb-net/m-p/5919544#M352454</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to Inventor, and I'm replacing old&amp;nbsp;&amp;nbsp;title block&amp;nbsp;with new one,&amp;nbsp;i try to delete old title block and add new title block but i only can achive the first step.&lt;/P&gt;&lt;PRE&gt;  Dim invapp As Inventor.Application = System.Runtime.InteropServices.Marshal.GetActiveObject("Inventor.Application")
        Dim oSourceDocument As Inventor.DrawingDocument
        oSourceDocument = invapp.ActiveDocument
        Dim oSourceTitleBlockDef As Inventor.TitleBlockDefinition
        oSourceTitleBlockDef = oSourceDocument.TitleBlockDefinitions.Item("new title block")
       
 Dim osheet As Inventor.Sheet
       For Each osheet In oNewDocument.Sheets
          osheet.Activate()
           osheet.TitleBlock.Delete()
            osheet.AddTitleBlock(oSourceTitleBlockDef)
      Next

OR

 Dim osheet As Inventor.Sheet
        osheet = oSourceDocument.ActiveSheet
        osheet.TitleBlock.Delete()
        Dim otitleblock As Inventor.TitleBlock
        otitleblock = osheet.AddTitleBlock(oSourceTitleBlockDef)&lt;/PRE&gt;&lt;P&gt;there are something wrong with the code,&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;osheet.AddTitleBlock(oSourceTitleBlockDef)&lt;/PRE&gt;&lt;P&gt;I've seen many videos , refer many blogs but I can't find the answer of the question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2015 12:50:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-to-add-new-titleblock-with-vb-net/m-p/5919544#M352454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-22T12:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to add new titleblock with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-to-add-new-titleblock-with-vb-net/m-p/5919549#M352455</link>
      <description>&lt;P&gt;lzhif&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the community..&amp;nbsp; A question like this should be posted over in the Inventor Customization forum: &lt;A href="http://forums.autodesk.com/t5/inventor-customization/bd-p/120.&amp;nbsp;" target="_blank"&gt;http://forums.autodesk.com/t5/inventor-customization/bd-p/120.&amp;nbsp;&lt;/A&gt; ALso in the future when you post, always indicated the version of Inventor you are using&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2015 13:10:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-to-add-new-titleblock-with-vb-net/m-p/5919549#M352455</guid>
      <dc:creator>Mark.Lancaster</dc:creator>
      <dc:date>2015-11-22T13:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to add new titleblock with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/how-to-add-new-titleblock-with-vb-net/m-p/5938050#M352456</link>
      <description>&lt;P&gt;sorry about that, but the website address is unavailable. anyway i see what you mean. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Dec 2015 12:47:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/how-to-add-new-titleblock-with-vb-net/m-p/5938050#M352456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-06T12:47:03Z</dc:date>
    </item>
  </channel>
</rss>

