@Yna_Db
So this plugin does exactly what I’m looking do to with Dynamo/Excel. Except that it’s not writing in the existing parameters but creating new project parameters per category. It works and is customizable, so that’s great. I was looking for ways to fillout existing parameters, but this is a good workaround.
@Einar_Raknes
I downloaded the DS above, but having no Python/API skills it’s like reading my Japanese kana, I can read the symbols but have no clue to meaning and much less how to modify it. Hopefully, other programmers will give it a try. Thanks again for your time and effort!
I had a look at it now, but without any luck. It seems that the doc.EditFamily(f) doesn’t like to be called within Dynamo. I tested similar code in Revit Python Shell and it worked without problems. Strangly some very similar workflows for setting shared parameters in families seem to work:
Isn’t it true that Dynamo puts Revit in a read-only state when it’s run? That would explain why the EditFamily method doesn’t work, because that method can’t be used when Revit is in a read-only state.
This creates an independent copy of the family for editing. To apply the changes back to the family stored in the document, use the LoadFamily overload accepting IFamilyLoadOptions .
This method may not be called if the document is currently modifiable (has an open transaction) or is in a read-only state. The method may not be called during dynamic updates. To test the document’s current status, check the values of IsModifiable and IsReadOnly properties.
The results from IsModifiable and IsReadOnly looks fine to me.
Hi everyone, thanks for racking your brains on this!
I read thru the thread and was wondering if the attemps you’ve made above also cover the suggestion made by @MJB-online regarding @john_pierson’s node?
If not, and by the description there doesn’t seem to be DS or Python needed, I’ll look into it and reply back with further development because I’d like participate and to do my part in the question/problem solving
But as @Einar_Raknes pointed out, working between documents is a bit difficult in Dynamo.If you are using any python nodes to achieve this you will need to give the node a document input similar to what I have done with the clockwork node above.
What if it is not a builtin parameter? Seems that in family doc, parameter changed by FamilyManager.Set() function do not get updated when loaded back to a project environment.
Just got in and saw all the replies!
Since the “Solution” has already been checked and liked, I assume this solves the case!
Thanks @Konrad_K_Sobon for the final solution and everybody else who provided ideas to feed off from to help find the solution !
And from my understing of the node, it also provides a solution to other BIP, nice!
The code by @Konrad_K_Sobon is almost the same as mine, and I get the same problems as with my code when trying to run it.
Traceback (most recent call last):
File “”, line 61, in
Exception: The document is currently modifiable! Close the transaction before calling EditFamily.
Maybe it’s my version of Dynamo causing the problem. Have anyone else tested the code?
Download Dynamo master and DynamoRevit 2017 to the same forlder with github desktop.
Bulid Dynamo Master
Run restorepackages.bat
Bulid DynamoRevit 2017
Add .addin file to %appdata%\Autodesk\Revit\Addins\2017\ with path: “[Your GitHub Folder]\Dynamo\bin\AnyCPU\Debug\Revit_2017\DynamoRevitVersionSelector.dll”