Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

API Call: Set Path for Ref Docs? 1

Status
Not open for further replies.

MadMango

Mechanical
May 1, 2001
6,992
I'm wondering if all you API Gurus know if there is an API call that will set the path for Reference Documents?

Before you get too deep, I'm posting this on behalf of our IT Dept. They are experimenting with something, and they programmer knows VB, just not SW API. I'm completely clueless. [clown]

Ray Reynolds
Senior Designer
Read: faq731-376
"Probable impossibilities are to be preferred to improbable possibilities."
 
Replies continue below

Recommended for you

No problem. This is in a macro, but can be called from VB.
Code:
Option Explicit

Const swFileLocationsDocuments = 1
Dim swApp As Object

Sub main()
    Set swApp = Application.SldWorks
    Call swApp.SetUserPreferenceStringValue(swFileLocationsDocuments, "C:\TEST")
End Sub

DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
 
our programmer says that's perfect. Thanks dsi.

Ray Reynolds
Senior Designer
Read: faq731-376
"Probable impossibilities are to be preferred to improbable possibilities."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor