I'm an extreme novice in the SW API so I rely heavily on recording macros in SW and slightly customizing from there. We have a macro that we wrote to save pdf files of drawings. It worked fine in SW2007 but when we migrated to SW2009 it no longer works. Through brute force "msgBox" commands inserted in the source, I was able to determine that the "DocPathname" value in the attached script is null. Thus I am assuming there is something wrong with my declarations or something in SW2009??? The macro/script is attached. Thanks for any suggestions!SolidworksApi macros


