Matlab-SolidWorks interaction API
Matlab-SolidWorks interaction API
(OP)
I've been trying to use Solidlab matlab routines that i downloaded from here, without success. According to the description it is supposed to work on windows XP+Matlab+SolidWorks 2006 SP4.1. I've tried with Matlab 6.5 & 7 and SolidWorks 2011 & 2006 SP0.0-instead of SP4.1. All my tryouts came across "Run-time error '91':Object variable or With block variable not set" errors after initializating and opening the test model! Is there any idea of how to transcend these problems, or any other priceless equivalent API?






RE: Matlab-SolidWorks interaction API
SW makes changes to the API from year to year. You might have to go through line by line and check that.
I noticed that a call to preferences was in the VB. Preferences calls have made some changes over the year.
TOP
CSWP, BSSE
www.engtran.com www.niswug.org
www.linkedin.com/in/engineeringtransport
Phenom IIx6 1100T = 8GB = FX1400 = XP64SP2 = SW2009SP3
"Node news is good news."
RE: Matlab-SolidWorks interaction API
-handleman, CSWP (The new, easy test)
RE: Matlab-SolidWorks interaction API
Concerning matlab edition, I now think that it's not the source of the whole problem weather I use 6.5 or 7, right?
Secondly, i want to mention that none of the "solidlab" files seems to be recognized by the macro editor, as they are neither .swp nor .swb , but .bas .vbp .vbw etc. Also, the VBA editor that I use [visual studio 6] doesn't have references option under Tools menu.
So what I have to do is to give commands in matlab and check line by line the execution of the code, hoping to find any syntax error of a function or a value that corrupts the debugging process.
Could it be that simple?
RE: Matlab-SolidWorks interaction API
I'm wondering if this will work with my Matlab work-a-likes.
BTW, Krishnan Suresh' website is pretty cool stuff.
TOP
CSWP, BSSE
www.engtran.com www.niswug.org
www.linkedin.com/in/engineeringtransport
Phenom IIx6 1100T = 8GB = FX1400 = XP64SP2 = SW2009SP3
"Node news is good news."