Hi forum. Revit API is my first approach to programming so I lack many basic knowledge. I want to store some information on Text Notes. As I cant add parameters to text notes, has occurred to me that I can use some text file in my addin folder to store this. This should be something like:
- create 1 text file in the addin folder for every project in which add is used. Every time document is saved as, text file is saved as with the same name to keep coordination.
- when needed, access to the file with the name of the project, and write or read it (kind of: "text note - 535474 - parameter info")
Then doubts that come to my mind:
- How to handle if project´s name change in other pc.
- Is this use of txt files appropiate to what Im trying to achieve? There is any "better" or usual way?
- Should I identify every element through "element id" or through "unique-id". I think I can handle operations only with element id but im not sure. Worst case scenario should be that some lines with ids from deleted elements are keeped in the text file but I think thats not a big deal as element Ids are never going to be overrided.
As you see this is not an specific doubt but a little topic about how to process in programming with this kind of folder structure. Regards.