<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Auto Size for printing from Inventor in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13041249#M172419</link>
    <description>&lt;P&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12582386"&gt;@luntzj&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Welcome ot the Inventor forum. &amp;nbsp;Can you please share some more details for the experts here? &amp;nbsp;What version of Inventor are you working with? &amp;nbsp;Can you share some screen captures of your printer settings and what you are seeing that is causing you the problems? &amp;nbsp;That would make it easier for the experts to give you some advice. &amp;nbsp;Thank you and good luck!&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 13:21:26 GMT</pubDate>
    <dc:creator>CGBenner</dc:creator>
    <dc:date>2024-09-24T13:21:26Z</dc:date>
    <item>
      <title>Auto Size for printing from Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13041146#M172418</link>
      <description>&lt;P&gt;Is it not possible that Inventor can set the Paper Size of a printed drawing to match the Sheet size? It &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-6B7B72D6-ADCE-4458-B8EA-E47D8774C4D4" target="_blank" rel="noopener"&gt;seems to be possible with Task Scheduler&lt;/A&gt;, but for the life of me I cannot seem to figure out a way to do it directly within in Inventor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is true, is there some workaround such as iLogic code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It must drive other people bonkers to have to first remind themselves of the paper size and then frequently toggle it back and forth when printing multiple drawings!(?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: per request, I've added screenshots of the print dialogue I see when printing to paper and to pdf. I'm using Inventor Professional 2023.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 13:53:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13041146#M172418</guid>
      <dc:creator>luntzj</dc:creator>
      <dc:date>2024-09-24T13:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Size for printing from Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13041249#M172419</link>
      <description>&lt;P&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12582386"&gt;@luntzj&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Welcome ot the Inventor forum. &amp;nbsp;Can you please share some more details for the experts here? &amp;nbsp;What version of Inventor are you working with? &amp;nbsp;Can you share some screen captures of your printer settings and what you are seeing that is causing you the problems? &amp;nbsp;That would make it easier for the experts to give you some advice. &amp;nbsp;Thank you and good luck!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 13:21:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13041249#M172419</guid>
      <dc:creator>CGBenner</dc:creator>
      <dc:date>2024-09-24T13:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Size for printing from Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13041296#M172420</link>
      <description>&lt;P&gt;Didn't there used to be an Inventor batch plot utility in previous releases? My Mind escapes me anymore lol.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 13:35:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13041296#M172420</guid>
      <dc:creator>blandb</dc:creator>
      <dc:date>2024-09-24T13:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Size for printing from Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13043793#M172421</link>
      <description>&lt;P&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/467314"&gt;@blandb&lt;/a&gt;&lt;/SPAN&gt; You might be thinking of Vault?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 10:24:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13043793#M172421</guid>
      <dc:creator>CGBenner</dc:creator>
      <dc:date>2024-09-25T10:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Size for printing from Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13049862#M172422</link>
      <description>&lt;P&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12582386"&gt;@luntzj&lt;/a&gt;&lt;/SPAN&gt; Hello, do you still need help with this question?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 12:45:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13049862#M172422</guid>
      <dc:creator>CGBenner</dc:creator>
      <dc:date>2024-09-27T12:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Size for printing from Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13056970#M172423</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9248770"&gt;@CGBenner&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12582386"&gt;@luntzj&lt;/a&gt;&lt;/SPAN&gt;Hello, do you still need help with this question?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;yes&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 12:02:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13056970#M172423</guid>
      <dc:creator>luntzj</dc:creator>
      <dc:date>2024-10-01T12:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Size for printing from Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057012#M172424</link>
      <description>&lt;P&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12582386"&gt;@luntzj&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Since the output paper size is set in the printer dialog, and there are so many different printers available, this would probably need to be either a customization, or an &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232" target="_blank"&gt;&lt;STRONG&gt;enhancement request&lt;/STRONG&gt;&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;I will move this post to the Inventor programming forum, to see if anyone there has any cool ideas for you.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 12:19:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057012#M172424</guid>
      <dc:creator>CGBenner</dc:creator>
      <dc:date>2024-10-01T12:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Size for printing from Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057280#M172427</link>
      <description>&lt;P&gt;so, to be clear, everyone using Inventor is currently working through the numerous button clicks every time they print to paper or pdf in order to manually match the output Paper size to the drawing size?!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further, if they want to print a batch of drawings of different sizes - you either must do it in Task Scheduler or work through each one paying attention to the drawing size and toggling the Paper size back and forth as you print each one(?).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to me other programs don't have this issue. e.g. AutoCAD, Word, Solidworks, etc. For example, in AutoCAD it seems that the file contains information regarding the desired Paper size and then when you select a printer, it automatically tries to select that paper size from within the printer drivers options.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess I was hoping to find out I had some setting or driver setup incorrectly - especially since nobody else seems to be asking about this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 13:56:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057280#M172427</guid>
      <dc:creator>luntzj</dc:creator>
      <dc:date>2024-10-01T13:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Size for printing from Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057604#M172434</link>
      <description>&lt;P&gt;Whew, It's alright man. No we're not all printing each thing manually. However, you still need to create a program that can take into account the logic needed. Hard to automate something to auto select the one you want, without telling the program to understand its position.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below you will see my printing script, you will see that the function of my script is to change the place the main symbol object on the front sheet. It changes these depending on the Shop requested order. If I needed to change the sheet size of any of these, I would just set the variable in the beginning to another size enum and print.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So instead of placing a new symbol, I could make this alternate sheet sizes as it prints each item.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This produces a total of 8 finished job read prints of the drawing. Each with the proper identifier on the front sheet, in the order specified by the managers out in production.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is my printing script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub main()
	
	Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
	
	Dim oSheet1 As Sheet = oDoc.Sheets.Item(1)
        try 
	Dim oSheet2 As Sheet = oDoc.Sheets.Item(2)
	Dim oSheet3 As Sheet = oDoc.Sheets.Item(3)
	Dim oSheet4 As Sheet = oDoc.Sheets.Item(4)
	catch
        end try
	Dim PrintManager As DrawingPrintManager = oDoc.PrintManager
	
	PrintManager.Printer = "Drafting"

	PrintManager.ScaleMode = kPrintBestFitScale
	PrintManager.PaperSize = kPaperSize11x17
	'PrintManager.PaperSize = kPaperSizeLetter
	PrintManager.PrintRange = kPrintAllSheets
	'PrintManager.PrintRange = kPrintCurrentSheet
	PrintManager.Orientation = kLandscapeOrientation
	
	Dim CheckedLocations As Boolean = False
	Dim iIndex As Integer = 1
	
	Try
	If Checked_And_Located = False Then 
		Call PlaceJobNumber()
		Call PlaceMe()
		'Call JobNumberDelete() 'Checking to make sure item is deleted after printing. 
		CheckedLocation = True
	Else 
		MessageBox.Show("You must run and place the items before running the rule")
	End If
	Catch
		MessageBox.Show("Please unselect any check box and run rule.")
	End Try
	'Added double checking boxes, both must be selected for the rule to print. 
	If Checked_And_Located = True and Notes_Confirmed = True Then 
		
		Call CollectLocations(FirstLoc)
		Call DeleteAll()
		
		Call ForemanApply(FirstLoc)
			Thread.Sleep(2000)
			PrintManager.SubmitPrint
			Logger.Info("Print Foreman")
		Call DeleteAll()
		Call TankAssyApply(FirstLoc)
		
		'Print x3 Of the tank assembly
			Do While iIndex &amp;lt;= 3
				Thread.Sleep(2000)
				PrintManager.SubmitPrint
				iIndex = iIndex + 1
				Logger.Info("Print tank assy #: " &amp;amp; iIndex)
			Loop
			
		Call DeleteAll()
		
		Call ForemanApply(FirstLoc)
			Thread.Sleep(2000)
			PrintManager.SubmitPrint
			Logger.Info("Print Foreman")
		Call DeleteAll()
		
		Call TankRoomApply(FirstLoc)
			Thread.Sleep(2000)
			PrintManager.SubmitPrint
			Logger.Info("Print Tank room")
		Call DeleteAll()
		
		Call FittingsApply(FirstLoc)
		 	Thread.Sleep(2000)
			PrintManager.SubmitPrint
			Logger.Info("Print FITTINGS")
		Call DeleteAll()
		
		Call TankAssyApply(FirstLoc)
			Thread.Sleep(2000)
			PrintManager.SubmitPrint
			Logger.Info("Print tank assy")
		Call DeleteAll
		Call JobNumberDelete()
	
	End If 
