Setting Trusted Locations (trustedpath)

Setting Trusted Locations (trustedpath)

Anonymous
Not applicable
2,113 Views
2 Replies
Message 1 of 3

Setting Trusted Locations (trustedpath)

Anonymous
Not applicable

I have a .net dll and it is loaded at AutoCAD startup.

But each time it ;loads a security warning is displaying.

After going through the existing solutions understood that this can be avoided if the directory is added to TRUSTEDPATHS variable.

The registry entry for it is "HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R19.1\ACAD-D001:409\Profiles\<<unnamed profile">>\Variables

i do not know what is <<unnamed profile">> is it always constant?. if not how to get the current profile name sothat i can use it in the registry path.

One more thing is i have to update the above registry path in the installer code to avoid warning even for the first time.

Please, Can someone help.

 

Thanks

Mohan.

0 Likes
2,114 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Hi,

 

The code below lets you extract the name of the current profile

 

Dim strActiveProfile As String = Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication.Preferences.Profiles.ActiveProfile

 

Regards

 

EDIT: Another thing you can do is put you dll in default trusted path

 

C:\Users\usename\AppData\Roaming\Autodesk\ApplicationPlugins

0 Likes
Message 3 of 3

Keith.Brown
Advisor
Advisor