gp13
Mechanical
- Sep 27, 2007
- 156
I have a macro that I made in SW2008 that do not seem to work in SW2009. The problem seems to lie within the following line of code:
visibility = swApp.DocumentVisible(False, swDocPart)
When I run the macro, I get an error that says "Compile error: Expected Function or variable" and it highlights the ".DocumentVisible" part of the code.
I know it used to work, and it does not appear that the method is obsolete, but I cannot figure this out. I use the 2008 help file still, because the 2009 one does not make sense to me.
My goal is to open a part without loading it into memory to read a custom property on the "Configuration Specific" tab. I want to run this macro against about 1000 parts, so loading them into memory just to read one property is very unnecessary.
Thanks,
Matt
visibility = swApp.DocumentVisible(False, swDocPart)
When I run the macro, I get an error that says "Compile error: Expected Function or variable" and it highlights the ".DocumentVisible" part of the code.
I know it used to work, and it does not appear that the method is obsolete, but I cannot figure this out. I use the 2008 help file still, because the 2009 one does not make sense to me.
My goal is to open a part without loading it into memory to read a custom property on the "Configuration Specific" tab. I want to run this macro against about 1000 parts, so loading them into memory just to read one property is very unnecessary.
Thanks,
Matt