AnsweredAssumed Answered

Macro Stops On Line "Get File Name"

Question asked by Thomas Morness on May 24, 2012
Latest reply on May 29, 2012 by Thomas Morness

SolidWorks SP5.0 64 edition

 

MS Office 2003

 

We created a macro within SW to create a DXF file of a flatten sheet metal part and save it to a specified drive.

 

It works on some pc’s  but not on others and are not sure why?

 

On some machines it stops at:

GetFileName = Right(pstrFile, Len(pstrFile) - InStrRev(pstrFile, "\"))

' Remove the extension from the filename

GetFileName = Left(GetFileName, Len(GetFileName) - 7)

End If

End Function

 

See attached file for macro.

Attachments

Outcomes