End Sub


Sub FittingsApply(ByVal FirstLoc As Point2d)

	Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
	Dim oTG As TransientGeometry = ThisApplication.TransientGeometry
	
	Dim FittingsSymDef As SketchedSymbolDefinition = oDoc.SketchedSymbolDefinitions.Item("FITTINGS")
	
	Dim oSheet1 As Sheet = oDoc.Sheets.Item(1)
	Try
	Dim oSheet2 As Sheet = oDoc.Sheets.Item(2)
	Dim oSheet3 As Sheet = oDoc.Sheets.Item(3)
	Dim oSheet4 As Sheet = oDoc.Sheets.Item(4)
	Catch
		MessageBox.Show("Missing sheet from default, notify Jesse")
	End Try
	
	Logger.Info("First Location X/Y: " &amp;amp; FirstLoc.X &amp;amp; " " &amp;amp; FirstLoc.Y)
	
	
	
	Dim FittingsSym As SketchedSymbol = oSheet1.SketchedSymbols.Add(FittingsSymDef, FirstLoc, Nothing, 1)
End Sub
Sub TankRoomApply(ByVal FirstLoc As Point2d)

	Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
	Dim oTG As TransientGeometry = ThisApplication.TransientGeometry
	
	Dim TankRoomSymDef As SketchedSymbolDefinition = oDoc.SketchedSymbolDefinitions.Item("TANK ROOM")
	
	Dim oSheet1 As Sheet = oDoc.Sheets.Item(1)
	Try
	Dim oSheet2 As Sheet = oDoc.Sheets.Item(2)
	Dim oSheet3 As Sheet = oDoc.Sheets.Item(3)
	Dim oSheet4 As Sheet = oDoc.Sheets.Item(4)
	Catch
		MessageBox.Show("Missing sheet from default, notify Jesse")
	End Try
	
	
	Logger.Info("First Location X/Y: " &amp;amp; FirstLoc.X &amp;amp; " " &amp;amp; FirstLoc.Y)

	Dim TankRoomSym As SketchedSymbol = oSheet1.SketchedSymbols.Add(TankRoomSymDef, FirstLoc, Nothing, 1)
	
