Changing Distance Mate With Macro
Changing Distance Mate With Macro
(OP)
Hello everybody,
I did a simulation in Excel and the model in Solidworks, all I wanna do now is controling some distance mates, but, I can't set EditMate2 function to work, keeps getting error 13 (types don't match). I got this error even after I recorded the macro! (Record-> change mate value -> Stop). I'm the very basics of writing macros with SW, but not new to VBA...
Is there any light at the end of the tunnel??
Best Regards
Ps: Sorry my bad English, I'm Brazilian
I did a simulation in Excel and the model in Solidworks, all I wanna do now is controling some distance mates, but, I can't set EditMate2 function to work, keeps getting error 13 (types don't match). I got this error even after I recorded the macro! (Record-> change mate value -> Stop). I'm the very basics of writing macros with SW, but not new to VBA...
Is there any light at the end of the tunnel??
Best Regards
Ps: Sorry my bad English, I'm Brazilian






RE: Changing Distance Mate With Macro
Record a macro as you double-click the mate in the feature tree, select (double-click) the mate dimension when it becomes visible, and change the dimension. This will show you how SW macro can change a parameter like a dimension.
http://www.EsoxRepublic.com-SolidWorks API VB programming help
RE: Changing Distance Mate With Macro
Eternally grateful (ok, not that much)
As expected, that worked perfectly!
Thnaks Again