- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @berry.lejeune. I see something in your code example above that looks like it might need to be changed, or maybe needs an additional line of code somewhere to support. The following line of code:
oFolder = oPath & "\" & oAsmName & " PDF"
...contains the variable 'oAsmName', but that variable has not been declared or any value set to it anywhere else in that code. Should that maybe be replaced with the 'oFileName' variable, or should there be another line of code somewhere that sets its value a certain way?
Also, your code example does not allow for any 'options' to be specified about the PDF export process, so the export will most likely just attempt to use options that you used the last time you manually exported a PDF. Sometimes those options are not super important, but if they are important, or you want more consistent results, you could include a little more code in your rule to use the TranslatorAddIn resource, and its SaveCopyAs method for the exports, to enable being able to specify the options within the rule, similar to @PumaBH 's original example if you wanted.
Wesley Crihfield
(Not an Autodesk Employee)