.NET

Reply
Contributor
karea
Posts: 25
Registered: ‎01-27-2011
Message 1 of 5 (765 Views)
Accepted Solution

How to get the "Support File Search Path" with code?

765 Views, 4 Replies
03-25-2011 06:11 AM

Hi:

I would like to get de  "Support File Search Path" and "Working Support File Search Path" from Option in menu "Tools".

 

With VBA the name of dictionay was `DWGPROPS' and I used

 

Const DICTIONARY_NAME = "DWGPROPS"

Set DwgInfo = ThisDrawing.Dictionaries(DICTIONARY_NAME)

DwgInfo.GetXRecordData DataType, Data


but with .NET the dictionary name isn´t "DWGPROPS"

 

thanks

Another way is:

string support_path = Application.GetSystemVariable("ACADPREFIX") as string;

Valued Contributor
C_Witt
Posts: 55
Registered: ‎03-22-2010
Message 2 of 5 (763 Views)

Re: How to get the "Support File Search Path" with code?

03-25-2011 06:33 AM in reply to: karea

ApplicationServices.Application.AcadApplication.Preferences.files.SupportPath

 

same for all the other "options"..

ApplicationServices.Application.AcadApplication.Preferences.files.____________

Moderator
Alexander.Rivilis
Posts: 1,446
Registered: ‎04-09-2008
Message 3 of 5 (752 Views)

Re: How to get the "Support File Search Path" with code?

03-25-2011 07:59 AM in reply to: C_Witt

Another way is:

string support_path = Application.GetSystemVariable("ACADPREFIX") as string;


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Contributor
karea
Posts: 25
Registered: ‎01-27-2011
Message 4 of 5 (739 Views)

Re: How to get the "Support File Search Path" with code?

03-25-2011 10:26 AM in reply to: karea

it is easier than it thought!

 

thaks,

 

Valued Contributor
StormyC
Posts: 78
Registered: ‎11-19-2010
Message 5 of 5 (178 Views)

Re: How to get the "Support File Search Path" with code?

05-03-2014 02:21 AM in reply to: Alexander.Rivilis

ACADPREFIX 

 

Is there a way to edit this programatically?  ie add some file support paths?

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!