End Sub
Sub TankAssyApply(ByVal FirstLoc As Point2d)

	Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
	Dim oTG As TransientGeometry = ThisApplication.TransientGeometry
	
	Dim TankAssySymDef As SketchedSymbolDefinition = oDoc.SketchedSymbolDefinitions.Item("TANK ASSY")
	
	Dim oSheet1 As Sheet = oDoc.Sheets.Item(1)
	Try
	Dim oSheet2 As Sheet = oDoc.Sheets.Item(2)
	Dim oSheet3 As Sheet = oDoc.Sheets.Item(3)
	Dim oSheet4 As Sheet = oDoc.Sheets.Item(4)
	Catch
		MessageBox.Show("Missing sheet from default, notify Jesse")
	End Try
	
	Logger.Info("First Location X/Y: " &amp;amp; FirstLoc.X &amp;amp; " " &amp;amp; FirstLoc.Y)

	Dim TankAssySym As SketchedSymbol = oSheet1.SketchedSymbols.Add(TankAssySymDef, FirstLoc, Nothing, 1)

End Sub
Sub ForemanApply(ByVal FirstLoc As Point2d)

	Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
	Dim oTG As TransientGeometry = ThisApplication.TransientGeometry
	
	Dim ForemanSymDef As SketchedSymbolDefinition = oDoc.SketchedSymbolDefinitions.Item("FOREMAN")
	
	Dim oSheet1 As Sheet = oDoc.Sheets.Item(1)
	Try
	Dim oSheet2 As Sheet = oDoc.Sheets.Item(2)
	Dim oSheet3 As Sheet = oDoc.Sheets.Item(3)
	Dim oSheet4 As Sheet = oDoc.Sheets.Item(4)
	Catch
		MessageBox.Show("Missing sheet from default, notify Jesse")
	End Try
	
	
	Logger.Info("First Location X/Y: " &amp;amp; FirstLoc.X &amp;amp; " " &amp;amp; FirstLoc.Y)
		
	Dim ForemanSym As SketchedSymbol = oSheet1.SketchedSymbols.Add(ForemanSymDef, FirstLoc, Nothing, 1)

End Sub
Sub PlaceMe()
	
	Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
	Dim PlaceMeDef As SketchedSymbolDefinition = oDoc.SketchedSymbolDefinitions.Item("PLACE ME")
	Dim oTG As TransientGeometry = ThisApplication.TransientGeometry
	
	'Starting / default setting
	Dim SymbolPosition As Point2d = oTG.CreatePoint2d(30.5, 9.5)
	Dim SymbolPosition1st As Point2d = oTG.CreatePoint2d(34.7, 7.375)
	
	Dim oSheet As Sheet = oDoc.Sheets.Item(1)
	
	Dim oSymbol As SketchedSymbol = Nothing 

	oSymbol = oSheet.SketchedSymbols.Add(PlaceMeDef, SymbolPosition1st, Nothing, 1)
		
