Is there a way to access the templates folder path?
C:\Users\USER\AppData\Local\Autodesk\AutoCAD 2018\R22.0\enu\Template\acadiso.dwt
Solved! Go to Solution.
Solved by _gile. Go to Solution.
Hi,
You have to use the Preferences COM object (see this topic).
To avoid referncing the COM libraries, you can use late binding with dynamic type (C#) or Object (VB).
C#
dynamic preferences = Application.Preferences;
string templatePath = preferences.Files.TemplateDWGPath;
VB
Dim preferences As Object = Application.Preferences
Dim templatePath As String = preferences.Files.TemplateDWGPath
Can't find what you're looking for? Ask the community or share your knowledge.