Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing 11x17 from SW 2010 api 1

Status
Not open for further replies.

Killswitch2

Mechanical
Joined
Nov 18, 2010
Messages
4
Location
CA
Previous to SW 2010, we had a macro that would print all the part drawings associated with the open assembly. This macro was able to print the drawings on 11x17 (tabloid).
To do this, the code opened each drawing and used:

Document.PrintSetup(0) = 3 (tabloid sheet size)
Document.PrintSetup(1) = 2 (landscape)
Document.PrintSetup(2) = 4318 (page length)
Document.PrintSetup(3) = 2794 (page width)
Document.PrintOut2 1, ShtCnt, NumCopies, False, swApp.ActivePrinter, 0#, False, False

Since going to SW2010, this macro will only print the drawings on 8.5x11 sheets and seems to ignore the Document.PrintSetup(x) values.

Nothing I've tried will print the drawings on 11x17.

Any thoughts?

thanks,
Killswitch2
 
Thanks Gupta65, that post really helped.
My code had been around since '05 and I guess it needed a little updating.

Everything seems to be working fine now.


Thanks,
Killswitch2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top