Shared Parameter is read only, why?


it is defnitly not read only… it is a string parameter addressed to all elements?

What make i wrong? what does Revit want ?


is this the best way ? to create a correlation between elements and values?

collector = FilteredElementCollector(doc, doc.ActiveView.Id)
elements = collector.WhereElementIsNotElementType().ToElements()

ifcGUIDs = []

for elem in elements:
	param = elem.get_Parameter(BuiltInParameter.IFC_GUID)
	if param and param.StorageType == StorageType.String:

OUT = elements, ifcGUIDs
1 Like

I think you want the param.AsValueString() ?

I think you set it param.Set(value)

Is that what you’re after? :slight_smile:


i checked out both, i got an error



When you OUT the param, does it correctly return a parameter?

i got Null and empty space @Mark.Ackerley

So if some elements don’t have the param they return null? You could add a try except? :slight_smile:

@Mark.Ackerley ,

i will try it… first i make it run, i am pretty confident. But Revit is already unstable i “only” fill 55*15 Parameters, in parallel. Later we will run +1000

1 Like