Hi,
I wrote this short script to see if I can change the value of a family parameter or not. The code runs without any error or warning, but the parameter value in revit does not change. Can anybody help me?
I checked the value of the parameter in Dynamo and it shows me that it has changed to a new value but this would not be reflected in the model.
SeanP
September 6, 2021, 4:21am
2
You will need to load the Family back into the mod just like you would if you were doing it manually.
Manual Steps:
Open Family
Edit Parameter
Save
Load into Model
4a. Update Param Values
So far in Dynamo you have steps 1 and 2. There are many posts on this topic so a little searching should probably uncover steps 3 and 4.
1 Like
That’s what I asked for here in the forum. If I knew how to do that, I wouldn’t ask.
SeanP
September 7, 2021, 12:49pm
4
As I mentioned, a little bit of searching the forum would be helpful as no one wants to just do your work for you.
So I was looking through the nodes available and was hitting a little bit of a road block so I put together a python version of what you were trying to do including the reloading.
#Sean Page, 2021
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('RevitAPIUI')
from Autodesk.Revit.UI import *
clr.AddReference('System')
from System.Collections.Generic import List
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.Elements)
clr.AddRef…
Another option may be to look at the Orchid package by @erfajo .
erfajo/OrchidForDynamo: This repository contains the content of the Orchid package for Dynamo (github.com)
1 Like
Thank you @SeanP for your reply. I will try to use the Orchid Package.