Hi there, is it possible to do the following, and if so, how.
I've got an API program that creates an assembly from predefined parts, and the predefined parts have mate references already built in.
For example.
Part 1 has a mate reference called "front", and a mate reference called "rear"
Part 2 has a mate reference called "front"
Part 3 has a mate reference called "rear"
If I manually create an assembly, and then insert parts 1, 2 and 3 in that order they all snap together as planned. Recording and then playing back a macro of this just dumps the second and third parts anywhere without mating them.
Is it possible using SW Student 2011-2012 to do this programatically? I've read lots of webpages and tutorials which don't seem to work, including this one:
http://files.solidworks.com/swexpress/api_tips/SWX012012_APItip.html which causes my Solidworks to crash.
Any ideas on this? It seems like such a simple thing to do, and I can do it manually in a few clicks, but am stumped how to do it via the API.
I'm using VBA by the way.
Cheers
Rory