End Sub 
Sub DeleteAll()
	
	'Checks every sheet, then all the sketched symbol objects on that sheet. Deletes any that are named from this rule. 
	Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
	For Each oSheet As Sheet In oDoc.Sheets
		For Each oSymbol As SketchedSymbol In oSheet.SketchedSymbols
			If oSymbol.Definition.Name = "FOREMAN"
				oSymbol.Delete
			Else If oSymbol.Definition.Name = "TANK ASSY"
				oSymbol.Delete
			Else If oSymbol.Definition.Name = "TANK ROOM"
				oSymbol.Delete
			Else If oSymbol.Definition.Name = "FITTINGS"
				oSymbol.Delete
			Else If oSymbol.Definition.Name = "PLACE ME"
				oSymbol.Delete
			End If 
		Next
	Next	
End Sub ' THis is fine due to its natural creation
Sub CollectLocations(ByRef FirstLoc As Point2d)
	
	Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
	Dim oTG As TransientGeometry = ThisApplication.TransientGeometry
	Dim i As Integer = 1
	Dim iSheet As Integer = 1
	Dim oSheet As Sheet = oDoc.Sheets.Item(1)
	
	FirstLoc = Nothing
	SecondLoc = Nothing
	ThirdLoc = Nothing 	
	FourthLoc = Nothing
	
	'goes through each sheet and sketched symbol object. Grabs the position set by the user, then passes those locations into the real notes to be added at printing. 
	
        For Each oSymbol As SketchedSymbol In oSheet.SketchedSymbols
			If oSymbol.Definition.Name = "PLACE ME" Then 
					FirstLoc = oSymbol.Position	
			End If 
		Next
		
	
	
	Logger.Info("First Location X/Y: " &amp;amp; FirstLoc.X &amp;amp; " " &amp;amp; FirstLoc.Y)

	
End Sub
Sub PlaceJobNumber()
	
	Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
	Dim oTG As TransientGeometry = ThisApplication.TransientGeometry
	Dim oTO As TransientObjects = ThisApplication.TransientObjects
	
	Dim oSheet As Sheet = oDoc.Sheets.Item(1)
	
	Dim JobNumberDef As SketchedSymbolDefinition = oDoc.SketchedSymbolDefinitions.Item("Number")
	
	Dim NumberLoc As Point2d = oTG.CreatePoint2d(30, 16)
	
	Dim UserInput As String = Last_Three_Job_No
	
	Dim PromptedStrings As String() = {UserInput}
	
	
	'For Each otextbox As Inventor.TextBox In JobNumberDef
	'	If otextbox.Text.Contains("&amp;lt;Number&amp;gt;") = True Then 
	'		otextbox.Text = UserInput
	'	End If
	'Next
	
	Dim JobNumberSym As SketchedSymbol = oSheet.SketchedSymbols.Add(JobNumberDef, NumberLoc, Nothing, 1, PromptedStrings)
End Sub
Sub JobNumberDelete()

	Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
	Dim oTG As TransientGeometry = ThisApplication.TransientGeometry
	Dim oTO As TransientObjects = ThisApplication.TransientObjects
	
	Dim oSheet As Sheet = oDoc.Sheets.Item(1)
	
	
	
	For Each oSymbol As SketchedSymbol In oSheet.SketchedSymbols
		If oSymbol.Definition.Name = "Number" = True Then 
			oSymbol.Delete
		End If
	Next
End Sub

