I assume you're referring to a Solidworks Simulation Study. It would go something like this
Dim Study As CosmosWorksLib.CWStudy
Set Study = StudyMngr.GetStudy(0) '0 is the first study tab, 1 the second, etc.
Study.RunAnalysis ' This is the line that actually execute the run
hope that helps.
Perfect, was missing the Cosmos. Will try it when I get home, thanks!
Missing something? i'm sorry, just a beginner. This is not working:
Private Sub studyC_Click()
Set SwApp = Application.SldWorks
Dim Study As CosmosWorksLib.CWStudy << This gives the first error.
Dim motionStudyMgr As Object
Set Part = SwApp.ActiveDoc
Set motionStudyMgr = Part.Extension.GetMotionStudyManager()
boolstatus = motionStudyMgr.ActivateMotionStudy("Circular")
boolstatus = Part.ShowConfiguration2("Circular Members")
Set Study = StudyMngr.GetStudy(3)