Message 1 of 6
Setting File Paths
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Guys
I am trying to add to my Trusted file location search Paths as well as Set my Qnew Template. i have manges to add support paths, plot style paths and template paths but cant seem to set these 2? are there any specific reasons why i cant access them. here is the code i use for setting others:
public void AddPlotStyles(string location)
{
Document doc = Application.DocumentManager.MdiActiveDocument;
Editor ed = doc.Editor;
var preferences = Application.Preferences as dynamic;
if (preferences != null)
{
try
{
if (preferences.Files.PrinterStyleSheetPath.Equals(location, StringComparison.OrdinalIgnoreCase))
{
ed.WriteMessage($"\nPlot Style path: {location} Already Exists.");
}
else
{
preferences.Files.PrinterStyleSheetPath = location;
ed.WriteMessage($"\nPlot Style path: {location} Added.");
}
}
catch (System.Exception)
{
ed.WriteMessage($"\nPlot Style path: {location} Already Exists.");
}
}
}