AnsweredAssumed Answered

run function in another .swp file

Question asked by John Miko on Nov 20, 2017
Latest reply on Nov 22, 2017 by Matthew Cempa

I want to create a folder with commonly used functions so I don't have to copy them into each module.

Using RunMacro2 (2012 SOLIDWORKS API Help - RunMacro2 Method (ISldWorks) ) I can run a sub in another .swp file, but I don't see how to specify an input variable for a function and get the return value.

Am I thinking about this right? Or is there another convention in solidworks vba to do this, such as importing a .swp file into another .swp file?