Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Print ALL drawings related to an Assembly?

49 REPLIES 49
SOLVED
Reply
Message 1 of 50
G_K__
14340 Views, 49 Replies

Print ALL drawings related to an Assembly?

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.
49 REPLIES 49
Message 21 of 50
scottmoyse
in reply to: stevecorrales

You can take a look at CPS jobber on the exchange store to see if that will do the qty you are after

Regards
Scott Moyse
MFG Technical Specialist

CADPRO Systems Ltd
0210557775
From my Windows Phone

Scott Moyse
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


EESignature


Design & Manufacturing Technical Services Manager at Cadpro New Zealand

Co-founder of the Grumpy Sloth full aluminium billet mechanical keyboard project

Message 22 of 50
karthur1
in reply to: stevecorrales

Steve,

I am using Inv 2013, SP2-update3.  My OS is Win7x64.  I have also tested the app on Inv2014 (Win7-x64).  Runs fine here.

 

You might want to contact the author of the app.

 

Kirk

Message 23 of 50
rmirzage
in reply to: karthur1

This may seem like a dumb question but how do i create a macro in inventor idw and put this code in?

Message 24 of 50
karthur1
in reply to: rmirzage

The code in the 4th post of this thread is not intended to be placed in an idw. A macro is an externall file that can be ran from Inventor.  You "could"store this file in your assemblies, but that can lead to problems.

 

The way I use this is I store this in a file, then when I need to run it, I do this:

1. open the assembly

2. go to Tools>VBA Editor.

3. In the VBA Editor, File>Load Project and pick the file that has the code.

4. Close the editor.

5. Back in Inventor, Tools >Macros. You should see "PrintRefIDWs" in the list.  Pick it and then "Run".

 

That should get it going.

 

Attached is the VBA file that I use. You will have to rename it and add .ivb to the filename.

 

Kirk

 

Message 25 of 50
rmirzage
in reply to: karthur1

I did this and it didn't work, can you give me a more detailed explaination on how to do this.  I do not know programming very much.

Message 26 of 50
karthur1
in reply to: rmirzage

There are two things being discussed in this thread. That might be the confusion. What are you trying to do.... print all the associated prints or add the QTY to the idw's?

 

Kirk

Message 27 of 50
rmirzage
in reply to: karthur1

print the component and sub-assembly drawings from the main assembly.  Although is there a way to also automatically add quantities to the individual drawings in an assembly?

Message 28 of 50
karthur1
in reply to: rmirzage

What I posted in msg 24 above will print the idw's (assuming they are already created and are in your workspace).  What part of the instructions are you having trouble with.

 

"Automatically" add quanities.....haha.... that depends on what you call a-u-t-o matic.

 

If you want, send me a email at karthurATfmi-solutionsDOTcom

 

Kirk

Message 29 of 50
brwi85
in reply to: G_K__

Hi there...

 

Ressurecting this old topic to try to get some help with this script.

 

Ive been using this for years now, and couldnt live without it, BUT...

 

Some of my IDW files have multiple sheets. How can i make it print all of the sheets within an IDW if there are more than one?

 

Some of my more complicated assemblies require more than one sheet to fit the information.

 

It seems that I can make extra idw files with similar names (say the assemply file name is 70230033.iam, i can have 70230033.idw and 70230033c.idw and the script will find both) But it will not print multiple sheets inside one IDW... any way to add this in?

 

Thanks!

Message 30 of 50
doum90
in reply to: brwi85

oPrintMgr = document.PrintManager

oPrintMgr.PrintRange = Inventor.PrintRangeEnum.kPrintAllSheets

Message 31 of 50
brwi85
in reply to: doum90


@doum90 wrote:

oPrintMgr = document.PrintManager

oPrintMgr.PrintRange = Inventor.PrintRangeEnum.kPrintAllSheets


 

 

Perfect! Thank you.

 

I dont know squat about coding but i got it to work.

 

