<?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: (iLogic) How to insert a watermark into .idw exported PDF in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/11356503#M67308</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;Sounds good and thank you, I am getting out of here too. I'm good with either an alternate border or a stamp. Only reason I would go with the border is because I can place the information consistently across multiple drawings where with a stamp the user would have to manually place the stamp on the drawing in a location that doesn't interfere with the actual drawing. If we can get it to do all of this with the exception of the vault stuff that would be great. Vault can be figured out later on.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2022 19:09:01 GMT</pubDate>
    <dc:creator>Jason.Rugg</dc:creator>
    <dc:date>2022-08-12T19:09:01Z</dc:date>
    <item>
      <title>(iLogic) How to insert a watermark into .idw exported PDF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/9276586#M67300</link>
      <description>&lt;P&gt;Hello all!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I've been around this forum I learned alot, and I want to give back something.&lt;/P&gt;&lt;P&gt;I'll show you how to insert a watermark in a PDF file, when exporting from a drawing.&lt;/P&gt;&lt;P&gt;Since Inventor doesn't have a native tool, this is clearly a &lt;STRONG&gt;workaround&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF6600"&gt;I'm assuming you already have an iLogic code to export a sheet to PDF.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this you will need:&lt;/P&gt;&lt;P&gt;- Inventor;&lt;/P&gt;&lt;P&gt;- Image editor program (GIMP, PhotoShop, etc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="PDFConfidential.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/721794i33085654BE955AA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PDFConfidential.png" alt="PDFConfidential.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is a screenshot from the exported PDF file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Size, color, letter type, etc..., can be changed as you wish, because we will use a .PNG image with transparent background.&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;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&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;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;Create an image on your image editor program, with the size of the sheet you use and transparent background. (A3 = 1684×1191 pixels);&lt;/LI&gt;&lt;LI&gt;Create text, create images or insert them. This image will be layered on top of your drawing;&lt;/LI&gt;&lt;LI&gt;Important: Set the opacity of your image/text to around 5%;&lt;/LI&gt;&lt;LI&gt;Export to .png while maintaining the transparent background;&lt;/LI&gt;&lt;LI&gt;On you Inventor make a copy of your border and edit the copy;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Borders.png" style="width: 285px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/721808i5DCB907C65024392/image-dimensions/285x212?v=v2" width="285" height="212" role="button" title="Borders.png" alt="Borders.png" /&gt;&lt;/span&gt;I have the "A2_Controlar_template_border", and made a copy and renamed it to "A2_Watermark".&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;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;6. Edit this copy and add the image you created,&amp;nbsp;dimensionate it and bring it forward;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Insert_Image.png" style="width: 520px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/721809i01DC3C9647B0EF50/image-dimensions/520x56?v=v2" width="520" height="56" role="button" title="Insert_Image.png" alt="Insert_Image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Image.png" style="width: 520px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/721811i7C1D52BF8303F3C1/image-dimensions/520x368?v=v2" width="520" height="368" role="button" title="Image.png" alt="Image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can send backwards, that's up to personal taste.&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;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;7. Once you have both borders, we can proceed to the iLogic code, wich is pretty simple:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim oDrawDoc As DrawingDocument = ThisApplication.ActiveDocument
Dim oSheet As Sheet = oDrawDoc.ActiveSheet
Dim oBorder As Border = oSheet.Border

' Check sheet size
If ActiveSheet.Size = "A2" Then

	'['Insert A2 Watermark
If ActiveSheet.Border = "&lt;FONT color="#339966"&gt;A2_Border&lt;/FONT&gt;" Then
	oBorder.Delete
	ActiveSheet.Border = "A2_Watermark"
End If
	']
	
	'['Export PDF
	&lt;FONT color="#FF0000"&gt;'Insert the iLogic you use to export to PDF&lt;/FONT&gt;
	']
	
	'['Remove A2 Watermark
	oBorder.Delete
	ActiveSheet.Border = "&lt;FONT color="#339966"&gt;A2_Border&lt;/FONT&gt;"
	']

	Exit Sub
End If


'Check sheet size
If ActiveSheet.Size = "A3" Then

	'['Insert A3 Watermark
If ActiveSheet.Border = "&lt;FONT color="#339966"&gt;A3_Border&lt;/FONT&gt;" Then
	oBorder.Delete
	ActiveSheet.Border = "&lt;FONT color="#00CCFF"&gt;A3_Watermark&lt;/FONT&gt;"
End If
	']

	'['Export PDF
	&lt;FONT color="#FF0000"&gt;'Insert the iLogic you use to export to PDF&lt;/FONT&gt;
	']

	'['Remove A3 Watermark
	oBorder.Delete
	ActiveSheet.Border = "&lt;FONT color="#339966"&gt;A3_Border&lt;/FONT&gt;"
	']
	
	Exit Sub
End If


MessageBox.Show("Sheet size must be A2 or A3!")',"Sheet size error:",vbOKOnly)
Exit Sub&lt;/PRE&gt;&lt;P&gt;Change "&lt;FONT color="#339966"&gt;A2_Border&lt;/FONT&gt;" and "&lt;FONT color="#339966"&gt;A3_Border&lt;/FONT&gt;" to the name of your border, the one &lt;STRONG&gt;without&lt;/STRONG&gt; watermark&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Change "&lt;FONT color="#00CCFF"&gt;A2_Watermark&lt;/FONT&gt;" and "&lt;FONT color="#00CCFF"&gt;A3_Watermark&lt;/FONT&gt;" to the name of your border &lt;STRONG&gt;with&lt;/STRONG&gt; watermark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And that's it!&lt;/P&gt;&lt;P&gt;You can use the drawing sheet without any image or text in front.&lt;/P&gt;&lt;P&gt;But every time you run the rule to export, it will insert the new border, export and then restore the normal one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Notes:&lt;/P&gt;&lt;P&gt;- This is a workaround that really works for me, but others might export using different methods.&lt;/P&gt;&lt;P&gt;- My way of exporting to PDF is very specific, hence why my code isn't there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 11:58:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/9276586#M67300</guid>
      <dc:creator>JoãoASilva</dc:creator>
      <dc:date>2020-01-27T11:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: (iLogic) How to insert a watermark into .idw exported PDF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/9289190#M67301</link>
      <description>&lt;P&gt;First of all, thanks for posting your code. That's pretty cool.&lt;/P&gt;&lt;P&gt;You should probably post something like (a direct answer to an unasked question) this in your Contributions section, under your Public Profile.&lt;/P&gt;&lt;P&gt;This area is mostly for asking questions, asking for help, etc, that require others to respond to.&lt;/P&gt;&lt;P&gt;You should probably mark your original post as 'Accept As Solution', or post a second time and mark it as the solution to remove it from the unanswered questions list.&lt;/P&gt;&lt;P&gt;Just a thought.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 19:21:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/9289190#M67301</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-01-31T19:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: (iLogic) How to insert a watermark into .idw exported PDF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/9290535#M67302</link>
      <description>&lt;P&gt;I have made a similar code..my code can print an hole project to PDF. I could not get it transpar.... but I did make a picture and remove all the fill inside&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anmærkning 2020-02-01 220100.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/724720i5CF49FEAE6F2A543/image-size/large?v=v2&amp;amp;px=999" role="button" title="Anmærkning 2020-02-01 220100.png" alt="Anmærkning 2020-02-01 220100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then my program Will simple open all document add the Watermark.. and Print the PDF to an time(day) stamp folder&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even make the program enble to continue there it left off ... if inventor crashes.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2020 21:05:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/9290535#M67302</guid>
      <dc:creator>Darkforce_the_ilogic_guy</dc:creator>
      <dc:date>2020-02-01T21:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: (iLogic) How to insert a watermark into .idw exported PDF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/9984648#M67303</link>
      <description>&lt;P&gt;Just to close an open thread.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 14:09:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/9984648#M67303</guid>
      <dc:creator>JoãoASilva</dc:creator>
      <dc:date>2021-01-07T14:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: (iLogic) How to insert a watermark into .idw exported PDF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/11356123#M67304</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6201683"&gt;@JoãoASilva&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;Trying to use this code but I dont use A2 or A3 psheet sizes, I use a custom size, so can the sheet check be removed or modified to accommodate "Custom Size (inches)"?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 15:17:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/11356123#M67304</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2022-08-12T15:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: (iLogic) How to insert a watermark into .idw exported PDF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/11356422#M67305</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2077876"&gt;@Jason.Rugg&lt;/a&gt;.&amp;nbsp; Here is something I just threw together that may help you out with that.&amp;nbsp; It is a bit more complicated looking, but includes extra error proofing code and separates the routines out into their own Subs to make it more modular.&amp;nbsp; I also did not include the actual code for exporting the drawing to a PDF, because there are tons of examples of that code here on the forums, and everyone seems to have their own custom needs in that area.&amp;nbsp; There are multiple ways to do the process of changing the borders out, then back again, but in my example I am just using a separated out sub routine which asks for the DrawingDocument you want it to target and the name of the BorderDefinition you want to change all the sheets to, as input variables.&amp;nbsp; You might also be able to use a Transaction to contain all the initial border changes, then after the PDF export, you may be able to UNDO the border changes.&amp;nbsp; Not sure if that would work with the PDF export in there after that event, and that soon afterwards though.&lt;/P&gt;
&lt;P&gt;Here is what I have right now:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub Main
	If ThisApplication.ActiveDocumentType &amp;lt;&amp;gt; DocumentTypeEnum.kDrawingDocumentObject Then
		MsgBox("A Drawing Document must be active for this rule (" &amp;amp; iLogicVb.RuleName &amp;amp; ") to work. Exiting.", vbCritical, "iLogic")
		Exit Sub
	End If
	Dim oDDoc As DrawingDocument = ThisApplication.ActiveDocument
	Dim oOriginalActiveSheet As Sheet = oDDoc.ActiveSheet
	'&amp;lt;&amp;lt;&amp;lt;&amp;lt; EDIT NAMES TO MATCH YOUR SITUATION &amp;gt;&amp;gt;&amp;gt;&amp;gt;
	Dim oStandardBorderDefName As String = "Border Without Watermark"
	Dim oWatermarkBorderDefName As String = "Border With Watermark"
	'switch all sheet borders to one WITH Watermark
	ChangeAllBorders(oDDoc, oWatermarkBorderDefName)
	'export to PDF
	'&amp;lt;&amp;lt;&amp;lt;&amp;lt; EDIT PDF PATH &amp;amp; FILE NAME TO SUIT YOUR NEEDS &amp;gt;&amp;gt;&amp;gt;&amp;gt;
	Dim oPDF_Folder As String = "C:\Temp\PDFs\"
	Dim oPDF_FileName As String = System.IO.Path.GetFileNameWithoutExtension(oDDoc.FullFileName)
	Dim oPDF_FullFileName As String = oPDF_Folder &amp;amp; oPDF_FileName &amp;amp; ".pdf"
	ExportToPDF(oDDoc, oPDF_FullFileName)
	'now change all sheet borders back to their original borders
	ChangeAllBorders(oDDoc, oStandardBorderDefName)
	MsgBox("Done switching Borders &amp;amp; Exporting to PDF.",,"")
End Sub

Sub ChangeAllBorders(oDrawDoc As DrawingDocument, oBorderDefName As String)
	Dim oBorderDef As BorderDefinition = Nothing
	Try
		oBorderDef = oDrawDoc.BorderDefinitions.Item(oBorderDefName)
	Catch
		MsgBox("Could not find a BorderDefinition named '" &amp;amp; oBorderDefName &amp;amp; "'.", vbCritical, "")
		'Logger.Error("Could not find a BorderDefinition named '" &amp;amp; oBorderDefName &amp;amp; "'.")
		Exit Sub
	End Try
	'switch all sheet borders to one WITH Watermark
	Dim oASheet As Sheet = oDrawDoc.ActiveSheet
	For Each oSheet As Sheet In oDrawDoc.Sheets
		oSheet.Activate
		If oSheet.Border IsNot Nothing Then
			If oSheet.Border.Name &amp;lt;&amp;gt; oBorderDefName Then
				oSheet.Border.Delete
				oSheet.AddBorder(oBorderDef) 'option to input prompt strings
			End If
		Else 'oSheet.Border Is Nothing - could just do nothing here too
			oSheet.AddBorder(oBorderDef) 'option to input prompt strings
		End If
	Next
	oASheet.Activate
End Sub

Sub ExportToPDF(oDrawDoc As DrawingDocument, oNewFullFileName As String)
	'&amp;lt;&amp;lt;&amp;lt;&amp;lt; YOUR CODE FOR EXPORTING A DRAWING TO PDF HERE &amp;gt;&amp;gt;&amp;gt;&amp;gt;
End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 12 Aug 2022 18:13:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/11356422#M67305</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-08-12T18:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: (iLogic) How to insert a watermark into .idw exported PDF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/11356474#M67306</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;Thank you for your help, I will try this out later today or next week. Ultimately what I am trying to do is capture a snapshot of our drawing release process. Eventually I would like to have a single click button that once pressed will either swap out the border for a nearly identical border with "approved for fab" and some prompted entry text for signature, date, time, job # and rev. or just have the code place a stamp on the drawing with the same info. After that info is filled out the code would automatically print a hard copy and make a pdf saved next to the parent file (if we can get this far the next step would be to have that pdf actually saved in a sub folder in the parent file directory and checked into vault) Once the pdf file is created and saved it would revert the actual inventor drawing back to its original state without the "approved for fab" info on it and save and check in the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To complicate it a little more, when entering the "approved for fab" info, if a rev is entered that is anything other than a blank or a "0" it would put yet a different border or additional static stamp on the drawing that basically says its a revised drawing and previous revs (printed hard copies) need to be destroyed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is something like this doable? Any tools/code out there already that would accomplish this? To me this seems pretty complicated but I'm guessing it's really not. If you think you can help me out with this feel free to send me a pm and maybe I can share some of my files and existing code with you. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 18:46:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/11356474#M67306</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2022-08-12T18:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: (iLogic) How to insert a watermark into .idw exported PDF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/11356493#M67307</link>
      <description>&lt;P&gt;I'm about to leave for the weekend, so no time to write more code right now.&amp;nbsp; The alternate border or stamp part sounds doable.&amp;nbsp; I'm thinking maybe a SketchedSymbol if you go the 'stamp' route, because those can contain prompted entries too.&amp;nbsp; And of course the PDF export part sounds OK.&amp;nbsp; But I have not used Vault yet, so I won't be able to help with coding that part of the plan yet.&amp;nbsp; (We have been talking about getting Vault for years,&amp;nbsp; and plans are in place, but still not implemented.&amp;nbsp; Corporate red tape, among other stuff.)&amp;nbsp; Have a good one.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 19:02:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/11356493#M67307</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-08-12T19:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: (iLogic) How to insert a watermark into .idw exported PDF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/11356503#M67308</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;Sounds good and thank you, I am getting out of here too. I'm good with either an alternate border or a stamp. Only reason I would go with the border is because I can place the information consistently across multiple drawings where with a stamp the user would have to manually place the stamp on the drawing in a location that doesn't interfere with the actual drawing. If we can get it to do all of this with the exception of the vault stuff that would be great. Vault can be figured out later on.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 19:09:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/11356503#M67308</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2022-08-12T19:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: (iLogic) How to insert a watermark into .idw exported PDF</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/11376521#M67309</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;Been trying to work with the ilogic you provided a couple of weeks ago and I'm failing to make it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My codes below that I currently use to make pdf's and prints.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;STRONG&gt;Here is my code currently for pdf's:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;
	
&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Custom"&lt;/SPAN&gt;, &lt;SPAN&gt;"PlotDate&amp;amp;Time"&lt;/SPAN&gt;) = &lt;SPAN&gt;Now&lt;/SPAN&gt;.&lt;SPAN&gt;ToString&lt;/SPAN&gt;()	
	
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrgDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN&gt;' Set reference to drawing print manager' DrawingPrintManager has more options than PrintManager' as it's specific to drawing document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingPrintManager&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt; = &lt;SPAN&gt;oDrgDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PrintManager&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;pdfname&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FileName&lt;/SPAN&gt;(&lt;SPAN&gt;False&lt;/SPAN&gt;)
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;filePath&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Path&lt;/SPAN&gt;
&lt;SPAN&gt;' Set the printer name' comment this line to use default printer or assign another one&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;Printer&lt;/SPAN&gt; = &lt;SPAN&gt;"Microsoft Print To PDF"&lt;/SPAN&gt;

&lt;SPAN&gt;'Set the paper size , scale and orientation&lt;/SPAN&gt;
&lt;SPAN&gt;'oDrgPrintMgr.ScaleMode = PrintScaleModeEnum.kPrintCustomScale&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;ScaleMode&lt;/SPAN&gt; = &lt;SPAN&gt;PrintScaleModeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPrintBestFitScale&lt;/SPAN&gt;
&lt;SPAN&gt;'oDrgPrintMgr.PaperSize = PaperSizeEnum.kPaperSizeLedger&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;PaperSize&lt;/SPAN&gt; = &lt;SPAN&gt;PaperSizeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPaperSize11x17&lt;/SPAN&gt;
&lt;SPAN&gt;'oDrgPrintMgr.PaperSize = 14338&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;PrintRange&lt;/SPAN&gt; = &lt;SPAN&gt;PrintRangeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPrintAllSheets&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;Orientation&lt;/SPAN&gt; = &lt;SPAN&gt;kLandscapeOrientation&lt;/SPAN&gt;
&lt;SPAN&gt;'oDrgPrintMgr.PaperSource = 2&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;AllColorsAsBlack&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;pdfFileName&lt;/SPAN&gt; = &lt;SPAN&gt;Path&lt;/SPAN&gt;.&lt;SPAN&gt;Combine&lt;/SPAN&gt;(&lt;SPAN&gt;filePath&lt;/SPAN&gt;, &lt;SPAN&gt;pdfname&lt;/SPAN&gt; + &lt;SPAN&gt;".pdf"&lt;/SPAN&gt;)
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Not&lt;/SPAN&gt; &lt;SPAN&gt;CanSaveToFile&lt;/SPAN&gt;(&lt;SPAN&gt;pdfFileName&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Folder or file is read only"&lt;/SPAN&gt;, &lt;SPAN&gt;"Save PDF"&lt;/SPAN&gt;)

	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFileDlg&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;FileDialog&lt;/SPAN&gt; 
	&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CreateFileDialog&lt;/SPAN&gt;(&lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;)
	
	&lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;.&lt;SPAN&gt;FilterIndex&lt;/SPAN&gt; = 1 

  	&lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;.&lt;SPAN&gt;DialogTitle&lt;/SPAN&gt; = &lt;SPAN&gt;"Save file"&lt;/SPAN&gt; 

  	&lt;SPAN&gt;'oFileDlg.InitialDirectory = &lt;/SPAN&gt;
  	&lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;.&lt;SPAN&gt;CancelError&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;  
	
	&lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;.&lt;SPAN&gt;FileName&lt;/SPAN&gt; = &lt;SPAN&gt;pdfname&lt;/SPAN&gt; + &lt;SPAN&gt;".pdf"&lt;/SPAN&gt;
 	&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;.&lt;SPAN&gt;ShowSave&lt;/SPAN&gt;() 
	
	&lt;SPAN&gt;pdfFileName&lt;/SPAN&gt; = &lt;SPAN&gt;oFileDlg&lt;/SPAN&gt;.&lt;SPAN&gt;FileName&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;.&lt;SPAN&gt;IsNullOrEmpty&lt;/SPAN&gt;(&lt;SPAN&gt;pdfFileName&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt; 
		&lt;SPAN&gt;Logger&lt;/SPAN&gt;.&lt;SPAN&gt;Info&lt;/SPAN&gt;(&lt;SPAN&gt;"No file specified"&lt;/SPAN&gt;)
		&lt;SPAN&gt;Return&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;oDrgDoc&lt;/SPAN&gt;.&lt;SPAN&gt;SaveAs&lt;/SPAN&gt;(&lt;SPAN&gt;pdfFileName&lt;/SPAN&gt;, &lt;SPAN&gt;True&lt;/SPAN&gt;) 	

&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

&lt;SPAN&gt;Function&lt;/SPAN&gt; &lt;SPAN&gt;CanSaveToFile&lt;/SPAN&gt;(&lt;SPAN&gt;fileName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;)
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;fileInfo&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;FileInfo&lt;/SPAN&gt;(&lt;SPAN&gt;fileName&lt;/SPAN&gt;)
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;fileInfo&lt;/SPAN&gt;.&lt;SPAN&gt;Exists&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;fileInfo&lt;/SPAN&gt;.&lt;SPAN&gt;IsReadOnly&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;False&lt;/SPAN&gt;
		&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;FileIsLocked&lt;/SPAN&gt;(&lt;SPAN&gt;fileInfo&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;' We can't write to it. It might be open in Adobe Acrobat Reader&lt;/SPAN&gt;
			&lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;False&lt;/SPAN&gt;
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	
	&lt;SPAN&gt;' make sure we can write to the directory&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;folderName&lt;/SPAN&gt; = &lt;SPAN&gt;Path&lt;/SPAN&gt;.&lt;SPAN&gt;GetDirectoryName&lt;/SPAN&gt;(&lt;SPAN&gt;fileName&lt;/SPAN&gt;)
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;tempName&lt;/SPAN&gt; = &lt;SPAN&gt;Path&lt;/SPAN&gt;.&lt;SPAN&gt;Combine&lt;/SPAN&gt;(&lt;SPAN&gt;folderName&lt;/SPAN&gt;, &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Guid&lt;/SPAN&gt;.&lt;SPAN&gt;NewGuid&lt;/SPAN&gt;().&lt;SPAN&gt;ToString&lt;/SPAN&gt;() + &lt;SPAN&gt;".txt"&lt;/SPAN&gt;)
	&lt;SPAN&gt;Try&lt;/SPAN&gt;
		&lt;SPAN&gt;File&lt;/SPAN&gt;.&lt;SPAN&gt;WriteAllText&lt;/SPAN&gt;(&lt;SPAN&gt;tempName&lt;/SPAN&gt;, &lt;SPAN&gt;"test"&lt;/SPAN&gt;)
		&lt;SPAN&gt;File&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;(&lt;SPAN&gt;tempName&lt;/SPAN&gt;)
	&lt;SPAN&gt;Catch&lt;/SPAN&gt;
		&lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;False&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
		
	&lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;		
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Function&lt;/SPAN&gt;

&lt;SPAN&gt;' from https://stackoverflow.com/questions/876473/is-there-a-way-to-check-if-a-file-is-in-use&lt;/SPAN&gt;
&lt;SPAN&gt;Function&lt;/SPAN&gt; &lt;SPAN&gt;FileIsLocked&lt;/SPAN&gt;(&lt;SPAN&gt;fileInfo&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;FileInfo&lt;/SPAN&gt;) &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Boolean&lt;/SPAN&gt;

    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;stream&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;FileStream&lt;/SPAN&gt; = &lt;SPAN&gt;Nothing&lt;/SPAN&gt;

    &lt;SPAN&gt;Try&lt;/SPAN&gt;
        &lt;SPAN&gt;stream&lt;/SPAN&gt; = &lt;SPAN&gt;fileInfo&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;(&lt;SPAN&gt;FileMode&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;, &lt;SPAN&gt;FileAccess&lt;/SPAN&gt;.&lt;SPAN&gt;Read&lt;/SPAN&gt;, &lt;SPAN&gt;FileShare&lt;/SPAN&gt;.&lt;SPAN&gt;None&lt;/SPAN&gt;)
    &lt;SPAN&gt;Catch&lt;/SPAN&gt; &lt;SPAN&gt;ex&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;IOException&lt;/SPAN&gt;
        &lt;SPAN&gt;'the file is unavailable because it is:&lt;/SPAN&gt;
        &lt;SPAN&gt;'still being written To&lt;/SPAN&gt;
        &lt;SPAN&gt;'or being processed By another thread&lt;/SPAN&gt;
        &lt;SPAN&gt;'or does Not exist (has already been processed)&lt;/SPAN&gt;
        &lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;True&lt;/SPAN&gt;
    &lt;SPAN&gt;Finally&lt;/SPAN&gt;
        &lt;SPAN&gt;If&lt;/SPAN&gt; (&lt;SPAN&gt;stream&lt;/SPAN&gt; &lt;SPAN&gt;IsNot&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;
            &lt;SPAN&gt;stream&lt;/SPAN&gt;.&lt;SPAN&gt;Close&lt;/SPAN&gt;()
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
		
    &lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Function&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;And here is my code currently for printing:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;'check for custom iprops and add them if not found&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;propertyName1&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"CurrentUser"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;propertyName2&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"PlotDate&amp;amp;Time"&lt;/SPAN&gt;

&lt;SPAN&gt;customPropertySet&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt; _
(&lt;SPAN&gt;"Inventor User Defined Properties"&lt;/SPAN&gt;)

&lt;SPAN&gt;Try&lt;/SPAN&gt;
          &lt;SPAN&gt;prop&lt;/SPAN&gt; = &lt;SPAN&gt;customPropertySet&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;propertyName1&lt;/SPAN&gt;)
          &lt;SPAN&gt;prop&lt;/SPAN&gt; = &lt;SPAN&gt;customPropertySet&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;propertyName2&lt;/SPAN&gt;)
&lt;SPAN&gt;Catch&lt;/SPAN&gt;
      &lt;SPAN&gt;' Assume error means not found&lt;/SPAN&gt;
            &lt;SPAN&gt;customPropertySet&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;""&lt;/SPAN&gt;, &lt;SPAN&gt;propertyName1&lt;/SPAN&gt;)
          &lt;SPAN&gt;customPropertySet&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;""&lt;/SPAN&gt;, &lt;SPAN&gt;propertyName2&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;

&lt;SPAN&gt;'output the custom iproperties and update the file&lt;/SPAN&gt;
&lt;SPAN&gt;RuleParametersOutput&lt;/SPAN&gt;()
&lt;SPAN&gt;InventorVb&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentUpdate&lt;/SPAN&gt;()


&lt;SPAN&gt;'Plot Stamp&lt;/SPAN&gt;
&lt;SPAN&gt;'Applies current filename &amp;amp; path, Date &amp;amp; time, and current user stamp to edge of border to be printed with the drawing&lt;/SPAN&gt;
&lt;SPAN&gt;'[&lt;/SPAN&gt;
&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Custom"&lt;/SPAN&gt;, &lt;SPAN&gt;"PlotDate&amp;amp;Time"&lt;/SPAN&gt;) = &lt;SPAN&gt;Now&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;" "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;Time&lt;/SPAN&gt;
&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Custom"&lt;/SPAN&gt;, &lt;SPAN&gt;"CurrentUser"&lt;/SPAN&gt;) = &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Security&lt;/SPAN&gt;.&lt;SPAN&gt;Principal&lt;/SPAN&gt;.&lt;SPAN&gt;WindowsIdentity&lt;/SPAN&gt;.&lt;SPAN&gt;GetCurrent&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;

&lt;SPAN&gt;InventorVb&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentUpdate&lt;/SPAN&gt;()

&lt;SPAN&gt;'Dim oCtrlDef As ControlDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;'oCtrlDef = ThisApplication.CommandManager.ControlDefinitions.Item("AppFilePrintCmd")&lt;/SPAN&gt;
&lt;SPAN&gt;'oCtrlDef.Execute&lt;/SPAN&gt;
&lt;SPAN&gt;']&lt;/SPAN&gt;

&lt;SPAN&gt;'Print Setup&lt;/SPAN&gt;
&lt;SPAN&gt;'[&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrgDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN&gt;' Set reference to drawing print manager' DrawingPrintManager has more options than PrintManager' as it's specific to drawing document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingPrintManager&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt; = &lt;SPAN&gt;oDrgDoc&lt;/SPAN&gt;.&lt;SPAN&gt;PrintManager&lt;/SPAN&gt;
&lt;SPAN&gt;' Set the printer name' comment this line to use default printer or assign another one&lt;/SPAN&gt;
&lt;SPAN&gt;'oDrgPrintMgr.Printer = "\\kcidc2012\EngineeringSharp_Ledger"&lt;/SPAN&gt;
&lt;SPAN&gt;'oDrgPrintMgr.Printer = "EngineeringSharp_Ledger"&lt;/SPAN&gt;
&lt;SPAN&gt;'oDrgPrintMgr.Printer = "\\kcidc2012\EngineeringSharp_Ledger_Color"&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;Printer&lt;/SPAN&gt; = &lt;SPAN&gt;"\\kcipdc2019\Engineering_Ledger_Color"&lt;/SPAN&gt;

&lt;SPAN&gt;'Set the paper size , scale and orientation&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;ScaleMode&lt;/SPAN&gt; = &lt;SPAN&gt;kCustomScale&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;ScaleMode&lt;/SPAN&gt; = &lt;SPAN&gt;PrintScaleModeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPrintBestFitScale&lt;/SPAN&gt;
&lt;SPAN&gt;'oDrgPrintMgr.PaperSize = PaperSizeEnum.kPaperSizeLedger&lt;/SPAN&gt;
&lt;SPAN&gt;'oDrgPrintMgr.PaperSize = PaperSizeEnum.14338&lt;/SPAN&gt;
&lt;SPAN&gt;'oDrgPrintMgr.PaperSize = PaperSizeLedger&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;PrintRange&lt;/SPAN&gt; = &lt;SPAN&gt;kPrintCurrentSheet&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;Orientation&lt;/SPAN&gt; = &lt;SPAN&gt;kLandscapeOrientation&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;PaperSource&lt;/SPAN&gt; = 2
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;AllColorsAsBlack&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
&lt;SPAN&gt;oDrgPrintMgr&lt;/SPAN&gt;.&lt;SPAN&gt;SubmitPrint&lt;/SPAN&gt;
&lt;SPAN&gt;']&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 19:27:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-how-to-insert-a-watermark-into-idw-exported-pdf/m-p/11376521#M67309</guid>
      <dc:creator>Jason.Rugg</dc:creator>
      <dc:date>2022-08-23T19:27:33Z</dc:date>
    </item>
  </channel>
</rss>

