We are working on a web application in order to add some data on a Revit model. Our process is the following:
1/ the user is Revit and select a Wall for example
2/ the user create a commit with Speckle connector for Revit of this Wall
3/ thanks to Speckle API in python, we are adding new parameters to the Wall (speckle_type:“Objects.BuiltElements.Revit.Parameter”). This generates a new commit.
4/ the user go back to Revit and import the new commit with the Speckle connector for Revit
Thanks for reaching out! I always love to hear when people are developing on top of Speckle.
When receiving from Speckle, the Speckle revit connector will find all the parameters that you have on your Speckle object and set them, if possible. Currently, the Speckle connector will not create custom parameters for you.
The first option would be to add those parameters in your Revit model first and then receive your data from Speckle. Then the parameters will be set to the correct value.
The second option is to create these parameters programatically. A quick search brought me to this api forum that points to a hacky way of doing this implemented by dynamo. We could think about implementing something like this, but I’m sure there would be some speed bumps along the way to getting this to work as expected.
The first option would obviously be simpiler, would that work for you use case?
Thank you for your return.
Unfortunately, that would not be ok for our use case.
The idea would be to add informations on existing objects or even to add new objects with Speckle API without an existing family.
Is this something you have in your roadmap?