&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 15:59:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057604#M172434</guid>
      <dc:creator>J_Pfeifer_</dc:creator>
      <dc:date>2024-10-01T15:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Size for printing from Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057665#M172437</link>
      <description>&lt;P&gt;Thank you for sharing this. I think I know enough about coding that I could tweak it and I think this code has a ton of things I could use.&lt;/P&gt;&lt;P&gt;However, I'm still a little confused at what this code is doing - it looks to me like you are hardcoding in the paper size in lines 16 through 21. What I am wanting to do is obtain the Drawing size from the idw file and then set the Paper Size to be the same for each printed drawing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 16:33:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057665#M172437</guid>
      <dc:creator>luntzj</dc:creator>
      <dc:date>2024-10-01T16:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Size for printing from Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057750#M172438</link>
      <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ah, It's inside the sheet size. You need to get to the sheet object. Once there you can do something like&amp;nbsp; 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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached links:&amp;nbsp;&lt;/P&gt;&lt;P&gt;sheet:&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=Sheet" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=Sheet&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sheet size :&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=Sheet_Size" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=Sheet_Size&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Print manager:&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=DrawingPrintManager" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=DrawingPrintManager&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Paper size:&amp;nbsp;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=PaperSizeEnum" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=PaperSizeEnum&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 17:15:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057750#M172438</guid>
      <dc:creator>J_Pfeifer_</dc:creator>
      <dc:date>2024-10-01T17:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Size for printing from Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057821#M172439</link>
      <description>&lt;P&gt;I wrote something up that's much more direct in how to do something like you asked. Note, this has not been tested but it shows the exact logic I'd use in two different ways to solve this problem. I noticed some missing or weird overlaps between the drawing sheet size and paper size. These might need to be accounted for in multiple ways. That is you may not be able to use a single method in this pasted code. It may require more than one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly, I would move the selections into a sub routine. This way you can call the sub when you need to make a new selection on or from a different sheet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub main()
	
	Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
	Dim Printmanager As PrintManager = oDoc.PrintManager
	
	Printmanager.ScaleMode = kPrintBestFitScale
	Printmanager.PrintRange = kPrintAllSheets
	Printmanager.Orientation = kLandscapeOrientation
	
	Dim Sheetsize As DrawingSheetSizeEnum = Nothing
	
	For Each osheet As Sheet In oDoc.Sheets
		If osheet IsNot Nothing Then 
			Sheetsize = osheet.Size()
			Logger.Info("Sheet object size: " &amp;amp; osheet.Size.ToString &amp;amp; " Sheet size: " &amp;amp; Sheetsize.ToString)
		End If 
	Next
	
	Dim PaperSizeSel As PaperSizeEnum = Nothing
	
	Dim osheet1 As Sheet = Nothing
	Try 'Placed into try block as this isnt the best way to get access to the sheet. Try to make it dynamic so this doesnt error. 
		osheet1 = oDoc.Sheets.Item(1)
	Catch
	End Try
	
		'Inside the webpages describing each item, you see a numeric value, for example Ddrawing size is value = 9990. You may want to experiment what you need to pass for ojects here
		'Strings, enumerators as shown, or maybe change the varable type and simplye use the values. Many options. 
		Select Case Sheetsize
		
		Case DrawingSheetSizeEnum.kDDrawingSheetSize
			
			PaperSizeSel = PaperSizeEnum.kPaperSizeDSheet
	
		Case DrawingSheetSizeEnum.kA1DrawingSheetSize
			
			PaperSizeSel = PaperSizeEnum.kPaperSizeA1
		
		Case Else 
		
			MessageBox.Show("Incorrect size selected doing manual check")
			
		End Select
				
	'Apply the changes to the print manager
	
	Printmanager.PaperSize = PaperSizeSel
		
				
				
				
	Dim sheetwidth As Double = Nothing
	Dim sheetheight As Double = Nothing

	sheetwidth = osheet1.Width
	sheetheight = osheet1.Height
	
	
	If sheetwidth = 17 * 2.54 And sheetheight = 11 * 2.54 Then 
		PaperSizeSel = PaperSizeEnum.kPaperSize11x17
	Else	
		'continue depending. 
	End If
	
	
	'or again apply the changes as needed
	
	Printmanager.PaperSize = PaperSizeSel
	

	
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you feel I fulfilled your question, a solution would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 17:50:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057821#M172439</guid>
      <dc:creator>J_Pfeifer_</dc:creator>
      <dc:date>2024-10-01T17:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Size for printing from Inventor</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057903#M172440</link>
      <description>&lt;P&gt;Thank you. Yes, I think this gives me the bits I need. I believe I'll use this in conjunction with &lt;A href="https://forums.autodesk.com/t5/inventor-programming-ilogic/batch-print-in-numerical-order/td-p/9635424" target="_blank" rel="noopener"&gt;another thread I found&lt;/A&gt; and play with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... I can't help but still be skeptical that this is the default Inventor behavior.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 18:17:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/auto-size-for-printing-from-inventor/m-p/13057903#M172440</guid>
      <dc:creator>luntzj</dc:creator>
      <dc:date>2024-10-01T18:17:26Z</dc:date>
    </item>
  </channel>
</rss>

