Hi all -
I have a question about using Option Explicit. I created a macro last year in SW2015 which seemed to work flawlessly. With a fresh assigned computer and SW2016, I'm trying to run the same macro but VBA is telling me that swCustomInfoText, swDocASSEMBLY, and swComponentFullyResolved are undefined variables. These aren't exactly variables, however, adding the following to the top seemed to fix 2/3 of the problems, but I'm not exactly sure how to define swCustomInfoText in this case.
Public Enum swDocumentTypes_e
swDocNONE = 0
swDocPART = 1
swDocASSEMBLY = 2
swDocDRAWING = 3
Public Enum swComponentSuppressionState_e
swComponentSuppressed = 0 ' Fully suppressed - nothing is loaded
swComponentLightweight = 1 ' Featherweight - only graphics data is loaded
swComponentFullyResolved = 2 ' Fully resolved - model is completely loaded
Any reason as to why things are suddenly different in a new environment?
Thanks in advance