iLogic: Export to PDF + Print (2D Enviroment)

iLogic: Export to PDF + Print (2D Enviroment)

Anonymous
Not applicable
354 Views
3 Replies
Message 1 of 4

iLogic: Export to PDF + Print (2D Enviroment)

Anonymous
Not applicable

I'm asking for 2 codes

 

1) Export to PDF, same function as File > Export > PDF ...However, if this could include a subfix from a fx selectable parameter, that would be really cool

 

2) Print, same function as File > Print > Print

0 Likes
355 Views
3 Replies
Replies (3)
Message 2 of 4

Sergio.D.Suárez
Mentor
Mentor

Hi, This is an example of code that I usually use to print a drawing document with many sheets. 

 

oDoc = ThisDoc.Document

Dim oSheet As Sheet
oSheet = oDoc.ActiveSheet

For Each oSheet In oDoc.Sheets
oSheet.Activate
If oSheet.ExcludeFromPrinting = False Then
oPrintMgr = oDoc.PrintManager
oPrintMgr.ColorMode = 13315    'kPrintGrayScale -> 13314 _kPrintDefaultColorMode ->13315
oPrintMgr.NumberOfCopies = 1
oPrintMgr.PaperSize = 14341   'kPaperSizeCustom
oPrintMgr.Scalemode = 13825  'Full Scale mode
	If oSheet.Orientation = 10243 Then
	oPrintMgr.Rotate90Degrees = False
	Else
		oPrintMgr.Rotate90Degrees = True
	End If
oPrintMgr.PrintRange = kPrintCurrentSheet
oPrintMgr.SubmitPrint					
End If
Next

 I hope it is useful for you. Best Regards!


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

0 Likes
Message 3 of 4

Anonymous
Not applicable

I'd like to enter the "Print Drawing" menu like I normally would

0 Likes
Message 4 of 4

bradeneuropeArthur
Mentor
Mentor

Then you need to change your commandbutton and replace it with your "Custom" one.

 

This can be done within an add-in.

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes