AnsweredAssumed Answered

SolidWorks COM interfaces list from Matlab

Question asked by Alexandre Christe on Sep 29, 2016
Latest reply on Sep 29, 2016 by Artem Taturevych

I'm trying with very little success so far to use the COM method to control SolidWorks from Matlab. I found in another thread (COM classes appear private from Maltlab) this piece of code, that is perfectly working:

 

SW = actxserver('SldWorks.Application');

set(SW, 'Visible', true);

 

Part1=invoke(SW,'NewPart') %new part

SWSMan=invoke(Part1,'SketchManager')

S1=invoke(SWSMan,'InsertSketch','1') %new sketch

 

Its first line creates a link with SolidWorks, the second open a SolidWorks windows etc. I would like to know how to query the possible methods that can be 'invoked' plus help about them, i.e. about their arguments.

Outcomes