• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor

    Reply
    Contributor
    Posts: 13
    Registered: ‎09-01-2008

    Print ALL drawings related to an Assembly?

    1723 Views, 9 Replies
    10-05-2009 09:11 PM
    Is there a way (either thru Inventor or Vault) of print ALL idw (drawings) files related to an iam (assembly)?

    Inventor (and Vault) are capable of creating and managing a BOM of the iam files and would think that it would be reltivly easy to query this bom and "find" all the associated idw files and batch print them. Possibly with the option to select the "levels" to dril down to (All, Top Level, Sub Assemblies within the iam, etc, etc)

    Can anyone please help with this as I often have to print a "drawing package" for a complete build and doing this manually is very time consuming.

    Thanking you in advance.
    Please use plain text.
    Contributor
    Posts: 12
    Registered: ‎10-05-2009

    Re: Print ALL drawings related to an Assembly?

    10-05-2009 11:26 PM in reply to: G_K__
    The tool FX64 Plot can do this

    http://www.fx64.de/produkte_index.php?lang=en&current=two⊂=a&option=com_content&task=view&id=57&Itemid=1&ImageId=big_box_products&title=FX64%20Plot
    Please use plain text.
    Active Contributor
    Posts: 40
    Registered: ‎07-30-2008

    Re: Print ALL drawings related to an Assembly?

    10-06-2009 01:14 PM in reply to: G_K__
    This may be a pipe dream but is there a free version out there?
    Task manager works well but not with Vault.
    The design review comes with a nice batch print feature but you need to manually create batch files of .dwf files to print which need to be updated when there is a change in any assembly.
    I will soon be upgrading to Vault Manufacturing from Vault 2009. Anybody know what i can expect when it comes to batch printing.

    Thanx,

    Ed
    Please use plain text.
    *Expert Elite*
    karthur1
    Posts: 3,574
    Registered: ‎04-27-2005

    Re: Print ALL drawings related to an Assembly?

    07-14-2011 06:27 AM in reply to: G_K__

    Here is a code that will do this....works for me :smileyhappy:  It was posted on the Inventor Customization forum by Brendan Henderson.  The idw name has to be the same as the referenced file in order for this to work.

     

    http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/Printing-all-drawings-of-an-assembly-f...

     

    Below is a copy of his post in case the link later fails.

     

     

    Here is a macro I use that prints all of the IDW's related to an assembly. This macro is run from the assembly model. There are 4 caveats :-

    1. The IDW of the assembly the macro is run from does not print (so print it manually)

    2. The IDW's do not print in perfect order

    3. It is coded to print to a specific printer, A3 and in landscape

    4. It strips the file extension from the file name so file extensions must be visible in Windows Explorer.

     

    Function fileExists(fname) As Boolean
        If Dir(fname) <> "" Then fileExists = True Else fileExists = False
    End Function

    Public Sub PrintRefIDWs()

        Dim oAsmDoc As AssemblyDocument
        Set oAsmDoc = ThisApplication.ActiveDocument
        If ThisApplication.ActiveDocument.DocumentType <> kAssemblyDocumentObject Then
            MsgBox "This is NOT an assembly document!", vbExclamation
            Exit Sub
        End If

        Dim oPrintMgr As PrintManager
        Set oPrintMgr = ThisApplication.ActiveDocument.PrintManager
        If MsgBox("Using default printer """ & oPrintMgr.Printer & """  Do you want to continue?", vbYesNo + vbQuestion) = vbNo Then
            Exit Sub
        End If

        Dim oDrgPrintMgr As DrawingPrintManager

        MsgBox "Using printer " & oPrintMgr.Printer & ", printing 1 copy, A3 paper, landscape."

        dirPath = Left(oAsmDoc.FullFileName, Len(oAsmDoc.FullFileName) - Len(oAsmDoc.DisplayName))

        Dim oRefDocs As DocumentsEnumerator
        Set oRefDocs = oAsmDoc.AllReferencedDocuments
        Dim oRefDoc As Document
        numFiles = 0

        For Each oRefDoc In oRefDocs
            idwPathName = Left(oRefDoc.FullDocumentName, Len(oRefDoc.FullDocumentName) - 3) & "idw"
            If fileExists(idwPathName) Then
                numFiles = numFiles + 1
                'If numFiles = 10 Then Exit Sub
                Dim oDrawDoc As DrawingDocument
                Set oDrawDoc = ThisApplication.Documents.Open(idwPathName, True)
                oDrawDoc.Activate
                Set oDrawDoc = ThisApplication.ActiveDocument
                Set oDrgPrintMgr = oDrawDoc.PrintManager

                oDrgPrintMgr.AllColorsAsBlack = True
                oDrgPrintMgr.ScaleMode = kPrintBestFitScale
                Set oPrintMgr = ThisApplication.ActiveDocument.PrintManager

                ' Printer setup, default printer
                oPrintMgr.ColorMode = kPrintDefaultColorMode ' Set to default
                oPrintMgr.NumberOfCopies = 1 ' Set to print one copies.
                oPrintMgr.Orientation = kLandscapeOrientation ' Set to print using landscape orientation.
                oPrintMgr.PaperSize = kPaperSizeA3 'Set the paper size.
                oPrintMgr.SubmitPrint ' Submit the print.
                oDrawDoc.Close (True)
            End If
        Next
        MsgBox "There are " & numFiles & " sent to printer."

    End Sub

     

    Please use plain text.
    *Expert Elite*
    MariaManuela
    Posts: 748
    Registered: ‎12-04-2003

    Re: Print ALL drawings related to an Assembly?

    07-15-2011 09:08 AM in reply to: G_K__

    You can use the Multi-sheet Plot wizard to plot multiple drawing sheets that include drawings of various sizes. You can select IDW, 2D DWF, and DWG files.

     

    From the Start menu, click Programs Autodesk Autodesk Inventor 2012 [version] Autodesk Multi-sheet Plot to open the Multi-sheet Plot wizard.

    Maria Manuela Pinho
    Application Enginner

    Cadtech.Asidek | Autodesk Gold Partner
    http://cadtech-asidek.blogspot.com/
    www.cadtech.pt | www.cadtech.es | www.asidek.es

    Autodesk Inventor Professional 2013
    Windows 7 Professional 64-bit
    Please use plain text.
    *Expert Elite*
    karthur1
    Posts: 3,574
    Registered: ‎04-27-2005

    Re: Print ALL drawings related to an Assembly?

    07-15-2011 09:32 AM in reply to: MariaManuela

    Manuela,

    That is true.  I have used the Multi-Sheet Plot tool several times.  You still have to know what idw's you want to print, then weed through directories and add the ones you want to the list.  You cant save the list, so if you want to generate the prints again, you have to go through the same routine.  With this macro you dont have to do that.  Here is how this works.

     

    1. Set your default printer via Windows start menu.

    2. Open an iam in Inventor.

    3. Run the macro.

     

    This will print EVERY idw that exists for all parts in this iam.  I have mine set up to print to pdf's in a temp directory so I can easily bundle all the idws into a single package.  This is a HUGE timesaver for me.

    Please use plain text.
    *Expert Elite*
    MariaManuela
    Posts: 748
    Registered: ‎12-04-2003

    Re: Print ALL drawings related to an Assembly?

    07-15-2011 09:51 AM in reply to: karthur1

    Fully agree with your explanation. Inventor Multi-Sheet Plot its a little poor...for example is not possible to specify in advance that A3 go to X printer and A4 goes to Z printer...and so on...

     

    Some time ago i found Inventor Plot addin from http://www.inventortools.net/ and works very well with Inventor 2010 but unfortunately no longer works with 2012...

    Maria Manuela Pinho
    Application Enginner

    Cadtech.Asidek | Autodesk Gold Partner
    http://cadtech-asidek.blogspot.com/
    www.cadtech.pt | www.cadtech.es | www.asidek.es

    Autodesk Inventor Professional 2013
    Windows 7 Professional 64-bit
    Please use plain text.
    Contributor
    doum90
    Posts: 14
    Registered: ‎01-05-2012

    Re: Print ALL drawings related to an Assembly?

    04-26-2012 08:02 PM in reply to: karthur1

    Would there be a way to make it search in the following directories for drawings? We don't put the drawing files in the same folder as the parts and assembly.

     

    We usually go like this C:/Project/Job No/Part1.ipt

    the drawing would be : C:/Project/Job No/Details/Part1.idw

     

    PS: Sorry for bringing that old post up...

    Please use plain text.
    *Expert Elite*
    karthur1
    Posts: 3,574
    Registered: ‎04-27-2005

    Re: Print ALL drawings related to an Assembly?

    04-26-2012 08:26 PM in reply to: doum90

    Not a problem bringing up this old post.

     

    It shouldnt be a problem if you are always using the same subfolder for the details.  The way this code was written it assumes that the idw is in the same location as the iam (you figured this out already).  I'm sure someone here can edit one line of code and get this working for you.  If not, try the customization group.  Someone over there should be able to help.

     

    Post back when you figure it out.

    Please use plain text.
    Contributor
    Posts: 19
    Registered: ‎07-02-2008

    Re: Print ALL drawings related to an Assembly?

    05-03-2012 03:34 PM in reply to: G_K__
    My suggestion is to save your prints as PDF documents then bind them into a single document that contains all the drawings, that is what I do. Obviously this will not work if your client wants dwf or dwg files.
    Please use plain text.