Macro locations
Macro locations
(OP)
Has anyone figured out how to get SW to obey the "Tools-Options-File Locations-Macros" setting? It seems to only look at the install directory no matter what path is defined in this field.
When was the last time you drove down the highway without seeing a commercial truck hauling goods?
Download nowINTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
|
RE: Macro locations
RE: Macro locations
What OS are you using?
Also, macros need to be in the install directory if you are trying to place them on the menu using "Tools --> Customize"
RE: Macro locations
RE: Macro locations
I recently acquired VB 6.0 and will be converting macros to exe's and adding them to the main menu.
RE: Macro locations
retval = SldWorks.RunMacro ( filePathName, moduleName, procedureName )
RE: Macro locations
RE: Macro locations
Option Explicit
Dim swApp As Object
Dim Part As Object
Dim MyAppID, ReturnValue
Sub main()
Set swApp = CreateObject("SldWorks.Application")
Set Part = swApp.ActiveDoc
MyAppID = Shell("\\Athena\Eng\Applications\SolidWorks\Executables\Titleblock.exe", 1)
End Sub
Bradley