Jump to content

Project File Path (VB)


TroutKing

Recommended Posts

AutoCAD 2000

Hello again

I have a quick question. I need to set the Project File Search Path for all drawings in a folder. I have searched here and found some code from CmdrDuh that will help set the Support Path and I am trying to adapt it to work for the Project File Search Path. Right now it is giving me a compile error. Can someone help me straighten out this code? I appreciate your help.

[font=Courier New][color=black][color=black][font=Courier New]   Dim ProjectName As String[/font][/color]
[color=black][font=Courier New]   Dim ProjectPath As String[/font][/color]
[color=black][font=Courier New]   ProjectName = "Central"[/font][/color]
[color=black][font=Courier New]   ProjectPath = "C:\BaseMaps"[/font][/color]

[color=black][font=Courier New]     Dim MySearchPath As String[/font][/color]
[color=black][font=Courier New]     MySearchPath = UCase(ThisDrawing.Application.Preferences.Files.SetProjectFilePath(ProjectName, ProjectPath))[/font][/color]

[color=black][font=Courier New]     If Not InStr(1, MySearchPath, ProjectPath) > 0 Then[/font][/color]
[color=black][font=Courier New]     ThisDrawing.Application.Preferences.Files.SupportPath = ProjectPath & ";" & MySearchPath[/font][/color]
[/color][/font]

Thank you

Mike

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...