Hey
I have a drawing of a part that I want to change the dimensions many times.
When I edit the lenght and width in the part, the drawing updates automatically.
But is it possible to update the pdf file (of drawing) automatically after editning the dimensions in part?
Or do I have to update (save as to pdf) everytime I create a new odimensions?
Solved! Go to Solution.
Solved by mrattray. Go to Solution.
You could use an iLogic rule to save as pdf every time you save the updated drawing. I don't know why you would want it to save every time you add a dimension.
If you look in the iLogic editor there is a snippet for saving out as pdf. Just edit it so that it's saving where you want with the filename and options you want, and add it to your iLogic event triggers under "Before Save".
Hi, I know this is an older post, but instead of making a new post on a topic that has been discussed a lot, I was wondering if you could share your rule that you use to create pdf's after saving/updating an idw?
What I am looking for is a simple rule that will generate a pdf in the same location as the idw being created/edited.
I have looked around in the vba editor, but can't seem to put anything together, I can't find the snippet the mrattray was talking about when he replied to your post.
thanks
Sean
Hi SeanFarr,
The snippet that mrattray was talking about can be found in the iLogic rule editor, but here is a version of it as wel. This rule gets the drawing path and saves the PDF to the same folder:
'Save PDF with options path_and_namePDF = ThisDoc.PathAndFileName(False) ' without extension PDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}") oDocument = ThisApplication.ActiveDocument oContext = ThisApplication.TransientObjects.CreateTranslationContext oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism oOptions = ThisApplication.TransientObjects.CreateNameValueMap oDataMedium = ThisApplication.TransientObjects.CreateDataMedium If PDFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then 'oOptions.Value("All_Color_AS_Black") = 0 oOptions.Value("Remove_Line_Weights") = 1 oOptions.Value("Vector_Resolution") = 400 oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets 'oOptions.Value("Custom_Begin_Sheet") = 2 'oOptions.Value("Custom_End_Sheet") = 4 End If 'Set the destination file name oDataMedium.FileName = path_and_namePDF & ".pdf" On error goto handlePDFLock 'Publish document. Call PDFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium) exit sub handlePDFLock: MessageBox.Show("PDF could not be saved, most likely someone else has it open.", _ "No PDF for you " & ThisApplication.GeneralOptions.UserName & "!") Resume Next
You can refer to this link to see how an event trigger can be added so that the rule will run when the file is saved:
http://inventortrenches.blogspot.com/2012/01/creating-basic-ilogic-rule-with-event.html
Some related links:
http://inventortrenches.blogspot.com/2012/08/disable-automatic-pdf-display.html
http://inventortrenches.blogspot.com/2011/07/ilogic-to-save-pdf-files-to-new.html
http://inventortrenches.blogspot.com/2011/02/ilogic-code-for-parts-lists-title.html
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
There is quite a few rules out there that do more than what I wanted, this is exactly what I was looking for, simple and easy.
Thanks Curtis!
Sean
Can't find what you're looking for? Ask the community or share your knowledge.