Hi, does anyone know how to access read/write to Revit file custom properties using vb.net & Rrevit API?
All the best
Steve
Solved! Go to Solution.
Solved by jeremytammik. Go to Solution.
Solved by jeremytammik. Go to Solution.
Dear Steve,
These look like properties associated with the specific project document.
You should try to find them using RevitLookup.
That would show you how to access them progrmmatically from your own add-in as well.
Cheers,
Jeremy
Hi Jeremy,
Using Revit LookUp 2014 was unable to locate the rvt custom file properties!
Any ideas as to how I can read write to these propeerties would be welcome.
All the best
Steve
Hi Steve,
Sorry about the totally wrong initial answer I gave.
The question came up again now on Stack Overflow, with some more useful answers.
I published a summary of the results here:
http://thebuildingcoder.typepad.com/blog/2015/09/lunar-eclipse-and-custom-file-properties.html#3
Cheers,
Jeremy
@Anonymous wrote:Hi Steve,
Sorry about the totally wrong initial answer I gave.
The question came up again now on Stack Overflow, with some more useful answers.
I published a summary of the results here:
http://thebuildingcoder.typepad.com/blog/2015/09/lunar-eclipse-and-custom-file-properties.html#3
Cheers,
Jeremy
Hi Jeremy,
Thanks for the link
In the end I used the Revit Project Properties to store the information.
Had to revise the code for Revit 2015 due to the API changes.
More than happy to show/share my add-in if you are interested.
It's a SaveAsTool for BIM, It uses the properties to store Metadata.
All the best
Steve
Dear Steve,
Congratulations on solving it and publishing your tool!
That is a perfectly viable way to go as well, of course.
The Revit way, in this case 🙂
Thank you for the offer!
Cheers,
Jeremy
Dear Keith,
Sure you can.
Take a look at the Windows Search functionality:
https://msdn.microsoft.com/en-us/library/aa965362(v=vs.85).aspx
You can program additonal search fields for specific file types, e.g. for RVT.
Cheers,
Jeremy
Thanks Jeremy, however I should add that although this is the Revit API forum I know very little about programming! Sorry!!
Within the file properties I have the ability to add a field and an associated value. However this doesn't show up in the list of fields available in Windows Explorer - is this something that would be easy to resolve and give all of our company users access to search?
cheers
K.
Yes, absolutely.
And it requires programming (I imagine).
Ask any Windows programmer.
Good luck!