Application.DrawingPaths property (Visio)
Gets or sets the paths where Microsoft Visio looks for drawings. Read/write.
Syntax
expression.DrawingPaths
expression A variable that represents an Application object.
Return value
String
Remarks
The DrawingPaths property is set to an empty string ("") by default.
The string passed to and received from the DrawingPaths property is the same string shown in the File Locations dialog box (File tab > Options > Advanced > General > File Locations). This string is stored in the HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Visio\Application\DrawingsPath subkey.
Visio looks for drawings in all paths named in the DrawingPaths property and all the subfolders of those paths. If you pass the DrawingPaths property to the EnumDirectories method, it returns a complete list of fully qualified paths in the folders passed in.
Setting the DrawingPaths property replaces existing values for DrawingPaths in the File Locations dialog box. To retain existing values, get the existing string and then append the new file path to that string, as shown in the following code.
Application.DrawingPaths = Application.DrawingPaths & ";" & "newpath ".
Warning
Modifying the Windows registry in any manner, whether in the Registry Editor or programmatically, always carries some degree of risk. Incorrect modification can cause serious problems that may require you to reinstall your operating system. It is a good practice to always back up a computer's registry first before modifying it.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기