You would open strFileName, not strFileConfig. To open a file, use ISldWorks::OpenDoc6 with strFileName as the first argument. Search this site for “OpenDoc6″ or look at examples in the API Help.
Ready to start learning the SolidWorks API? Sign up for FREE membership here.Keep up with new videos, macros, and training events by joining our mailing list:
how do you open the file you have selected in strfileconfig
Hi,
You would open strFileName, not strFileConfig. To open a file, use ISldWorks::OpenDoc6 with strFileName as the first argument. Search this site for “OpenDoc6″ or look at examples in the API Help.