Trying to use SW Document Manager API.. help needed.

Hello,

Let me first clarify my problem;

I have a few SW assemblies that are original. I am trying to writea program that makes a copy of a selected assembly whilemaintaining all references. The idea is to use the SW documentmanager but I am having trouble getting this to work in VB 6.0.

I've looked at a few exampled but I get a runtime error : 429 whenusing

 

Set swDocMgr = swClassFact.GetApplication(sLicenseKey)

- Is this because I dont have a valid license key (stillwaiting for one) or is this due to some other problem I'm having?

Does anyone have another good suggestion on how to accomplish thetask? (I can't use SldWorks.CopyDocument ( sourceDoc, destDoc,fromChildren, toChildren, option) because I need to have documentsopen while running this macro)... Any help would be mostappriciated!SolidworksApi macros