×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

API Call ReferenceNotFoundNotify / SetMissingReferencePathName

API Call ReferenceNotFoundNotify / SetMissingReferencePathName

API Call ReferenceNotFoundNotify / SetMissingReferencePathName

(OP)
I'm posting for our IT department, as they are trying to write a program for people in Engineering.  Below is the problem.

ReferenceNotFoundNotify / SetMissingReferencePathName
example needed. We are running SW03, SP1.

I have tried a number of different combinations of basically the same code below. The simplest form I have tried is:

Private Function swApp_ReferenceNotFoundNotify(ByVal fileName As String)
As Long
     MsgBox (fileName & "Missing!")
     swApp.SetMissingReferencePathName ("D:\SLDWKS\2\24535.SLDPRT")
     swApp_ReferenceNotFoundNotify = False
End Function

I have tried this both as an add-in macro, and as a standalone .exe. In all cases, I get the same results:
    * No Error from VB;
    * The message box appears as expected;
    * The SetMissingReferencePathName call and return value have no effect.

The D:\SLDWKS\2\24535.SLDPRT file does exist, and is actually 24535revB.SLDPRT renamed. SolidWorks is looking for 24535revB.SLDPRT, but I want to give it the new name.

Unfortunately for us, the renaming of thousands of files has already taken place - using Windows Explorer. I am hoping that I can use this technique to re-establish links to the proper files.

Thanks for taking the time to look at this.

Wanna Tip? FAQ731-376
"Probable impossibilities are to be preferred to improbable possibilities."

RE: API Call ReferenceNotFoundNotify / SetMissingReferencePathName

(OP)
Nevermind, our IT guy figured this out.  After he gets things finalized, I'll share the code.

Wanna Tip? FAQ731-376
"Probable impossibilities are to be preferred to improbable possibilities."

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources