Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: NSmitsCE

Hi @NSmitsCE.  I do not currently use 3D PDF's very often, and when I do, it is usually generated manually.  However, after reviewing your code, I saw something that may need to be fixed.  Near the end, where you are creating an array of strings to hold the DVR (DesignViewRepresentation) names, you are making the array too large by one.  Remember, that array's are Zero based (not 1 based), but the DVR's collection is 1 based (not zero based), so when setting the size of the array, you should have specified DVR's.Count - 1, not just DVRs.Count.  After that line, you are correctly starting the index at zero, which is correct, then filling in the names.  But there will be one empty slot in the array, with no String value assigned to it, the way you currently have it.  That may, or may not be causing the problems.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)