I am trying to create a Macro for rendering an image to file of the state the model is in after the motion study is completed. When I use the “record macro” button and choose for the “render to file” all goes fine, and the image is successfully rendered and saved on disk.
But when I then try to run the just recorded macro it comes up with the following error:
Run-time error ‘424’:
Object required
The following line is highlighted is MS visual basic
pwPhotoWorks.RenderFileFormat = PW_RenderFileFormat.pwFileFormatBMP”
So the problem is that is that I am able to successfully render to file when doing it manually, but I am not able to record a macro of it that automatically does the same. What am I doing wrong?
Note, I did add the PhotoWorks 2009 Type Library in MS visual basic à Tools->References
I have Solidworks 2009 SP4.0 and running windows XP Sp3