Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
J_Pfeifer_
in reply to: luntzj

I see, and you're correct this hard sets the sheet size at the beginning as all of my drawing would be under that same size. I personally do not use the IDW file type, but I dont see anything in the documentation that would imply that it gets referenced differently. 

 

Looking through the drawing document object, I was looking for something that would return the base sheet size. Or the size the sheet loaded in as. It could be in one of the options that returns the sheet or document information, but im just not seeing it. 

 

Ah, It's inside the sheet size. You need to get to the sheet object. Once there you can do something like  oSheet1.size(). This will give you the sheet size property. Then make a case statement that depending on the sheet size enum. You change kPaperSizeenum to match the size of the sheet. 

 

I was hoping you could just pass the sheet size enum into the printer option, but the selection is a different type. This would require you create a selection system that properly inputs the print size. 

 

Attached links: 

sheet: https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=Sheet

Sheet size : https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=Sheet_Size

Print manager: https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=DrawingPrintManager

Paper size: https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=PaperSizeEnum

 

Eddited to add: Theoretically you could do it manually by measuring the sheet size and using that size to use a case statement selecting the correct papersizeenum. You can access this by osheet1.width or osheet1.height = returned in CM. Then using those returned sizes select the proper printer paper size.