• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Autodesk Inventor

    Reply
    Valued Contributor
    schae235
    Posts: 59
    Registered: ‎05-24-2011

    Title Block

    118 Views, 3 Replies
    08-23-2012 09:16 AM

    Is there a way to keep a tally of how many times a title block is used in a drawing?

    INV 2012 SP1
    Windows 7 64 Bit
    ATI FirePro V5800
    14.0 GB RAM
    Please use plain text.
    *Pro
    jletcher
    Posts: 1,316
    Registered: ‎05-18-2011

    Re: Title Block

    08-23-2012 10:50 AM in reply to: schae235

    If they are the same I think an ilogic code can count them not sure but just for me why would someone need this.

     

    Never know may learn something new.

     

     Thanks


    Please mark this response as "Accept as Solution" if it answers your question.

    James Letcher
    2012 Factory Design Suite ( will not load 2013)
    What happen to my Inventor :-(
    Please use plain text.
    Valued Contributor
    schae235
    Posts: 59
    Registered: ‎05-24-2011

    Re: Title Block

    08-23-2012 11:21 AM in reply to: jletcher

    Long story short because of QA.

    INV 2012 SP1
    Windows 7 64 Bit
    ATI FirePro V5800
    14.0 GB RAM
    Please use plain text.
    Product Support
    innovatenate
    Posts: 131
    Registered: ‎11-22-2011

    Re: Title Block

    08-31-2012 12:23 PM in reply to: schae235

    You may try some iLogic code like the following. This code prints out the name of the Title Block used on each sheet. 

     

    iLogic Code:

    Dim oDoc As Document = ThisApplication.ActiveDocument 
    Dim oDrgDoc As DrawingDocument = oDoc
    Dim oSheetCount As Integer = oDrgDoc.Sheets.Count
    Dim msg As String()
    ReDim msg(oSheetCount)
    Dim i As Integer 
    
    For i = 1 To oSheetCount
        msg(i)= oDrgDoc.Sheets(i).TitleBlock.Name
        msgString = msgString & Chr(13) & "Sheet " & i & "" & msg(i) 
    Next
    
    MsgBox (msgString, ,"TitleBlocks Used")


    Nathan Chandler
    Product Support Specialist
    Product Support Americas
    Autodesk, Inc.

    Please use plain text.