I got a compile error the first time around so i ditched the "oPrintMgr = document.PrintManager" line and just added "oPrintMgr.PrintRange = Inventor.PrintRangeEnum.kPrintAllSheets" in after "Set oPrintMgr = ThisApplication.ActiveDocument.PrintManager" in the original script.

 

Works like a charm.

Message 32 of 50
karthur1
in reply to: brwi85

Glad it works for you.  I had already added the "PrintRange=" to the code that we use because of teh issue you were having.

 

This is what my code now looks like.

 

2014-05-14_1341.png

 

Kirk

Message 33 of 50
haydee3
in reply to: G_K__

hi guys, Im Trying to print mi .idw, my paper size is C and I just have a regular printer, with the sixe paper A

if I do a print previo the drawing is not fitting in the A Size, but how can I print it?, is the anything like scale to print, or fit to paper as in autocad?. Please help mee I know It is possible because I had seen other persons did, but I didnt catch how they did

Message 34 of 50
karthur1
in reply to: haydee3

You just trying to print one sheet?  Really should have started a new thread.

 

In the print drawing dialog, select your printer, then the properties in the top right.  Here select the paper size you want to print to. "OK" out of that.  Back in the print drawing dialog, choose "Best Fit".  Now preview if that is what you want.  If it is, click print.

Message 35 of 50
s.mccarthy
in reply to: karthur1

Nice code. I would like to modify it, if possible:

 

  1. Change the sheet size from A3 to something else i.e. 11x17, ANSI C, Arch D
  2. Change "Best Fit" to 1:1
  3. Access drawings that reference iPart members. These are currently not printing

Thanks.

Message 36 of 50
karthur1
in reply to: s.mccarthy


@s.mccarthy wrote:

Nice code. I would like to modify it, if possible:

 

  1. Change the sheet size from A3 to something else i.e. 11x17, ANSI C, Arch D
  2. Change "Best Fit" to 1:1
  3. Access drawings that reference iPart members. These are currently not printing

Thanks.


S,

 

Feel free to modify it any way you want.

 

It probably does not work for the ipart children because the path+filename of the idw is not the same as the ipart member.  You could test this theory by placing one of your idws into the folder with the children and then run the code.  If it prints that idw, then that is the answer.

 

Kirk

Message 37 of 50

Hi,

 

is there a way to convert drawings in a folder to PDF using Inventor VBA? I want to convert drawings of which i just have the path ("C:/temp/abc.idw" e.g.) in a loop. I don't want to use the a Print function, because i want to give the files a specified name in my loop.

 

I also haven't found a way to convert all idw files from one folder, so for example for each .idw file a .PDF file would be created with the same name and same path.

 

The parts are included in an assembly, but i don't want to open the assembly manually because they took a long time to open. So my code would have a input-window where the assembly or the path will be choosen (flat structure, all files in one folder because of "pack and go").

 

Also it would be awesome if i could keep the landscape/portrait setting of the drawing.

Message 38 of 50
karthur1
in reply to: Thomas.Kneidl

If they are all in a folder, just use the Autodesk Inventor Task Scheduler and create a task.  You can add an entire folder.

 

Kirk

Message 39 of 50
Thomas.Kneidl
in reply to: karthur1

Thank you for your quick response.

 

Am i right? -> In the Task Scheduler i have to use a Print-Service, Converting is not directly available? -> I use PDF Creator -> To create like 50 single pdfs i have to accept 50 times the name of the new file (like after pressing "safe as")?

I have found a "AutoSave" flag in PDF Creater which would eliminate this dialouge. But for other Tasks i need the normal save-handling which means i would need to change this setting everytime?

Message 40 of 50
karthur1
in reply to: Thomas.Kneidl

I have used PDF Creator in the past, but I dont use it now.  I know that you can set the Autosave to save the PDF and give it a name of the <Title>.  Its been awhile so I am not sure of the syntax.  Look at the PDF Creator options and you should be able to figure out what syntax to use for the filename.

 

Thats the way I save my pdfs now... just with Adobe Acrobat.

 

Kirk

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report