What are the best practices for storing data locally for Revit addins? (for example: user preferences or authentication information)
In particular, is there any recommended location or format?
Solved! Go to Solution.
Solved by joshua.lumley. Go to Solution.
Solved by jeremy_tammik. Go to Solution.
It depends completely on your requirements and personal preferences.
Personally, I favour text over binary, and JSON over XML.
Here are two explorations comparing storage of a very small amount of add-in settings data in JSON and XML respectively:
https://thebuildingcoder.typepad.com/blog/2016/09/hololens-escape-path-waypoint-json-exporter.html
Subsidiary external Settings command:
ErrorProvider
class, Validating
and Validated
eventsSystem.Configuration.ApplicationSettingsBase
classJavaScriptSerializer
class
With visual studio the easiest thing is to use Properties -> Settings.settings from the solution explorer.
Can't find what you're looking for? Ask the community or share your knowledge.