Search found 6 matches
- Thu Jul 15, 2021 8:28 am
- Forum: SW General
- Topic: Unable to open SWP generated by MATLAB in Macro
- Replies: 14
- Views: 2726
Re: Unable to open SWP generated by MATLAB in Macro
I have try to run the *.swp file and notice 2 issue: 1. stp file is not generated 2. document is not closed I made some edit to the swb file to resolve the issue. See following code I try running it as swb directly and it is working properly. Copy the code → paste it in notepad → save as *.swb Hi Z...
- Mon Jul 12, 2021 9:18 pm
- Forum: SW General
- Topic: Unable to open SWP generated by MATLAB in Macro
- Replies: 14
- Views: 2726
Re: Unable to open SWP generated by MATLAB in Macro
Could you share your swb file? Without looking at the file it is hard to troubleshoot. Cheers Here are two files. "Solidworks Macro.swp" is the original macro file recorded by Solidworks. "Solidworks automation.swb" is the automation script that I created from MATLAB to try to r...
- Mon Jul 12, 2021 11:21 am
- Forum: SW General
- Topic: Unable to open SWP generated by MATLAB in Macro
- Replies: 14
- Views: 2726
Re: Unable to open SWP generated by MATLAB in Macro
I am not sure if i understand correctly but... If you are generating the automation script using matlab, you should write/save it with *.swb extension instead of *.swp. You will be able to directly run the *.swb in SOLIDWORKS if the macro only use SOLIDWORKS type library. In fact, when you try edit...
- Mon Jul 12, 2021 11:15 am
- Forum: SW General
- Topic: Unable to open SWP generated by MATLAB in Macro
- Replies: 14
- Views: 2726
Re: Unable to open SWP generated by MATLAB in Macro
I am not sure if i understand correctly but... If you are generating the automation script using matlab, you should write/save it with *.swb extension instead of *.swp. You will be able to directly run the *.swb in SOLIDWORKS if the macro only use SOLIDWORKS type library. In fact, when you try edit...
- Tue Jul 06, 2021 10:05 am
- Forum: SW General
- Topic: Unable to open SWP generated by MATLAB in Macro
- Replies: 14
- Views: 2726
Re: Unable to open SWP generated by MATLAB in Macro
In other words, even if I generate automation scripts, which I capture by macro recording, by MATLAB (Part A), they still need to be manually loaded in SolidWorks (Microsoft Visual Basic for Application) to generate things like reference libraries (Part B)? Seems like I am missing Part B. When I tri...
- Mon Jul 05, 2021 10:33 am
- Forum: SW General
- Topic: Unable to open SWP generated by MATLAB in Macro
- Replies: 14
- Views: 2726
Unable to open SWP generated by MATLAB in Macro
Hello guys, I used MATLAB to generate a batch of swp files that help me build models automatically in SolidWorks 2020. But none of them can be opened with SolidWorks Macro. However, if I create a new Macro in SolidWorks and simply paste the script copied from one of the generated swp files and run i...